net.minecraft.world.item.component

public final class CustomData

cxh
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
LOGGER
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(ub arg0)
of(CompoundTag arg0)
method_57456(class_2487 arg0)
of(NbtCompound nbt)
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)
createPredicate(ComponentType<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)
matches(NbtCompound nbt)
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)
set(ComponentType<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(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)
set(ComponentType<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<ub> arg0)
update(Consumer<CompoundTag> arg0)
method_57451(Consumer<class_2487> arg0)
apply(Consumer<NbtCompound> nbtConsumer)
m_320944_(Consumer<C_4917_> arg0)
public void
a(bsr arg0)
loadInto(Entity arg0)
method_57445(class_1297 arg0)
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)
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.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)
with(com.mojang.serialization.DynamicOps<NbtElement> ops, com.mojang.serialization.MapEncoder<T> encoder, T value)
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)
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)
get(com.mojang.serialization.DynamicOps<NbtElement> ops, com.mojang.serialization.MapDecoder<T> decoder)
m_339511_(com.mojang.serialization.DynamicOps<C_4950_> p_342176_, com.mojang.serialization.MapDecoder<T> arg1)
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_()