net.minecraft.world.item.component

public final class CustomData

cyz
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
private static final String
f
TYPE_TAG
field_55048
ID_KEY
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
g
tag
field_49306
nbt

Constructor summary

ModifierConstructor
private (CompoundTag nbt)

Method summary

Modifier and TypeMethod
public static CustomData
a(tq arg0)
of(CompoundTag arg0)
method_57456(class_2487 arg0)
of(NbtCompound nbt)
public static Predicate<ItemStack>
a(ku<cyz> arg0, tq 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(tq arg0)
matchedBy(CompoundTag arg0)
method_57460(class_2487 arg0)
matches(NbtCompound nbt)
public static void
a(ku<cyz> arg0, cwq arg1, Consumer<tq> 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(ku<cyz> arg0, cwq arg1, tq 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<tq> arg0)
update(Consumer<CompoundTag> arg0)
method_57451(Consumer<class_2487> arg0)
apply(Consumer<NbtCompound> nbtConsumer)
public ResourceLocation
a()
parseEntityId()
method_65131()
getId()
public <T> T
a(jt$a arg0, aku<? extends ke<T>> arg1)
parseEntityType(HolderLookup$Provider arg0, ResourceKey<? extends Registry<T>> arg1)
method_65904(class_7225$class_7874 arg0, class_5321<? extends class_2378<T>> arg1)
getRegistryValueOfId(RegistryWrapper$WrapperLookup registries, RegistryKey<? extends Registry<T>> registryRef)
public void
a(bum arg0)
loadInto(Entity arg0)
method_57445(class_1297 arg0)
applyToEntity(Entity entity)
public boolean
a(dua arg0, jt$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<un> 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<un> 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
b()
size()
method_57444()
getSize()
public boolean
c()
isEmpty()
method_57458()
isEmpty()
public CompoundTag
d()
copyTag()
method_57461()
copyNbt()
public boolean
a(String arg0)
contains(String arg0)
method_57450(String arg0)
contains(String key)
public CompoundTag
e()
getUnsafe()
method_57463()
getNbt()