Class MetaItem

java.lang.Object
fr.andross.banitem.items.BannedItem
fr.andross.banitem.items.MetaItem
All Implemented Interfaces:
ICustomName

public final class MetaItem extends BannedItem implements ICustomName
An item wrapper for meta items.
Version:
3.3
Author:
Andross
  • Constructor Details

    • MetaItem

      public MetaItem(@NotNull @NotNull String name, @NotNull @NotNull org.bukkit.inventory.ItemStack itemStack)
      Constructor of a meta item, which represents a Bukkit ItemStack with a custom name.
      Parameters:
      name - The name of this meta item
      itemStack - The item stack representing the item
  • Method Details

    • getName

      @NotNull public @NotNull String getName()
      Get the meta item name from metaitems.yml
      Specified by:
      getName in interface ICustomName
      Returns:
      the meta item name from metaitems.yml
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class BannedItem