Class BiomeImpl

java.lang.Object
dev.wyck.biome.internal.BiomeImpl
All Implemented Interfaces:
Biome, Wrapper, Keyed
Direct Known Subclasses:
CustomBiomeImpl

@NullMarked @Internal public class BiomeImpl extends Object implements Biome
This implementation is here because it does not compile against Minecraft internals as of right now. Do not directly use this class, use Biome.
  • Constructor Details

  • Method Details

    • resourceKey

      public ResourceKey resourceKey()
      Description copied from interface: Biome
      The key associated with this biome.
      Specified by:
      resourceKey in interface Biome
      Returns:
      the key of this biome.
    • climateSettings

      public ClimateSettings climateSettings()
      Description copied from interface: Biome
      Climate settings associated with this biome.
      Specified by:
      climateSettings in interface Biome
      Returns:
      the climate settings associated with this biome.
    • climateSettings

      public void climateSettings(ClimateSettings climateSettings)
      Description copied from interface: Biome
      Sets new climate settings for this biome.
      Specified by:
      climateSettings in interface Biome
      Parameters:
      climateSettings - the new climate settings to set for this biome.
    • specialEffects

      public BiomeSpecialEffects specialEffects()
      Description copied from interface: Biome
      Various biome-specific visuals as they appear in vanilla.
      Specified by:
      specialEffects in interface Biome
      Returns:
      the biome special effects associated with this biome.
    • specialEffects

      public void specialEffects(BiomeSpecialEffects specialEffects)
      Description copied from interface: Biome
      Sets new special effects for this biome.
      Specified by:
      specialEffects in interface Biome
      Parameters:
      specialEffects - the new special effects to set for this biome.
    • attributes

      public EnvironmentAttributeMap attributes()
      Description copied from interface: Biome
      A map of the environment attributes associated with this biome.
      Specified by:
      attributes in interface Biome
      Returns:
      an environment attribute map populated with the environment attributes of this biome.
    • attributes

      public void attributes(EnvironmentAttributeMap attributes)
      Description copied from interface: Biome
      Sets the environment attributes for this biome.
      Specified by:
      attributes in interface Biome
      Parameters:
      attributes - the environment attribute map to set for this biome
    • biomeSpawner

      public @Nullable BiomeSpawner biomeSpawner()
      Description copied from interface: Biome
      Gets the biome spawner associated with this biome.
      Specified by:
      biomeSpawner in interface Biome
      Returns:
      the BiomeSpawner of this biome, or null if none is set.
    • biomeSpawner

      public void biomeSpawner(@Nullable BiomeSpawner biomeSpawner)
      Description copied from interface: Biome
      Sets or removes the BiomeSpawner of this biome.
      Specified by:
      biomeSpawner in interface Biome
      Parameters:
      biomeSpawner - the BiomeSpawner to set for this biome, or null to remove it.
    • generationSettings

      public @Nullable BiomeGenerationSettings generationSettings()
      Description copied from interface: Biome
      Gets world generation settings associated with this biome.
      Specified by:
      generationSettings in interface Biome
      Returns:
      the BiomeGenerationSettings of this biome, or null if none is set.
    • generationSettings

      public void generationSettings(@Nullable BiomeGenerationSettings generationSettings)
      Description copied from interface: Biome
      Sets or removes the world generation settings for this biome.
      Specified by:
      generationSettings in interface Biome
      Parameters:
      generationSettings - the BiomeGenerationSettings to set for this biome, or null to remove it.
    • bukkitBiome

      public Biome bukkitBiome()
      Description copied from interface: Biome
      Gets the Bukkit representation of this biome.
      Specified by:
      bukkitBiome in interface Biome
      Returns:
      the Bukkit Biome equivalent of this biome.
    • isSimilar

      public boolean isSimilar(Biome otherBiome)
      Description copied from interface: Biome
      Compares this biome to another biome to determine if they are similar. Two AbstractBiomes are considered similar if they have the same properties.
      Specified by:
      isSimilar in interface Biome
      Parameters:
      otherBiome - The other AbstractBiome to compare to.
      Returns:
      true if the AbstractBiomes are similar, false otherwise.
    • key

      public Key key()
      Specified by:
      key in interface Keyed
    • toMinecraft

      public Object toMinecraft()
      Description copied from interface: Wrapper
      Convert this handle to the real Minecraft object.
      Specified by:
      toMinecraft in interface Wrapper
      Returns:
      the real Minecraft object
    • toString

      public String toString()
      Overrides:
      toString in class Object