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 |
buildTooltip(net.minecraft.item.ItemStack stack,
net.minecraft.world.World world,
java.util.List<net.minecraft.network.chat.Component> tooltip,
net.minecraft.client.item.TooltipContext options) |
boolean |
isTool(net.minecraft.item.ItemStack stack) |
boolean |
requiresClientSync() |
net.minecraft.util.ActionResult |
useOnBlock(net.minecraft.item.ItemUsageContext context) |
addProperty, appendItemsForGroup, asItem, beforeBlockBreak, byRawId, canDamage, canRepair, getAttributeModifiers, getBlockBreakingSpeed, getDefaultStack, getDurability, getEnchantability, getFoodSetting, getHitResult, getItemFromBlock, getItemGroup, getMaxAmount, getMaxUseTime, getOrCreateTranslationKey, getProperty, getRarity, getRawIdByItem, getRecipeRemainder, getTextComponent, getTranslatedNameTrimmed, getTranslationKey, getTranslationKey, getUseAction, hasEnchantmentGlint, hasProperties, hasRecipeRemainder, interactWithEntity, isEffectiveOn, isFood, isInItemGroup, isMap, matches, method_7838, onBlockBroken, onCrafted, onEntityDamaged, onEntityTick, onItemFinishedUsing, onItemStopUsing, onTagDeserialized, onUsingTick, usepublic boolean requiresClientSync()
requiresClientSync in class net.minecraft.item.Itempublic void buildTooltip(net.minecraft.item.ItemStack stack,
@Nullable
net.minecraft.world.World world,
java.util.List<net.minecraft.network.chat.Component> tooltip,
net.minecraft.client.item.TooltipContext options)
buildTooltip in class net.minecraft.item.Itempublic net.minecraft.util.ActionResult useOnBlock(net.minecraft.item.ItemUsageContext context)
useOnBlock in class net.minecraft.item.Itempublic boolean isTool(net.minecraft.item.ItemStack stack)
isTool in class net.minecraft.item.Item