Candy Tooltip Item
class CandyTooltipItem(properties: Item.Properties, val candyTranslationString: CandyTranslationString) : Item(source)
Overridden Item class with a modified Hover Tooltip to show Hunger translation string, what tied Mob Effect, and always eat string
Functions
Link copied to clipboard
open override fun appendHoverText(itemStack: ItemStack, tooltipContext: Item.TooltipContext, list: MutableList<Component>, tooltipFlag: TooltipFlag)
Overrides Item's appendHoverText
to add more things in it, notably Hunger translation string, tied Mob Effect if there is one, and Always Eat string
Inherited 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
Link copied to clipboard
Link copied to clipboard
open fun canBeEnchantedWith(stack: ItemStack, enchantment: Holder<Enchantment>, context: EnchantingContext): 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
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 interactLivingEntity(stack: ItemStack, player: Player, interactionTarget: LivingEntity, usedHand: InteractionHand): InteractionResult
Link copied to clipboard
open fun inventoryTick(stack: ItemStack, level: Level, entity: Entity, slotId: Int, isSelected: 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
open fun overrideOtherStackedOnMe(stack: ItemStack, other: ItemStack, slot: Slot, action: ClickAction, player: Player, access: SlotAccess): Boolean
Link copied to clipboard
open fun overrideStackedOnOther(stack: ItemStack, slot: Slot, action: ClickAction, player: Player): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard