StaffItem

public final class StaffItem extends Item(source)

Staff item.

Constructors

Link copied to clipboard
public StaffItem StaffItem(Item.Settings settings)

Inherited properties

Link copied to clipboard
private final Boolean fireproof
Link copied to clipboard
@Nullable()
private final FoodComponent foodComponent
Link copied to clipboard
private final Integer maxCount
Link copied to clipboard
private final Integer maxDamage
Link copied to clipboard
@Nullable()
private final Item recipeRemainder
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
public ItemStack finishUsing(ItemStack stack, World world, LivingEntity user)
Link copied to clipboard
Link copied to clipboard
public Text getName(ItemStack stack)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Unit onStoppedUsing(ItemStack stack, World world, LivingEntity user, Integer remainingUseTicks)
Link copied to clipboard
public Unit usageTick(World world, LivingEntity user, ItemStack stack, Integer remainingUseTicks)
Link copied to clipboard
public TypedActionResult<ItemStack> use(World world, PlayerEntity user, Hand hand)
Link copied to clipboard
Link copied to clipboard
public ActionResult useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand)

Inherited functions

Link copied to clipboard
Link copied to clipboard
public Boolean allowNbtUpdateAnimation(PlayerEntity player, Hand hand, ItemStack oldStack, ItemStack newStack)
Link copied to clipboard
public Unit appendTooltip(ItemStack stack, @Nullable() World world, List<Text> tooltip, TooltipContext context)
Link copied to clipboard
public Item asItem()
Link copied to clipboard
Link copied to clipboard
public Boolean canMine(BlockState state, World world, BlockPos pos, PlayerEntity miner)
Link copied to clipboard
public Boolean canRepair(ItemStack stack, ItemStack ingredient)
Link copied to clipboard
public Boolean damage(DamageSource source)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Nullable()
public FoodComponent getFoodComponent()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final Integer getMaxCount()
Link copied to clipboard
public final Integer getMaxDamage()
Link copied to clipboard
Link copied to clipboard
public Text getName()
Link copied to clipboard
Link copied to clipboard
public Rarity getRarity(ItemStack stack)
Link copied to clipboard
@Nullable()
public final Item getRecipeRemainder()
Link copied to clipboard
@Deprecated(message = "Deprecated in Java")
public RegistryEntry.Reference<Item> getRegistryEntry()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Boolean hasGlint(ItemStack stack)
Link copied to clipboard
Link copied to clipboard
public Unit inventoryTick(ItemStack stack, World world, Entity entity, Integer slot, Boolean selected)
Link copied to clipboard
Link copied to clipboard
public Boolean isEnabled(FeatureSet enabledFeatures)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Boolean isFood()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Boolean onClicked(ItemStack stack, ItemStack otherStack, Slot slot, ClickType clickType, PlayerEntity player, StackReference cursorStackReference)
Link copied to clipboard
public Unit onCraft(ItemStack stack, World world)
Link copied to clipboard
public Unit onCraftByPlayer(ItemStack stack, World world, PlayerEntity player)
Link copied to clipboard
public Boolean onStackClicked(ItemStack stack, Slot slot, ClickType clickType, PlayerEntity player)
Link copied to clipboard
public Boolean postHit(ItemStack stack, LivingEntity target, LivingEntity attacker)
Link copied to clipboard
public Boolean postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner)
Link copied to clipboard
Link copied to clipboard
public String toString()