public class CompassItem extends Item implements Vanishable
Item.Settings| Modifier and Type | Field and Description |
|---|---|
private static Logger |
field_24670 |
ATTACK_DAMAGE_MODIFIER_ID, ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, group, RANDOM| Constructor and Description |
|---|
CompassItem(Item.Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
static Optional<RegistryKey<World>> |
getLodestoneDimension(CompoundTag tag) |
String |
getTranslationKey(ItemStack stack) |
boolean |
hasGlint(ItemStack stack) |
static boolean |
hasLodestone(ItemStack stack) |
void |
inventoryTick(ItemStack stack,
World world,
Entity entity,
int slot,
boolean selected) |
private void |
method_27315(RegistryKey<World> registryKey,
BlockPos blockPos,
CompoundTag compoundTag) |
ActionResult |
useOnBlock(ItemUsageContext context) |
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, useOnEntityprivate static final Logger field_24670
public CompassItem(Item.Settings settings)
public static boolean hasLodestone(ItemStack stack)
public static Optional<RegistryKey<World>> getLodestoneDimension(CompoundTag tag)
public void inventoryTick(ItemStack stack, World world, Entity entity, int slot, boolean selected)
inventoryTick in class Itempublic ActionResult useOnBlock(ItemUsageContext context)
useOnBlock in class Itemprivate void method_27315(RegistryKey<World> registryKey, BlockPos blockPos, CompoundTag compoundTag)
public String getTranslationKey(ItemStack stack)
getTranslationKey in class Item