Uses of Class
net.minecraft.world.item.component.CustomData
Package
Description
-
Uses of CustomData in net.minecraft.core.component
Modifier 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
Modifier 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
Modifier 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.Modifier and TypeMethodDescriptionstatic CustomData
CustomData.of
(CompoundTag p_330724_) CustomData.update
(Consumer<CompoundTag> p_331451_) Modifier and TypeMethodDescription<T> com.mojang.serialization.DataResult
<CustomData> CustomData.update
(com.mojang.serialization.MapEncoder<T> p_331823_, T p_332045_) Modifier 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
Modifier and TypeFieldDescriptionprivate final CustomData
BeehiveBlockEntity.Occupant.entityData
The field for theentityData
record component.Modifier and TypeMethodDescriptionBeehiveBlockEntity.Occupant.entityData()
Returns the value of theentityData
record component.ModifierConstructorDescriptionOccupant
(CustomData entityData, int ticksInHive, int minTicksInHive) Creates an instance of aOccupant
record class.