net.minecraft.world.item.component

public final class CustomData

cxh
net.minecraft.world.item.component.CustomData
net.minecraft.class_9279
net.minecraft.unmapped.C_incrreuu
net.minecraft.component.type.NbtComponent
net.minecraft.component.type.NbtComponent
net.minecraft.src.C_313856_
net.minecraft.world.item.component.CustomData

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
e
LOGGER
field_51522
f_yzjshwrx
LOGGER
LOGGER
f_336410_
public static final CustomData
a
EMPTY
field_49302
f_egifbhdk
DEFAULT
DEFAULT
f_317060_
public static final com.mojang.serialization.Codec<CustomData>
b
CODEC
field_49303
f_otzdwcon
CODEC
CODEC
f_314012_
public static final com.mojang.serialization.Codec<CustomData>
c
CODEC_WITH_ID
field_49304
f_xmjncvon
CODEC_WITH_ID
CODEC_WITH_ID
f_316298_
public static final StreamCodec<io.netty.buffer.ByteBuf, CustomData>
d
STREAM_CODEC
field_49305
f_lvjwhawk
PACKET_CODEC
PACKET_CODEC
f_316654_
private final CompoundTag
f
tag
field_49306
f_xmocimwh
nbt
nbt
f_316331_

Constructor summary

ModifierConstructor
private (CompoundTag nbt)

Method summary

Modifier and TypeMethod
public static CustomData
a(ub arg0)
of(CompoundTag arg0)
method_57456(class_2487 arg0)
m_rqhxtept(C_hhlwcnih arg0)
of(NbtCompound nbt)
of(NbtCompound compound)
m_321102_(C_4917_ p_334177_)
public static Predicate<ItemStack>
a(kp<cxh> arg0, ub arg1)
itemMatcher(DataComponentType<CustomData> arg0, CompoundTag arg1)
method_57454(class_9331<class_9279> arg0, class_2487 arg1)
m_nutnugvj(C_pscqxfcs<C_incrreuu> arg0, C_hhlwcnih arg1)
createPredicate(ComponentType<NbtComponent> type, NbtCompound nbt)
createPredicate(DataComponentType<NbtComponent> type, NbtCompound nbt)
m_321708_(C_313543_<C_313856_> p_329049_, C_4917_ p_330570_)
public boolean
b(ub arg0)
matchedBy(CompoundTag arg0)
method_57460(class_2487 arg0)
m_hskczizv(C_hhlwcnih arg0)
matches(NbtCompound nbt)
matches(NbtCompound nbtA)
m_324111_(C_4917_ arg0)
public static void
a(kp<cxh> arg0, cuq arg1, Consumer<ub> arg2)
update(DataComponentType<CustomData> arg0, ItemStack arg1, Consumer<CompoundTag> arg2)
method_57452(class_9331<class_9279> arg0, class_1799 arg1, Consumer<class_2487> arg2)
m_tloyyfvn(C_pscqxfcs<C_incrreuu> arg0, C_sddaxwyk arg1, Consumer<C_hhlwcnih> arg2)
set(ComponentType<NbtComponent> type, ItemStack stack, Consumer<NbtCompound> nbtSetter)
set(DataComponentType<NbtComponent> type, ItemStack stack, Consumer<NbtCompound> nbtConsumer)
m_322978_(C_313543_<C_313856_> p_336008_, C_1391_ p_335562_, Consumer<C_4917_> p_332401_)
public static void
a(kp<cxh> arg0, cuq arg1, ub arg2)
set(DataComponentType<CustomData> arg0, ItemStack arg1, CompoundTag arg2)
method_57453(class_9331<class_9279> arg0, class_1799 arg1, class_2487 arg2)
m_bcqffxbf(C_pscqxfcs<C_incrreuu> arg0, C_sddaxwyk arg1, C_hhlwcnih arg2)
set(ComponentType<NbtComponent> type, ItemStack stack, NbtCompound nbt)
set(DataComponentType<NbtComponent> type, ItemStack stack, NbtCompound compound)
m_323150_(C_313543_<C_313856_> p_327973_, C_1391_ p_332195_, C_4917_ p_330130_)
public CustomData
a(Consumer<ub> arg0)
update(Consumer<CompoundTag> arg0)
method_57451(Consumer<class_2487> arg0)
m_lfcubyxo(Consumer<C_hhlwcnih> arg0)
apply(Consumer<NbtCompound> nbtConsumer)
apply(Consumer<NbtCompound> nbtConsumer)
m_320944_(Consumer<C_4917_> arg0)
public void
a(bsr arg0)
loadInto(Entity arg0)
method_57445(class_1297 arg0)
m_wmxtvflz(C_astfners arg0)
applyToEntity(Entity entity)
applyToEntity(Entity entity)
m_322510_(C_507_ arg0)
public boolean
a(dqh arg0, jo$a arg1)
loadInto(BlockEntity arg0, HolderLookup$Provider arg1)
method_57449(class_2586 arg0, class_7225$class_7874 arg1)
m_tngelwrt(C_kvegafmh arg0, C_vtbxyypo$C_etmlgbig arg1)
applyToBlockEntity(BlockEntity blockEntity, RegistryWrapper$WrapperLookup registryLookup)
applyToBlockEntity(BlockEntity entity, HolderLookup$Provider lookupProvider)
m_323254_(C_1991_ p_331192_, C_213466_$C_254607_ arg1)
public <T> com.mojang.serialization.DataResult<CustomData>
a(com.mojang.serialization.DynamicOps<uy> arg0, com.mojang.serialization.MapEncoder<T> arg1, T arg2)
update(com.mojang.serialization.DynamicOps<Tag> arg0, com.mojang.serialization.MapEncoder<T> arg1, T arg2)
method_57447(com.mojang.serialization.DynamicOps<class_2520> arg0, com.mojang.serialization.MapEncoder<T> arg1, T arg2)
m_ggtvptmb(com.mojang.serialization.DynamicOps<C_oivssbvb> arg0, com.mojang.serialization.MapEncoder<T> arg1, T arg2)
with(com.mojang.serialization.DynamicOps<NbtElement> ops, com.mojang.serialization.MapEncoder<T> encoder, T value)
m_ggtvptmb(com.mojang.serialization.DynamicOps<NbtElement> ops, com.mojang.serialization.MapEncoder<T> arg1, T arg2)
m_323216_(com.mojang.serialization.DynamicOps<C_4950_> p_328479_, com.mojang.serialization.MapEncoder<T> p_328689_, T arg2)
public <T> com.mojang.serialization.DataResult<T>
a(com.mojang.serialization.MapDecoder<T> arg0)
read(com.mojang.serialization.MapDecoder<T> arg0)
method_57446(com.mojang.serialization.MapDecoder<T> arg0)
m_tlbeqaeg(com.mojang.serialization.MapDecoder<T> arg0)
get(com.mojang.serialization.MapDecoder<T> decoder)
m_322213_(com.mojang.serialization.MapDecoder<T> arg0)
public <T> com.mojang.serialization.DataResult<T>
a(com.mojang.serialization.DynamicOps<uy> arg0, com.mojang.serialization.MapDecoder<T> arg1)
read(com.mojang.serialization.DynamicOps<Tag> arg0, com.mojang.serialization.MapDecoder<T> arg1)
method_59980(com.mojang.serialization.DynamicOps<class_2520> arg0, com.mojang.serialization.MapDecoder<T> arg1)
m_dckjjoto(com.mojang.serialization.DynamicOps<C_oivssbvb> arg0, com.mojang.serialization.MapDecoder<T> arg1)
get(com.mojang.serialization.DynamicOps<NbtElement> ops, com.mojang.serialization.MapDecoder<T> decoder)
m_dckjjoto(com.mojang.serialization.DynamicOps<NbtElement> ops, com.mojang.serialization.MapDecoder<T> arg1)
m_339511_(com.mojang.serialization.DynamicOps<C_4950_> p_342176_, com.mojang.serialization.MapDecoder<T> arg1)
public int
a()
size()
method_57444()
m_tfnbnkoy()
getSize()
getSize()
m_322577_()
public boolean
b()
isEmpty()
method_57458()
m_fcottrvr()
isEmpty()
isEmpty()
m_318976_()
public CompoundTag
c()
copyTag()
method_57461()
m_clauenbt()
copyNbt()
copy()
m_323330_()
public boolean
a(String arg0)
contains(String arg0)
method_57450(String arg0)
m_ongxyjew(String arg0)
contains(String key)
containsKey(String key)
m_323290_(String arg0)
public CompoundTag
d()
getUnsafe()
method_57463()
m_tpafhgjl()
getNbt()
getNbt()
m_323459_()