Package net.minecraft.item
Class CompassItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.CompassItem
- All Implemented Interfaces:
ItemConvertible,Vanishable
public class CompassItem extends Item implements Vanishable
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description private static Loggerfield_24670Fields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_ID, ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, group, RANDOM -
Constructor Summary
Constructors Constructor Description CompassItem(Item.Settings settings) -
Method Summary
Modifier and Type Method Description static Optional<RegistryKey<World>>getLodestoneDimension(CompoundTag tag)StringgetTranslationKey(ItemStack stack)booleanhasEnchantmentGlint(ItemStack stack)static booleanhasLodestone(ItemStack stack)voidinventoryTick(ItemStack stack, World world, Entity entity, int slot, boolean selected)private voidmethod_27315(RegistryKey<World> registryKey, BlockPos blockPos, CompoundTag compoundTag)ActionResultuseOnBlock(ItemUsageContext context)Methods inherited from class net.minecraft.item.Item
appendStacks, appendTooltip, 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, getUseAction, hasRecipeRemainder, isDamageable, isEffectiveOn, isEnchantable, isFireproof, isFood, isIn, isIn, isNetworkSynced, isUsedOnRelease, onCraft, onStoppedUsing, postHit, postMine, postProcessTag, rayTrace, shouldSyncTagToClient, toString, usageTick, use, useOnEntity
-
Field Details
-
Constructor Details
-
Method Details
-
hasLodestone
-
hasEnchantmentGlint
- Overrides:
hasEnchantmentGlintin classItem
-
getLodestoneDimension
-
inventoryTick
- Overrides:
inventoryTickin classItem
-
useOnBlock
- Overrides:
useOnBlockin classItem
-
method_27315
private void method_27315(RegistryKey<World> registryKey, BlockPos blockPos, CompoundTag compoundTag) -
getTranslationKey
- Overrides:
getTranslationKeyin classItem
-