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 p_20621_, Player p_20622_, Entity p_20623_, CustomData p_331752_) -
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 p_330724_) CustomData.update
(Consumer<CompoundTag> p_331451_) 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.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> p_332149_, CompoundTag p_330658_) static void
CustomData.set
(DataComponentType<CustomData> p_330462_, ItemStack p_332015_, CompoundTag p_331019_) static void
CustomData.update
(DataComponentType<CustomData> p_331895_, ItemStack p_332185_, Consumer<CompoundTag> p_331274_) -
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.