net.minecraft.world

public record LockCode

bqz
net.minecraft.world.LockCode
net.minecraft.class_1273
net.minecraft.inventory.ContainerLock
net.minecraft.src.C_473_
net.minecraft.world.ChestLock

Field summary

Modifier and TypeField
private final String
d
key
comp_2371
key
f_19103_
public static final LockCode
a
NO_LOCK
field_5817
EMPTY
f_19102_
public static final com.mojang.serialization.Codec<LockCode>
b
CODEC
field_49206
CODEC
f_316192_
public static final String
c
TAG_LOCK
field_29956
LOCK_KEY
f_146668_

Constructor summary

ModifierConstructor
public (String key)

Method summary

Modifier and TypeMethod
public boolean
a(cur arg0)
unlocksWith(ItemStack arg0)
method_5472(class_1799 arg0)
canOpen(ItemStack stack)
m_19107_(C_1391_ arg0)
public void
a(us arg0)
addToTag(CompoundTag arg0)
method_5474(class_2487 arg0)
writeNbt(NbtCompound nbt)
m_19109_(C_4917_ arg0)
public static LockCode
b(us arg0)
fromTag(CompoundTag arg0)
method_5473(class_2487 arg0)
fromNbt(NbtCompound nbt)
m_19111_(C_4917_ p_19112_)
public String
a()
key()
comp_2371()
key()
f_19103_()