Crown Item
A crown, which makes piglins neutral when worn, just like gold armor.
Parameters
ground Block
The crown block placed on the ground
wall Block
The crown block placed on the wall
settings
The item settings to pass to the parent constructor
Constructors
Inherited properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns if the given item has a registered handler when inserted into a staff.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the registered staff handler of the given item if available.
Link copied to clipboard
Returns the registered staff handler of the given item if available, StaffHandler.Fallback otherwise.
Inherited functions
Link copied to clipboard
Link copied to clipboard
public Unit appendTooltip(ItemStack stack, Item.TooltipContext context, List<Text> tooltip, TooltipType type)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Boolean canDisableShield(ItemStack stack, ItemStack shield, LivingEntity entity, LivingEntity attacker)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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 doesSneakBypassUse(ItemStack stack, WorldView level, BlockPos pos, PlayerEntity player)
Link copied to clipboard
Link copied to clipboard
public TypedActionResult<ItemStack> equipAndSwap(Item item, World world, PlayerEntity user, Hand hand)
Link copied to clipboard
Link copied to clipboard
@Nullable()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
protected SoundEvent getPlaceSound(BlockState state, World world, BlockPos pos, PlayerEntity entity)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@NotNull()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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 isNotReplaceableByPickAction(ItemStack stack, PlayerEntity player, Integer inventorySlot)
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
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 Unit onInventoryTick(ItemStack stack, World level, PlayerEntity player, Integer slotIndex, Integer selectedIndex)
Link copied to clipboard
Link copied to clipboard
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Boolean postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner)
Link copied to clipboard
protected Boolean postPlacement(BlockPos pos, World world, @Nullable() PlayerEntity player, ItemStack stack, BlockState state)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Boolean shouldCauseReequipAnimation(ItemStack oldStack, ItemStack newStack, Boolean slotChanged)
Link copied to clipboard
Link copied to clipboard