net.minecraft.world.item.component

public final class CustomData

cxg
net.minecraft.world.item.component.CustomData
net.minecraft.class_9279
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
field_51522
f_336410_
public static final CustomData
a
EMPTY
field_49302
DEFAULT
f_317060_
public static final com.mojang.serialization.Codec<CustomData>
b
CODEC
field_49303
CODEC
f_314012_
public static final com.mojang.serialization.Codec<CustomData>
c
CODEC_WITH_ID
field_49304
CODEC_WITH_ID
f_316298_
public static final StreamCodec<io.netty.buffer.ByteBuf, CustomData>
d
STREAM_CODEC
field_49305
PACKET_CODEC
f_316654_
private final CompoundTag
f
tag
field_49306
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)
of(NbtCompound nbt)
m_321102_(C_4917_ p_334177_)
public static Predicate<ItemStack>
a(kl<cxg> arg0, us arg1)
itemMatcher(DataComponentType<CustomData> arg0, CompoundTag arg1)
method_57454(class_9331<class_9279> arg0, class_2487 arg1)
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)
matches(NbtCompound nbt)
m_324111_(C_4917_ arg0)
public static void
a(kl<cxg> arg0, cur 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)
set(DataComponentType<NbtComponent> type, ItemStack stack, Consumer<NbtCompound> nbtSetter)
m_322978_(C_313543_<C_313856_> p_336008_, C_1391_ p_335562_, Consumer<C_4917_> p_332401_)
public static void
a(kl<cxg> arg0, cur arg1, us arg2)
set(DataComponentType<CustomData> arg0, ItemStack arg1, CompoundTag arg2)
method_57453(class_9331<class_9279> arg0, class_1799 arg1, class_2487 arg2)
set(DataComponentType<NbtComponent> type, ItemStack stack, NbtCompound nbt)
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)
apply(Consumer<NbtCompound> nbtConsumer)
m_320944_(Consumer<C_4917_> arg0)
public void
a(bsw arg0)
loadInto(Entity arg0)
method_57445(class_1297 arg0)
applyToEntity(Entity entity)
m_322510_(C_507_ arg0)
public boolean
a(dpj arg0, jk$a arg1)
loadInto(BlockEntity arg0, HolderLookup$Provider arg1)
method_57449(class_2586 arg0, class_7225$class_7874 arg1)
applyToBlockEntity(BlockEntity blockEntity, RegistryWrapper$WrapperLookup registryLookup)
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)
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)
get(com.mojang.serialization.MapDecoder<T> decoder)
m_322213_(com.mojang.serialization.MapDecoder<T> arg0)
public int
a()
size()
method_57444()
getSize()
m_322577_()
public boolean
b()
isEmpty()
method_57458()
isEmpty()
m_318976_()
public CompoundTag
c()
copyTag()
method_57461()
copyNbt()
m_323330_()
public boolean
a(String arg0)
contains(String arg0)
method_57450(String arg0)
contains(String key)
m_323290_(String arg0)
public CompoundTag
d()
getUnsafe()
method_57463()
getNbt()
m_323459_()