Package net.minecraft.core.component
Interface DataComponentType<T>
- All Known Implementing Classes:
DataComponentType.Builder.SimpleType
public interface DataComponentType<T>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<DataComponentType<?>> static final com.mojang.serialization.Codec<DataComponentType<?>> static final StreamCodec<RegistryFriendlyByteBuf, DataComponentType<?>> static final com.mojang.serialization.Codec<Map<DataComponentType<?>, Object>> -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> DataComponentType.Builder<T> builder()com.mojang.serialization.Codec<T> codec()default com.mojang.serialization.Codec<T> default booleanStreamCodec<? super RegistryFriendlyByteBuf, T>
-
Field Details
-
CODEC
-
STREAM_CODEC
-
PERSISTENT_CODEC
-
VALUE_MAP_CODEC
-
-
Method Details
-
builder
-
codec
-
codecOrThrow
-
isTransient
default boolean isTransient() -
streamCodec
StreamCodec<? super RegistryFriendlyByteBuf,T> streamCodec()
-