net.minecraft.world.item.component

public final class CustomData

cxf
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.ChargedProjectiles

Field summary

Modifier and TypeField
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
e
tag
field_49306
f_xmocimwh
nbt
nbt
f_316331_

Constructor summary

ModifierConstructor
private (CompoundTag nbt)

Method summary

Modifier and TypeMethod
public static CustomData
a(us 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(kl<cxf> arg0, us 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(DataComponentType<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(us 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(kl<cxf> arg0, cuq arg1, Consumer<us> 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(DataComponentType<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(kl<cxf> arg0, cuq arg1, us 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(DataComponentType<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<us> 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(bsv 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(dpi arg0, jk$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.MapEncoder<T> arg0, T arg1)
update(com.mojang.serialization.MapEncoder<T> arg0, T arg1)
method_57447(com.mojang.serialization.MapEncoder<T> arg0, T arg1)
m_pyxeqjri(com.mojang.serialization.MapEncoder<T> arg0, T arg1)
with(com.mojang.serialization.MapEncoder<T> encoder, T value)
with(com.mojang.serialization.MapEncoder<T> encoder, T value)
m_323216_(com.mojang.serialization.MapEncoder<T> p_328689_, T arg1)
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_ihscyiza(com.mojang.serialization.MapDecoder<T> arg0)
get(com.mojang.serialization.MapDecoder<T> decoder)
read(com.mojang.serialization.MapDecoder<T> decoder)
m_322213_(com.mojang.serialization.MapDecoder<T> arg0)
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_()