Package net.minestom.server.registry
Class Registries
java.lang.Object
net.minestom.server.registry.Registries
public final class Registries
extends java.lang.Object
AUTOGENERATED
-
Field Summary
Fields Modifier and Type Field Description static java.util.HashMap<NamespaceID,Block>
blocks
Deprecated.static java.util.HashMap<NamespaceID,Enchantment>
enchantments
Deprecated.static java.util.HashMap<NamespaceID,EntityType>
entityTypes
Deprecated.static java.util.HashMap<NamespaceID,Fluid>
fluids
Deprecated.static java.util.HashMap<NamespaceID,Material>
materials
Deprecated.static java.util.HashMap<NamespaceID,Particle>
particles
Deprecated.static java.util.HashMap<NamespaceID,PotionEffect>
potionEffects
Deprecated.static java.util.HashMap<NamespaceID,PotionType>
potionTypes
Deprecated.static java.util.HashMap<NamespaceID,Sound>
sounds
Deprecated.static java.util.HashMap<NamespaceID,StatisticType>
statisticTypes
Deprecated. -
Constructor Summary
Constructors Constructor Description Registries()
-
Method Summary
Modifier and Type Method Description static Block
getBlock(java.lang.String id)
Returns the corresponding Block matching the given id.static Block
getBlock(NamespaceID id)
Returns the corresponding Block matching the given id.static Enchantment
getEnchantment(java.lang.String id)
Returns the corresponding Enchantment matching the given id.static Enchantment
getEnchantment(NamespaceID id)
Returns the corresponding Enchantment matching the given id.static EntityType
getEntityType(java.lang.String id)
Returns the corresponding EntityType matching the given id.static EntityType
getEntityType(NamespaceID id)
Returns the corresponding EntityType matching the given id.static Fluid
getFluid(java.lang.String id)
Returns the corresponding Fluid matching the given id.static Fluid
getFluid(NamespaceID id)
Returns the corresponding Fluid matching the given id.static Material
getMaterial(java.lang.String id)
Returns the corresponding Material matching the given id.static Material
getMaterial(NamespaceID id)
Returns the corresponding Material matching the given id.static Particle
getParticle(java.lang.String id)
Returns the corresponding Particle matching the given id.static Particle
getParticle(NamespaceID id)
Returns the corresponding Particle matching the given id.static PotionEffect
getPotionEffect(java.lang.String id)
Returns the corresponding PotionEffect matching the given id.static PotionEffect
getPotionEffect(NamespaceID id)
Returns the corresponding PotionEffect matching the given id.static PotionType
getPotionType(java.lang.String id)
Returns the corresponding PotionType matching the given id.static PotionType
getPotionType(NamespaceID id)
Returns the corresponding PotionType matching the given id.static Sound
getSound(java.lang.String id)
Returns the corresponding Sound matching the given id.static Sound
getSound(NamespaceID id)
Returns the corresponding Sound matching the given id.static StatisticType
getStatisticType(java.lang.String id)
Returns the corresponding StatisticType matching the given id.static StatisticType
getStatisticType(NamespaceID id)
Returns the corresponding StatisticType matching the given id.
-
Field Details
-
blocks
Deprecated.Should only be used for internal code, please use the get* methods. -
materials
Deprecated.Should only be used for internal code, please use the get* methods. -
enchantments
Deprecated.Should only be used for internal code, please use the get* methods. -
entityTypes
Deprecated.Should only be used for internal code, please use the get* methods. -
particles
Deprecated.Should only be used for internal code, please use the get* methods. -
potionTypes
Deprecated.Should only be used for internal code, please use the get* methods. -
potionEffects
Deprecated.Should only be used for internal code, please use the get* methods. -
sounds
Deprecated.Should only be used for internal code, please use the get* methods. -
statisticTypes
Deprecated.Should only be used for internal code, please use the get* methods. -
fluids
Deprecated.Should only be used for internal code, please use the get* methods.
-
-
Constructor Details
-
Registries
public Registries()
-
-
Method Details
-
getBlock
Returns the corresponding Block matching the given id. Returns 'AIR' if none match. -
getBlock
Returns the corresponding Block matching the given id. Returns 'AIR' if none match. -
getMaterial
Returns the corresponding Material matching the given id. Returns 'AIR' if none match. -
getMaterial
Returns the corresponding Material matching the given id. Returns 'AIR' if none match. -
getEnchantment
Returns the corresponding Enchantment matching the given id. Returns null if none match. -
getEnchantment
Returns the corresponding Enchantment matching the given id. Returns null if none match. -
getEntityType
Returns the corresponding EntityType matching the given id. Returns 'PIG' if none match. -
getEntityType
Returns the corresponding EntityType matching the given id. Returns 'PIG' if none match. -
getParticle
Returns the corresponding Particle matching the given id. Returns null if none match. -
getParticle
Returns the corresponding Particle matching the given id. Returns null if none match. -
getPotionType
Returns the corresponding PotionType matching the given id. Returns null if none match. -
getPotionType
Returns the corresponding PotionType matching the given id. Returns null if none match. -
getPotionEffect
Returns the corresponding PotionEffect matching the given id. Returns null if none match. -
getPotionEffect
Returns the corresponding PotionEffect matching the given id. Returns null if none match. -
getSound
Returns the corresponding Sound matching the given id. Returns null if none match. -
getSound
Returns the corresponding Sound matching the given id. Returns null if none match. -
getStatisticType
Returns the corresponding StatisticType matching the given id. Returns null if none match. -
getStatisticType
Returns the corresponding StatisticType matching the given id. Returns null if none match. -
getFluid
Returns the corresponding Fluid matching the given id. Returns 'EMPTY' if none match. -
getFluid
Returns the corresponding Fluid matching the given id. Returns 'EMPTY' if none match.
-