Interface DataPackSerializable
- All Known Subinterfaces:
Advancement, ArtType, Biome, BrewingRecipe, Carver, ChatType, CookingRecipe, CraftingRecipe, DamageType, DensityFunction, Feature, JigsawPool, Noise, NoiseGeneratorConfig, PlacedFeature, ProcessorList, Recipe<T>, ShapedCraftingRecipe, ShapelessCraftingRecipe, SmithingRecipe, SpecialCraftingRecipe, StoneCutterRecipe, Structure, StructureSet, WorldArchetypeType, WorldType
public interface DataPackSerializable
Represents a type that can be serialized into a
DataContainer
and is a valid data pack entry.-
Method Summary
Modifier and TypeMethodDescriptiontoDataPack(RegistryHolder registryHolder) Creates a serialized representation of this type if possible.
-
Method Details
-
toDataPack
Creates a serialized representation of this type if possible. Not all types have serializable representation.- Parameters:
registryHolder- The registry holder.- Returns:
- The serialized data container.
-