Uses of Class
net.minecraft.world.item.component.CustomData
Packages that use CustomData
Package
Description
-
Uses of CustomData in net.minecraft.core.component
Fields in net.minecraft.core.component with type parameters of type CustomDataModifier and TypeFieldDescriptionstatic final DataComponentType
<CustomData> DataComponents.BLOCK_ENTITY_DATA
static final DataComponentType
<CustomData> DataComponents.BUCKET_ENTITY_DATA
static final DataComponentType
<CustomData> DataComponents.CUSTOM_DATA
static final DataComponentType
<CustomData> DataComponents.ENTITY_DATA
-
Uses of CustomData in net.minecraft.world.entity
Methods in net.minecraft.world.entity with parameters of type CustomDataModifier and TypeMethodDescriptionstatic void
EntityType.updateCustomEntityTag
(Level pLevel, Player pPlayer, Entity pEntity, CustomData pCustomData) -
Uses of CustomData in net.minecraft.world.item.component
Fields in net.minecraft.world.item.component declared as CustomDataFields in net.minecraft.world.item.component with type parameters of type CustomDataModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<CustomData> CustomData.CODEC
static final com.mojang.serialization.Codec
<CustomData> CustomData.CODEC_WITH_ID
static final StreamCodec
<io.netty.buffer.ByteBuf, CustomData> CustomData.STREAM_CODEC
Deprecated.Methods in net.minecraft.world.item.component that return CustomDataModifier and TypeMethodDescriptionstatic CustomData
CustomData.of
(CompoundTag pTag) CustomData.update
(Consumer<CompoundTag> pUpdater) Methods in net.minecraft.world.item.component that return types with arguments of type CustomDataModifier and TypeMethodDescription<T> com.mojang.serialization.DataResult
<CustomData> CustomData.update
(com.mojang.serialization.DynamicOps<Tag> p_346001_, com.mojang.serialization.MapEncoder<T> p_331823_, T p_332045_) Method parameters in net.minecraft.world.item.component with type arguments of type CustomDataModifier and TypeMethodDescriptionCustomData.itemMatcher
(DataComponentType<CustomData> pComponentType, CompoundTag pTag) static void
CustomData.set
(DataComponentType<CustomData> pComponentType, ItemStack pStack, CompoundTag pTag) static void
CustomData.update
(DataComponentType<CustomData> pComponentType, ItemStack pStack, Consumer<CompoundTag> pUpdater) -
Uses of CustomData in net.minecraft.world.level.block.entity
Fields in net.minecraft.world.level.block.entity declared as CustomDataModifier and TypeFieldDescriptionprivate final CustomData
BeehiveBlockEntity.Occupant.entityData
The field for theentityData
record component.Methods in net.minecraft.world.level.block.entity that return CustomDataModifier and TypeMethodDescriptionBeehiveBlockEntity.Occupant.entityData()
Returns the value of theentityData
record component.Constructors in net.minecraft.world.level.block.entity with parameters of type CustomDataModifierConstructorDescriptionOccupant
(CustomData entityData, int ticksInHive, int minTicksInHive) Creates an instance of aOccupant
record class.