public final class KeyItem
extends net.minecraft.item.Item
| Constructor and Description |
|---|
KeyItem(net.minecraft.item.Item.Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendTooltip(net.minecraft.item.ItemStack stack,
net.minecraft.world.World world,
java.util.List<net.minecraft.text.Text> tooltip,
net.minecraft.client.item.TooltipContext options) |
boolean |
isEnchantable(net.minecraft.item.ItemStack stack) |
boolean |
shouldSyncTagToClient() |
net.minecraft.util.ActionResult |
useOnBlock(net.minecraft.item.ItemUsageContext context) |
appendStacks, asItem, byRawId, canMine, canRepair, damage, finishUsing, fromBlock, getAttributeModifiers, getDrinkSound, getEatSound, getEnchantability, getFoodComponent, getGroup, getMaxCount, getMaxDamage, getMaxUseTime, getMiningSpeedMultiplier, getName, getName, getOrCreateTranslationKey, getRarity, getRawId, getRecipeRemainder, getStackForRender, getTranslationKey, getTranslationKey, getUseAction, hasEnchantmentGlint, hasRecipeRemainder, inventoryTick, isDamageable, isEffectiveOn, isFireproof, isFood, isIn, isIn, isNetworkSynced, isUsedOnRelease, onCraft, onStoppedUsing, postHit, postMine, postProcessTag, rayTrace, toString, usageTick, use, useOnEntitypublic boolean shouldSyncTagToClient()
shouldSyncTagToClient in class net.minecraft.item.Item@Environment(value=CLIENT)
public void appendTooltip(net.minecraft.item.ItemStack stack,
@Nullable
net.minecraft.world.World world,
java.util.List<net.minecraft.text.Text> tooltip,
net.minecraft.client.item.TooltipContext options)
appendTooltip in class net.minecraft.item.Itempublic net.minecraft.util.ActionResult useOnBlock(net.minecraft.item.ItemUsageContext context)
useOnBlock in class net.minecraft.item.Itempublic boolean isEnchantable(net.minecraft.item.ItemStack stack)
isEnchantable in class net.minecraft.item.Item