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 recordstatic final recordRegistry.Container<T extends StaticProtocolObject>static final classstatic interfacestatic final recordstatic final recordstatic final classstatic final recordstatic interfacestatic enumstatic final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Registry.AttributeEntryattribute(String namespace, @NotNull Registry.Properties main) static Registry.BlockEntryblock(String namespace, @NotNull Registry.Properties main) static Registry.BlockSoundTypeEntryblockSoundTypeEntry(String namespace, Registry.Properties properties) static <T extends StaticProtocolObject>
Registry.Container<T> createStaticContainer(Registry.Resource resource, Registry.Container.Loader<T> loader) static Registry.EntityEntryentity(String namespace, @NotNull Registry.Properties main) static Registry.FeatureFlagEntryfeatureFlag(String namespace, @NotNull Registry.Properties main) static Registry.GameEventEntrygameEventEntry(String namespace, Registry.Properties properties) load(Registry.Resource resource) static @NotNull InputStreamloadRegistryFile(@NotNull Registry.Resource resource) static Registry.MaterialEntrymaterial(String namespace, @NotNull Registry.Properties main) static Registry.PotionEffectEntrypotionEffect(String namespace, @NotNull Registry.Properties main) villagerProfession(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) -
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) -
villagerProfession
@Internal public static Registry.VillagerProfessionEntry villagerProfession(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) -
attribute
@Internal public static Registry.AttributeEntry attribute(String namespace, @NotNull @NotNull Registry.Properties main) -
gameEventEntry
public static Registry.GameEventEntry gameEventEntry(String namespace, Registry.Properties properties) -
blockSoundTypeEntry
public static Registry.BlockSoundTypeEntry blockSoundTypeEntry(String namespace, Registry.Properties properties) -
loadRegistryFile
@NotNull public static @NotNull InputStream loadRegistryFile(@NotNull @NotNull Registry.Resource resource) throws IOException - Throws:
IOException
-
load
-
createStaticContainer
@Internal public static <T extends StaticProtocolObject> Registry.Container<T> createStaticContainer(Registry.Resource resource, Registry.Container.Loader<T> loader)
-