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
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final classstatic final classstatic final recordRegistry.Container<T extends StaticProtocolObject>static final recordstatic final recordstatic final recordstatic final recordstatic interfacestatic final recordstatic final recordstatic interfaceRegistry.Loader<T extends ProtocolObject>static final classstatic final recordstatic interfacestatic enumstatic final recordstatic final recordstatic final recordstatic final record -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Registry.AttributeEntryattribute(String namespace, @NotNull Registry.Properties main) static Registry.BiomeEntrybiome(String namespace, Registry.Properties properties) static Registry.BlockEntryblock(String namespace, @NotNull Registry.Properties main) static <T extends ProtocolObject>
Registry.DynamicContainer<T> createDynamicContainer(Registry.Resource resource, Registry.Loader<T> loader) static <T extends StaticProtocolObject>
Registry.Container<T> createStaticContainer(Registry.Resource resource, Registry.Loader<T> loader) static Registry.DamageTypeEntrydamageType(String namespace, @NotNull Registry.Properties main) static Registry.EnchantmentEntryenchantment(String namespace, @NotNull Registry.Properties main) static Registry.EntityEntryentity(String namespace, @NotNull Registry.Properties main) static Registry.FeatureFlagEntryfeatureFlag(String namespace, @NotNull Registry.Properties main) static Registry.FluidEntryfluidEntry(String namespace, @NotNull Registry.Properties main) load(Registry.Resource resource) static Registry.MaterialEntrymaterial(String namespace, @NotNull Registry.Properties main) static Registry.PotionEffectEntrypotionEffect(String namespace, @NotNull Registry.Properties main) static Registry.TrimMaterialEntrytrimMaterial(String namespace, @NotNull Registry.Properties main) static Registry.TrimPatternEntrytrimPattern(String namespace, @NotNull Registry.Properties main) static Registry.VillagerProfessionvillagerProfession(String namespace, @NotNull Registry.Properties main) static Registry.VillagerTypevillagerType(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) -
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) -
enchantment
@Internal public static Registry.EnchantmentEntry enchantment(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) -
featureFlag
@Internal public static Registry.FeatureFlagEntry featureFlag(String namespace, @NotNull @NotNull Registry.Properties main) -
villagerProfession
@Internal public static Registry.VillagerProfession villagerProfession(String namespace, @NotNull @NotNull Registry.Properties main) -
villagerType
@Internal public static Registry.VillagerType villagerType(String namespace, @NotNull @NotNull Registry.Properties main) -
fluidEntry
@Internal public static Registry.FluidEntry fluidEntry(String namespace, @NotNull @NotNull Registry.Properties main) -
load
-
createStaticContainer
@Internal public static <T extends StaticProtocolObject> Registry.Container<T> createStaticContainer(Registry.Resource resource, Registry.Loader<T> loader) -
createDynamicContainer
@Internal public static <T extends ProtocolObject> Registry.DynamicContainer<T> createDynamicContainer(Registry.Resource resource, Registry.Loader<T> loader)
-