java.lang.Object
net.minecraft.world.item.Item
All Implemented Interfaces:
ITranslatable, net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.ItemLike, net.minecraftforge.common.extensions.IForgeItem

public class MailItem extends HeldItem
Used for players to write messages to other players.
  • Constructor Details

    • MailItem

      public MailItem()
      Initializes the Mail.
    • MailItem

      public MailItem(MailItem closed)
  • Method Details

    • getClosed

      public MailItem getClosed()
    • isFoil

      public boolean isFoil(net.minecraft.world.item.ItemStack itemStack)
      Overrides:
      isFoil in class PixelmonItem
    • getMaxStackSize

      public int getMaxStackSize(net.minecraft.world.item.ItemStack stack)
    • use

      public net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack> use(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand)
      Overrides:
      use in class net.minecraft.world.item.Item
    • getTooltipText

      public String getTooltipText()
      Overrides:
      getTooltipText in class PixelmonItem