public class CompassItem extends Item implements Vanishable
Item.SettingsATTACK_DAMAGE_MODIFIER_UUID, ATTACK_SPEED_MODIFIER_UUID, BLOCK_ITEMS, group, RANDOM| Constructor and Description |
|---|
CompassItem(Item.Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
static Optional<DimensionType> |
getLodestoneDimension(CompoundTag tag) |
String |
getTranslationKey(ItemStack stack) |
boolean |
hasEnchantmentGlint(ItemStack stack) |
static boolean |
hasLodestone(ItemStack stack) |
void |
inventoryTick(ItemStack stack,
World world,
Entity entity,
int slot,
boolean selected) |
private void |
method_27315(Dimension dimension,
BlockPos blockPos,
CompoundTag compoundTag) |
ActionResult |
useOnBlock(ItemUsageContext context) |
appendStacks, appendTooltip, asItem, byRawId, canMine, canRepair, damage, finishUsing, fromBlock, getDrinkSound, getEatSound, getEnchantability, getFoodComponent, getGroup, getMaxCount, getMaxDamage, getMaxUseTime, getMiningSpeedMultiplier, getModifiers, 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, useOnEntitypublic CompassItem(Item.Settings settings)
public static boolean hasLodestone(ItemStack stack)
public boolean hasEnchantmentGlint(ItemStack stack)
hasEnchantmentGlint in class Itempublic static Optional<DimensionType> 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(Dimension dimension, BlockPos blockPos, CompoundTag compoundTag)
public String getTranslationKey(ItemStack stack)
getTranslationKey in class Item