net.minecraft.world.item

public class CompassItem

extends Item implements Vanishable

All mapped superinterfaces:

FeatureElement, ItemLike, Vanishable

clc
net.minecraft.world.item.CompassItem
net.minecraft.class_1759
net.minecraft.item.CompassItem
net.minecraft.src.C_1334_
net.minecraft.world.item.ItemCompass

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
d
LOGGER
field_24670
LOGGER
f_40715_
public static final String
a
TAG_LODESTONE_POS
field_30860
LODESTONE_POS_KEY
f_150786_
public static final String
b
TAG_LODESTONE_DIMENSION
field_30861
LODESTONE_DIMENSION_KEY
f_150787_
public static final String
c
TAG_LODESTONE_TRACKED
field_30862
LODESTONE_TRACKED_KEY
f_150788_

Constructor summary

ModifierConstructor
public (Item$Properties arg0)

Method summary

Modifier and TypeMethod
public static boolean
d(cmy arg0)
isLodestoneCompass(ItemStack arg0)
method_26365(class_1799 arg0)
hasLodestone(ItemStack stack)
m_40736_(C_1391_ p_40737_)
private static Optional<ResourceKey<Level>>
c(sn arg0)
getLodestoneDimension(CompoundTag arg0)
method_26364(class_2487 arg0)
getLodestoneDimension(NbtCompound nbt)
m_40727_(C_4917_ p_40728_)
public static GlobalPos
a(sn arg0)
getLodestonePosition(CompoundTag arg0)
method_43124(class_2487 arg0)
createLodestonePos(NbtCompound nbt)
m_220021_(C_4917_ p_220022_)
public static GlobalPos
a(ctp arg0)
getSpawnPosition(Level arg0)
method_43123(class_1937 arg0)
createSpawnPos(World world)
m_220019_(C_1596_ p_220020_)
public boolean
i(cmy arg0)
isFoil(ItemStack arg0)
method_7886(class_1799 arg0)
hasGlint(ItemStack arg0)
m_5812_(C_1391_ arg0)
public void
a(cmy arg0, ctp arg1, blv arg2, int arg3, boolean arg4)
inventoryTick(ItemStack arg0, Level arg1, Entity arg2, int arg3, boolean arg4)
method_7888(class_1799 arg0, class_1937 arg1, class_1297 arg2, int arg3, boolean arg4)
inventoryTick(ItemStack arg0, World arg1, Entity arg2, int arg3, boolean arg4)
m_6883_(C_1391_ p_40721_, C_1596_ p_40722_, C_507_ p_40723_, int p_40724_, boolean arg4)
public InteractionResult
a(cpj arg0)
useOn(UseOnContext arg0)
method_7884(class_1838 arg0)
useOnBlock(ItemUsageContext arg0)
m_6225_(C_1450_ arg0)
private void
a(ahf<ctp> arg0, hx arg1, sn arg2)
addLodestoneTags(ResourceKey<Level> arg0, BlockPos arg1, CompoundTag arg2)
method_27315(class_5321<class_1937> arg0, class_2338 arg1, class_2487 arg2)
writeNbt(RegistryKey<World> worldKey, BlockPos pos, NbtCompound nbt)
m_40732_(C_5264_<C_1596_> p_40734_, C_4675_ p_40735_, C_4917_ arg2)
public String
j(cmy arg0)
getDescriptionId(ItemStack arg0)
method_7866(class_1799 arg0)
getTranslationKey(ItemStack arg0)
m_5671_(C_1391_ arg0)