Lorekeeper Spawn Egg
Custom spawn egg for the Lorekeeper entity with Polymer compatibility.
Implements PolymerItem so it appears as a Wandering Trader spawn egg to vanilla/Bedrock clients (via Geyser), while still spawning the custom Lorekeeper entity.
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
Returns the vanilla item to display to clients without the mod. Uses Wandering Trader spawn egg since Lorekeeper is based on WanderingTrader.
Link copied to clipboard
@Nullable
Link copied to clipboard
open fun getPolymerItemStack(itemStack: 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
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
open fun spawnOffspringFromSpawnEgg(player: Player, mob: Mob, entityType: EntityType<out Mob>, serverLevel: ServerLevel, vec3: Vec3, itemStack: ItemStack): Optional<Mob>
Link copied to clipboard
Link copied to clipboard