Package net.minestom.server.registry
Class Registry
java.lang.Object
net.minestom.server.registry.Registry
Handles registry data, used by
StaticProtocolObject
implementations and is strictly internal.
Use at your own risk.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
static final record
static final class
static final class
static final class
static final record
Registry.Container<T extends StaticProtocolObject>
static final record
static final record
static final record
static final class
static interface
static final record
static final record
static final class
static final record
static final record
static interface
static enum
static final record
static final record
static final record
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Registry.AttributeEntry
attribute
(String namespace, @NotNull Registry.Properties main) static Registry.BannerPatternEntry
bannerPattern
(String namespace, @NotNull Registry.Properties main) static Registry.BiomeEntry
biome
(String namespace, Registry.Properties properties) static Registry.BlockEntry
block
(String namespace, @NotNull Registry.Properties main) static Registry.ChatTypeEntry
chatType
(String namespace, @NotNull Registry.Properties main) static <T extends StaticProtocolObject>
Registry.Container<T> createStaticContainer
(Registry.Resource resource, Registry.Container.Loader<T> loader) static Registry.DamageTypeEntry
damageType
(String namespace, @NotNull Registry.Properties main) static Registry.DimensionTypeEntry
dimensionType
(String namespace, @NotNull Registry.Properties main) static Registry.EnchantmentEntry
enchantment
(String namespace, @NotNull Registry.Properties main) static Registry.EntityEntry
entity
(String namespace, @NotNull Registry.Properties main) static Registry.FeatureFlagEntry
featureFlag
(String namespace, @NotNull Registry.Properties main) static Registry.JukeboxSongEntry
jukeboxSong
(String namespace, @NotNull Registry.Properties main) load
(Registry.Resource resource) static Registry.MaterialEntry
material
(String namespace, @NotNull Registry.Properties main) paintingVariant
(String namespace, @NotNull Registry.Properties main) static Registry.PotionEffectEntry
potionEffect
(String namespace, @NotNull Registry.Properties main) static Registry.TrimMaterialEntry
trimMaterial
(String namespace, @NotNull Registry.Properties main) static Registry.TrimPatternEntry
trimPattern
(String namespace, @NotNull Registry.Properties main) static Registry.WolfVariantEntry
wolfVariant
(String namespace, @NotNull Registry.Properties main)
-
Constructor Details
-
Registry
public Registry()
-
-
Method Details
-
block
@Internal public static Registry.BlockEntry block(String namespace, @NotNull @NotNull Registry.Properties main) -
dimensionType
@Internal public static Registry.DimensionTypeEntry dimensionType(String namespace, @NotNull @NotNull Registry.Properties main) -
biome
-
material
@Internal public static Registry.MaterialEntry material(String namespace, @NotNull @NotNull Registry.Properties main) -
entity
@Internal public static Registry.EntityEntry entity(String namespace, @NotNull @NotNull Registry.Properties main) -
featureFlag
@Internal public static Registry.FeatureFlagEntry featureFlag(String namespace, @NotNull @NotNull Registry.Properties main) -
potionEffect
@Internal public static Registry.PotionEffectEntry potionEffect(String namespace, @NotNull @NotNull Registry.Properties main) -
damageType
@Internal public static Registry.DamageTypeEntry damageType(String namespace, @NotNull @NotNull Registry.Properties main) -
trimMaterial
@Internal public static Registry.TrimMaterialEntry trimMaterial(String namespace, @NotNull @NotNull Registry.Properties main) -
trimPattern
@Internal public static Registry.TrimPatternEntry trimPattern(String namespace, @NotNull @NotNull Registry.Properties main) -
attribute
@Internal public static Registry.AttributeEntry attribute(String namespace, @NotNull @NotNull Registry.Properties main) -
bannerPattern
@Internal public static Registry.BannerPatternEntry bannerPattern(String namespace, @NotNull @NotNull Registry.Properties main) -
wolfVariant
@Internal public static Registry.WolfVariantEntry wolfVariant(String namespace, @NotNull @NotNull Registry.Properties main) -
chatType
@Internal public static Registry.ChatTypeEntry chatType(String namespace, @NotNull @NotNull Registry.Properties main) -
enchantment
@Internal public static Registry.EnchantmentEntry enchantment(String namespace, @NotNull @NotNull Registry.Properties main) -
paintingVariant
@Internal public static Registry.PaintingVariantEntry paintingVariant(String namespace, @NotNull @NotNull Registry.Properties main) -
jukeboxSong
@Internal public static Registry.JukeboxSongEntry jukeboxSong(String namespace, @NotNull @NotNull Registry.Properties main) -
load
-
createStaticContainer
@Internal public static <T extends StaticProtocolObject> Registry.Container<T> createStaticContainer(Registry.Resource resource, Registry.Container.Loader<T> loader)
-