net.minecraft.world.item.component

public final class CustomData

czy
net.minecraft.world.item.component.CustomData
net.minecraft.class_9279
net.minecraft.component.type.NbtComponent
net.minecraft.world.item.component.CustomData

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
e
LOGGER
field_51522
LOGGER
public static final CustomData
a
EMPTY
field_49302
DEFAULT
public static final com.mojang.serialization.Codec<CustomData>
b
CODEC
field_49303
CODEC
public static final com.mojang.serialization.Codec<CustomData>
c
CODEC_WITH_ID
field_49304
CODEC_WITH_ID
public static final StreamCodec<io.netty.buffer.ByteBuf, CustomData>
d
STREAM_CODEC
field_49305
PACKET_CODEC
private final CompoundTag
f
tag
field_49306
nbt

Constructor summary

ModifierConstructor
private (CompoundTag nbt)

Method summary

Modifier and TypeMethod
public static CustomData
a(ux arg0)
of(CompoundTag arg0)
method_57456(class_2487 arg0)
of(NbtCompound nbt)
public static Predicate<ItemStack>
a(kt<czy> arg0, ux arg1)
itemMatcher(DataComponentType<CustomData> arg0, CompoundTag arg1)
method_57454(class_9331<class_9279> arg0, class_2487 arg1)
createPredicate(ComponentType<NbtComponent> type, NbtCompound nbt)
public boolean
b(ux arg0)
matchedBy(CompoundTag arg0)
method_57460(class_2487 arg0)
matches(NbtCompound nbt)
public static void
a(kt<czy> arg0, cxp arg1, Consumer<ux> 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)
public static void
a(kt<czy> arg0, cxp arg1, ux 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)
public CustomData
a(Consumer<ux> arg0)
update(Consumer<CompoundTag> arg0)
method_57451(Consumer<class_2487> arg0)
apply(Consumer<NbtCompound> nbtConsumer)
public void
a(bvk arg0)
loadInto(Entity arg0)
method_57445(class_1297 arg0)
applyToEntity(Entity entity)
public boolean
a(dux arg0, js$a arg1)
loadInto(BlockEntity arg0, HolderLookup$Provider arg1)
method_57449(class_2586 arg0, class_7225$class_7874 arg1)
applyToBlockEntity(BlockEntity blockEntity, RegistryWrapper$WrapperLookup registries)
public <T> com.mojang.serialization.DataResult<CustomData>
a(com.mojang.serialization.DynamicOps<vu> 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)
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)
public <T> com.mojang.serialization.DataResult<T>
a(com.mojang.serialization.DynamicOps<vu> 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)
public int
a()
size()
method_57444()
getSize()
public boolean
b()
isEmpty()
method_57458()
isEmpty()
public CompoundTag
c()
copyTag()
method_57461()
copyNbt()
public boolean
a(String arg0)
contains(String arg0)
method_57450(String arg0)
contains(String key)
public CompoundTag
d()
getUnsafe()
method_57463()
getNbt()