java.lang.Object
org.cloudburstmc.server.level.biome.Biome

public class Biome extends Object
Author:
DaPorkchop_
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static com.nukkitx.nbt.NbtMap
     
    protected double
     
    protected org.cloudburstmc.api.util.Identifier
     
    protected Set<org.cloudburstmc.api.util.Identifier>
     
    protected double
     
    static net.daporkchop.lib.noise.NoiseSource
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Biome​(@NonNull org.cloudburstmc.api.util.Identifier id, Set<org.cloudburstmc.api.util.Identifier> tags, float temperature, float downfall)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canSnowAt​(org.cloudburstmc.api.level.ChunkManager level, int x, int y, int z)
     
    double
     
    org.cloudburstmc.api.util.Identifier
     
    Set<org.cloudburstmc.api.util.Identifier>
     
    double
     
    double
    getTemperature​(int x, int y, int z)
     
    boolean
    hasTag​(org.cloudburstmc.api.util.Identifier tag)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • BIOME_DEFINITIONS

      public static final com.nukkitx.nbt.NbtMap BIOME_DEFINITIONS
    • TEMPERATURE_NOISE

      public static final net.daporkchop.lib.noise.NoiseSource TEMPERATURE_NOISE
    • id

      protected final org.cloudburstmc.api.util.Identifier id
    • tags

      protected final Set<org.cloudburstmc.api.util.Identifier> tags
    • temperature

      protected final double temperature
    • downfall

      protected final double downfall
  • Constructor Details

    • Biome

      protected Biome(@NonNull @NonNull org.cloudburstmc.api.util.Identifier id, Set<org.cloudburstmc.api.util.Identifier> tags, float temperature, float downfall)
  • Method Details

    • getId

      public org.cloudburstmc.api.util.Identifier getId()
    • hasTag

      public boolean hasTag(org.cloudburstmc.api.util.Identifier tag)
    • getTags

      public Set<org.cloudburstmc.api.util.Identifier> getTags()
    • getTemperature

      public double getTemperature()
    • getTemperature

      public double getTemperature(int x, int y, int z)
    • canSnowAt

      public boolean canSnowAt(org.cloudburstmc.api.level.ChunkManager level, int x, int y, int z)
    • getDownfall

      public double getDownfall()