Class RegistryData
java.lang.Object
net.minestom.server.registry.RegistryData
Deprecated, for removal: This API element is subject to removal in a future version.
registry values are exposed directly by their owning protocol objects
Handles registry data, used by
StaticProtocolObject implementations and is strictly internal.
Use at your own risk.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordDeprecated, for removal: This API element is subject to removal in a future version.static final classDeprecated, for removal: This API element is subject to removal in a future version.static final recordDeprecated, for removal: This API element is subject to removal in a future version.static final classDeprecated, for removal: This API element is subject to removal in a future version.static interfaceDeprecated, for removal: This API element is subject to removal in a future version.static final recordDeprecated, for removal: This API element is subject to removal in a future version.static final recordDeprecated, for removal: This API element is subject to removal in a future version.static final recordDeprecated, for removal: This API element is subject to removal in a future version.static interfaceRegistryData.Loader<T extends StaticProtocolObject<T>>Deprecated, for removal: This API element is subject to removal in a future version.static final classDeprecated, for removal: This API element is subject to removal in a future version.static final recordDeprecated, for removal: This API element is subject to removal in a future version.static interfaceDeprecated, for removal: This API element is subject to removal in a future version.static final classDeprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic RegistryData.AttributeEntryattribute(String namespace, RegistryData.Properties main) Deprecated, for removal: This API element is subject to removal in a future version.static RegistryData.BlockEntryblock(String namespace, RegistryData.Properties main) Deprecated, for removal: This API element is subject to removal in a future version.static RegistryData.BlockEntryblock(String namespace, RegistryData.Properties main, Map<Object, Object> internCache, @Nullable RegistryData.BlockEntry parent, @Nullable RegistryData.Properties parentProperties) Deprecated, for removal: This API element is subject to removal in a future version.blockSoundTypeEntry(String namespace, RegistryData.Properties properties) Deprecated, for removal: This API element is subject to removal in a future version.static <T extends StaticProtocolObject<T>>
Registry<T> createStaticRegistry(RegistryKey<Registry<T>> registryKey, RegistryData.Loader<T> loader) Deprecated, for removal: This API element is subject to removal in a future version.Instantiates a static registry from a resource file.static RegistryData.EntityEntryentity(String namespace, RegistryData.Properties main) Deprecated, for removal: This API element is subject to removal in a future version.featureFlag(String namespace, RegistryData.Properties main) Deprecated, for removal: This API element is subject to removal in a future version.static RegistryData.FluidEntryfluid(String namespace, RegistryData.Properties main) Deprecated, for removal: This API element is subject to removal in a future version.static RegistryData.GameEventEntrygameEventEntry(String namespace, RegistryData.Properties properties) Deprecated, for removal: This API element is subject to removal in a future version.static RegistryData.PropertiesDeprecated, for removal: This API element is subject to removal in a future version.static @Nullable InputStreamloadRegistryFile(String path) Deprecated, for removal: This API element is subject to removal in a future version.Loads a registry file from the data resources, falling back to the working directory.static RegistryData.MaterialEntrymaterial(String namespace, RegistryData.Properties main) Deprecated, for removal: This API element is subject to removal in a future version.potionEffect(String namespace, RegistryData.Properties main) Deprecated, for removal: This API element is subject to removal in a future version.villagerProfession(String namespace, RegistryData.Properties main) Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
RegistryData
public RegistryData()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
block
@Internal public static RegistryData.BlockEntry block(String namespace, RegistryData.Properties main) Deprecated, for removal: This API element is subject to removal in a future version. -
block
@Internal public static RegistryData.BlockEntry block(String namespace, RegistryData.Properties main, Map<Object, Object> internCache, @Nullable @Nullable RegistryData.BlockEntry parent, @Nullable @Nullable RegistryData.Properties parentProperties) Deprecated, for removal: This API element is subject to removal in a future version. -
material
@Internal public static RegistryData.MaterialEntry material(String namespace, RegistryData.Properties main) Deprecated, for removal: This API element is subject to removal in a future version. -
entity
@Internal public static RegistryData.EntityEntry entity(String namespace, RegistryData.Properties main) Deprecated, for removal: This API element is subject to removal in a future version. -
villagerProfession
@Internal public static RegistryData.VillagerProfessionEntry villagerProfession(String namespace, RegistryData.Properties main) Deprecated, for removal: This API element is subject to removal in a future version. -
featureFlag
@Internal public static RegistryData.FeatureFlagEntry featureFlag(String namespace, RegistryData.Properties main) Deprecated, for removal: This API element is subject to removal in a future version. -
fluid
@Internal public static RegistryData.FluidEntry fluid(String namespace, RegistryData.Properties main) Deprecated, for removal: This API element is subject to removal in a future version. -
potionEffect
@Internal public static RegistryData.PotionEffectEntry potionEffect(String namespace, RegistryData.Properties main) Deprecated, for removal: This API element is subject to removal in a future version. -
attribute
@Internal public static RegistryData.AttributeEntry attribute(String namespace, RegistryData.Properties main) Deprecated, for removal: This API element is subject to removal in a future version. -
gameEventEntry
public static RegistryData.GameEventEntry gameEventEntry(String namespace, RegistryData.Properties properties) Deprecated, for removal: This API element is subject to removal in a future version. -
blockSoundTypeEntry
public static RegistryData.BlockSoundTypeEntry blockSoundTypeEntry(String namespace, RegistryData.Properties properties) Deprecated, for removal: This API element is subject to removal in a future version. -
loadRegistryFile
Deprecated, for removal: This API element is subject to removal in a future version.Loads a registry file from the data resources, falling back to the working directory.- Parameters:
path- The path without a leading slash, e.g. "blocks.json"- Throws:
IOException
-
load
Deprecated, for removal: This API element is subject to removal in a future version. -
createStaticRegistry
@Internal public static <T extends StaticProtocolObject<T>> Registry<T> createStaticRegistry(RegistryKey<Registry<T>> registryKey, RegistryData.Loader<T> loader) Deprecated, for removal: This API element is subject to removal in a future version.Instantiates a static registry from a resource file. The resource file is resolved using the registryKey first from the classpath, then from the working directory.The data file should be at
./{registryKey.path()}.jsonTags will be loaded from
/tags/{registryKey.path()}.json
-