Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package fr.exillium.exilliummodv1.init.items;
- import fr.exillium.exilliummodv1.ExilliumMod;
- import fr.exillium.exilliummodv1.init.addInformation;
- import fr.exillium.exilliummodv1.init.tabs.forguitab;
- import net.minecraft.client.util.ITooltipFlag;
- import net.minecraft.item.Item;
- import net.minecraft.item.ItemStack;
- import net.minecraft.item.Rarity;
- import net.minecraft.util.text.ITextComponent;
- import net.minecraft.util.text.StringTextComponent;
- import net.minecraft.world.World;
- import net.minecraftforge.fml.RegistryObject;
- import net.minecraftforge.registries.DeferredRegister;
- import net.minecraftforge.registries.ForgeRegistries;
- import javax.annotation.Nullable;
- import java.util.List;
- public class BronzeClassementItem extends Item{
- public BronzeClassementItem(Properties properties) {
- super(properties);
- }
- public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, ExilliumMod.MODID);
- public static final RegistryObject<Item> BRONZE_CLASSEMENT = ITEMS.register("bronze_classement", () -> new Item(new Item.Properties().stacksTo(64).tab(forguitab.FORGUI_TAB).rarity(Rarity.EPIC)));
- @Override
- public void addInformation(ItemStack stack, @Nullable World worldIn, List<ITextComponent> tooltip, ITooltipFlag flagIn) {
- super.addInformation(stack, worldIn, tooltip, flagIn);
- tooltip.add(new StringTextComponent("Votre texte ici"));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment