net.minecraft.world

public record LockCode

bsm
net.minecraft.world.LockCode
net.minecraft.class_1273
net.minecraft.inventory.ContainerLock
net.minecraft.world.ChestLock

Field summary

Modifier and TypeField
private final ItemPredicate
d
predicate
comp_3222
predicate
public static final LockCode
a
NO_LOCK
field_5817
EMPTY
public static final com.mojang.serialization.Codec<LockCode>
b
CODEC
field_49206
CODEC
public static final String
c
TAG_LOCK
field_29956
LOCK_KEY

Constructor summary

ModifierConstructor
public (ItemPredicate arg0)

Method summary

Modifier and TypeMethod
public boolean
a(cwq arg0)
unlocksWith(ItemStack arg0)
method_5472(class_1799 arg0)
canOpen(ItemStack stack)
public void
a(tq arg0, jt$a arg1)
addToTag(CompoundTag arg0, HolderLookup$Provider arg1)
method_5474(class_2487 arg0, class_7225$class_7874 arg1)
writeNbt(NbtCompound nbt, RegistryWrapper$WrapperLookup registries)
public static LockCode
b(tq arg0, jt$a arg1)
fromTag(CompoundTag arg0, HolderLookup$Provider arg1)
method_5473(class_2487 arg0, class_7225$class_7874 arg1)
fromNbt(NbtCompound nbt, RegistryWrapper$WrapperLookup registries)
public ItemPredicate
a()
predicate()
comp_3222()
predicate()