Class Registries

java.lang.Object
net.minestom.server.registry.Registries

public final class Registries
extends java.lang.Object
AUTOGENERATED
  • Field Details

    • blocks

      @Deprecated public static final java.util.HashMap<NamespaceID,​Block> blocks
      Deprecated.
      Should only be used for internal code, please use the get* methods.
    • materials

      @Deprecated public static final java.util.HashMap<NamespaceID,​Material> materials
      Deprecated.
      Should only be used for internal code, please use the get* methods.
    • enchantments

      @Deprecated public static final java.util.HashMap<NamespaceID,​Enchantment> enchantments
      Deprecated.
      Should only be used for internal code, please use the get* methods.
    • entityTypes

      @Deprecated public static final java.util.HashMap<NamespaceID,​EntityType> entityTypes
      Deprecated.
      Should only be used for internal code, please use the get* methods.
    • particles

      @Deprecated public static final java.util.HashMap<NamespaceID,​Particle> particles
      Deprecated.
      Should only be used for internal code, please use the get* methods.
    • potionTypes

      @Deprecated public static final java.util.HashMap<NamespaceID,​PotionType> potionTypes
      Deprecated.
      Should only be used for internal code, please use the get* methods.
    • potionEffects

      @Deprecated public static final java.util.HashMap<NamespaceID,​PotionEffect> potionEffects
      Deprecated.
      Should only be used for internal code, please use the get* methods.
    • sounds

      @Deprecated public static final java.util.HashMap<NamespaceID,​Sound> sounds
      Deprecated.
      Should only be used for internal code, please use the get* methods.
    • statisticTypes

      @Deprecated public static final java.util.HashMap<NamespaceID,​StatisticType> statisticTypes
      Deprecated.
      Should only be used for internal code, please use the get* methods.
    • fluids

      @Deprecated public static final java.util.HashMap<NamespaceID,​Fluid> fluids
      Deprecated.
      Should only be used for internal code, please use the get* methods.
  • Constructor Details

  • Method Details

    • getBlock

      @NotNull public static Block getBlock​(java.lang.String id)
      Returns the corresponding Block matching the given id. Returns 'AIR' if none match.
    • getBlock

      @NotNull public static Block getBlock​(NamespaceID id)
      Returns the corresponding Block matching the given id. Returns 'AIR' if none match.
    • getMaterial

      @NotNull public static Material getMaterial​(java.lang.String id)
      Returns the corresponding Material matching the given id. Returns 'AIR' if none match.
    • getMaterial

      @NotNull public static Material getMaterial​(NamespaceID id)
      Returns the corresponding Material matching the given id. Returns 'AIR' if none match.
    • getEnchantment

      @Nullable public static Enchantment getEnchantment​(java.lang.String id)
      Returns the corresponding Enchantment matching the given id. Returns null if none match.
    • getEnchantment

      @Nullable public static Enchantment getEnchantment​(NamespaceID id)
      Returns the corresponding Enchantment matching the given id. Returns null if none match.
    • getEntityType

      @NotNull public static EntityType getEntityType​(java.lang.String id)
      Returns the corresponding EntityType matching the given id. Returns 'PIG' if none match.
    • getEntityType

      @NotNull public static EntityType getEntityType​(NamespaceID id)
      Returns the corresponding EntityType matching the given id. Returns 'PIG' if none match.
    • getParticle

      @Nullable public static Particle getParticle​(java.lang.String id)
      Returns the corresponding Particle matching the given id. Returns null if none match.
    • getParticle

      @Nullable public static Particle getParticle​(NamespaceID id)
      Returns the corresponding Particle matching the given id. Returns null if none match.
    • getPotionType

      @Nullable public static PotionType getPotionType​(java.lang.String id)
      Returns the corresponding PotionType matching the given id. Returns null if none match.
    • getPotionType

      @Nullable public static PotionType getPotionType​(NamespaceID id)
      Returns the corresponding PotionType matching the given id. Returns null if none match.
    • getPotionEffect

      @Nullable public static PotionEffect getPotionEffect​(java.lang.String id)
      Returns the corresponding PotionEffect matching the given id. Returns null if none match.
    • getPotionEffect

      @Nullable public static PotionEffect getPotionEffect​(NamespaceID id)
      Returns the corresponding PotionEffect matching the given id. Returns null if none match.
    • getSound

      @Nullable public static Sound getSound​(java.lang.String id)
      Returns the corresponding Sound matching the given id. Returns null if none match.
    • getSound

      @Nullable public static Sound getSound​(NamespaceID id)
      Returns the corresponding Sound matching the given id. Returns null if none match.
    • getStatisticType

      @Nullable public static StatisticType getStatisticType​(java.lang.String id)
      Returns the corresponding StatisticType matching the given id. Returns null if none match.
    • getStatisticType

      @Nullable public static StatisticType getStatisticType​(NamespaceID id)
      Returns the corresponding StatisticType matching the given id. Returns null if none match.
    • getFluid

      @NotNull public static Fluid getFluid​(java.lang.String id)
      Returns the corresponding Fluid matching the given id. Returns 'EMPTY' if none match.
    • getFluid

      @NotNull public static Fluid getFluid​(NamespaceID id)
      Returns the corresponding Fluid matching the given id. Returns 'EMPTY' if none match.