Crown Item
open class CrownItem(groundBlock: Block, wallBlock: Block, settings: Item.Settings) : VerticallyAttachableBlockItem, Equipment(source)
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
Inherited properties
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.Default otherwise.
Inherited functions
Link copied to clipboard
Link copied to clipboard
open override fun appendTooltip(stack: ItemStack, context: Item.TooltipContext, tooltip: MutableList<Text>, type: TooltipType)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun canDisableShield(stack: ItemStack, shield: ItemStack, entity: LivingEntity, attacker: LivingEntity): Boolean
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
open fun doesSneakBypassUse(stack: ItemStack, level: WorldView, pos: BlockPos, player: PlayerEntity): Boolean
Link copied to clipboard
Link copied to clipboard
open fun equipAndSwap(item: Item, world: World, user: PlayerEntity, hand: Hand): TypedActionResult<ItemStack>
Link copied to clipboard
Link copied to clipboard
@Nullable
Link copied to clipboard
Link copied to clipboard
open fun getBonusAttackDamage(target: Entity, baseAttackDamage: Float, damageSource: DamageSource): Float
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 open fun getPlaceSound(state: BlockState, world: World, pos: BlockPos, entity: PlayerEntity): SoundEvent
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
open fun isEnderMask(stack: ItemStack, player: PlayerEntity, endermanEntity: EndermanEntity): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isNotReplaceableByPickAction(stack: ItemStack, player: PlayerEntity, inventorySlot: Int): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onClicked(stack: ItemStack, otherStack: ItemStack, slot: Slot, clickType: ClickType, player: PlayerEntity, cursorStackReference: StackReference): Boolean
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
open fun onInventoryTick(stack: ItemStack, level: World, player: PlayerEntity, slotIndex: Int, selectedIndex: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onStackClicked(stack: ItemStack, slot: Slot, clickType: ClickType, player: PlayerEntity): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun postMine(stack: ItemStack, world: World, state: BlockState, pos: BlockPos, miner: LivingEntity): Boolean
Link copied to clipboard
protected open fun postPlacement(pos: BlockPos, world: World, @Nullable player: PlayerEntity?, stack: ItemStack, state: BlockState): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun shouldCauseReequipAnimation(oldStack: ItemStack, newStack: ItemStack, slotChanged: Boolean): Boolean
Link copied to clipboard
Link copied to clipboard
open fun useOnEntity(stack: ItemStack, user: PlayerEntity, entity: LivingEntity, hand: Hand): ActionResult