Lorekeeper Lectern Item
class LorekeeperLecternItem(block: Block, properties: Item.Properties, placementKind: LorekeeperOutpostService.PlacementKind) : BlockItem, PolymerItem(source)
Polymer-compatible lectern item used to place Lorekeeper outposts.
Vanilla and Bedrock clients see a normal lectern while the server keeps the custom item ID for placement handling.
Constructors
Link copied to clipboard
constructor(block: Block, properties: Item.Properties, placementKind: LorekeeperOutpostService.PlacementKind)
Properties
Functions
Link copied to clipboard
open fun allowComponentsUpdateAnimation(player: Player, hand: InteractionHand, oldStack: ItemStack, newStack: ItemStack): Boolean
Link copied to clipboard
open fun allowContinuingBlockBreaking(player: Player, oldStack: ItemStack, newStack: ItemStack): Boolean
Link copied to clipboard
open fun appendHoverText(itemStack: ItemStack, tooltipContext: Item.TooltipContext, tooltipDisplay: TooltipDisplay, consumer: Consumer<Component>, tooltipFlag: TooltipFlag)
Link copied to clipboard
Link copied to clipboard
open fun canBeEnchantedWith(stack: ItemStack, enchantment: Holder<Enchantment>, context: EnchantingContext): Boolean
Link copied to clipboard
open fun canDestroyBlock(itemStack: ItemStack, blockState: BlockState, level: Level, blockPos: BlockPos, livingEntity: 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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Nullable
Link copied to clipboard
open override fun getPolymerItemStack(stack: ItemStack, tooltipType: TooltipFlag, context: PacketContext): ItemStack
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 handleMiningOnServer(tool: ItemStack?, targetBlock: BlockState?, pos: BlockPos?, player: ServerPlayer?): Boolean
Link copied to clipboard
open fun interactLivingEntity(itemStack: ItemStack, player: Player, livingEntity: LivingEntity, interactionHand: InteractionHand): InteractionResult
Link copied to clipboard
open fun inventoryTick(itemStack: ItemStack, serverLevel: ServerLevel, entity: Entity, equipmentSlot: @Nullable EquipmentSlot?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isIgnoringBlockInteractionPlaySoundExceptedEntity(state: BlockState?, player: ServerPlayer?, hand: InteractionHand?, stack: ItemStack?, world: ServerLevel?, blockHitResult: BlockHitResult?): Boolean
Link copied to clipboard
open fun isIgnoringItemInteractionPlaySoundExceptedEntity(player: ServerPlayer?, hand: InteractionHand?, stack: ItemStack?, world: ServerLevel?): Boolean
Link copied to clipboard
open fun isPolymerBlockInteraction(state: BlockState?, player: ServerPlayer?, hand: InteractionHand?, stack: ItemStack?, world: ServerLevel?, blockHitResult: BlockHitResult?, actionResult: InteractionResult?): Boolean
Link copied to clipboard
open fun isPolymerEntityInteraction(player: ServerPlayer?, hand: InteractionHand?, stack: ItemStack?, world: ServerLevel?, entity: Entity?, actionResult: InteractionResult?): Boolean
Link copied to clipboard
open fun isPolymerItemInteraction(player: ServerPlayer?, hand: InteractionHand?, stack: ItemStack?, world: ServerLevel?, actionResult: InteractionResult?): Boolean
Link copied to clipboard
Link copied to clipboard
open fun modifyClientTooltip(tooltip: List<Component?>?, stack: ItemStack?, context: PacketContext?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun overrideOtherStackedOnMe(itemStack: ItemStack, itemStack2: ItemStack, slot: Slot, clickAction: ClickAction, player: Player, slotAccess: SlotAccess): Boolean
Link copied to clipboard
open fun overrideStackedOnOther(itemStack: ItemStack, slot: Slot, clickAction: ClickAction, player: Player): Boolean
Link copied to clipboard
open fun postHurtEnemy(itemStack: ItemStack, livingEntity: LivingEntity, livingEntity2: LivingEntity)
Link copied to clipboard
Link copied to clipboard
open fun releaseUsing(itemStack: ItemStack, level: Level, livingEntity: LivingEntity, i: Int): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard