Class CaveBiomeMaskFlags

java.lang.Object
com.hypixel.hytale.server.worldgen.cave.CaveBiomeMaskFlags

public class CaveBiomeMaskFlags extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Allows the CaveNode to attempt to generate in another random direction/shape when the current attempt has failed.
    static final Int2FlagsCondition
     
    static final Int2FlagsCondition
     
    static final int
    Allows the CaveNode to continue to generate (and spawn child nodes) at a given position/region.
    static final int
    Allows the CaveNode to populate at a given position/region.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    canContinue(int value)
    Helper method to determine whether the provided int value contains the 4 flag
    static boolean
    canGenerate(int value)
    Helper method to determine whether the provided int value contains the 1 flag
    static boolean
    canPopulate(int value)
    Helper method to determine whether the provided int value contains the 2 flag
    static boolean
    test(int value, int flag)
    Helper method to determine whether a particular flag is set on the provided value.

    Methods inherited from class Object

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

    • DEFAULT_ALLOW

      public static final Int2FlagsCondition DEFAULT_ALLOW
    • DEFAULT_DENY

      public static final Int2FlagsCondition DEFAULT_DENY
    • GENERATE

      public static final int GENERATE
      Allows the CaveNode to continue to generate (and spawn child nodes) at a given position/region. If left unset then generation for the CaveNode will terminate immediately.
      See Also:
    • POPULATE

      public static final int POPULATE
      Allows the CaveNode to populate at a given position/region. If left unset then the CaveNode will continue to generate child nodes but will not add its own geometry to the world.
      See Also:
    • CONTINUE

      public static final int CONTINUE
      Allows the CaveNode to attempt to generate in another random direction/shape when the current attempt has failed. If left unset then generation for the node will terminate immediately.
      See Also:
  • Constructor Details

    • CaveBiomeMaskFlags

      public CaveBiomeMaskFlags()
  • Method Details

    • canGenerate

      public static boolean canGenerate(int value)
      Helper method to determine whether the provided int value contains the 1 flag
    • canPopulate

      public static boolean canPopulate(int value)
      Helper method to determine whether the provided int value contains the 2 flag
    • canContinue

      public static boolean canContinue(int value)
      Helper method to determine whether the provided int value contains the 4 flag
    • test

      public static boolean test(int value, int flag)
      Helper method to determine whether a particular flag is set on the provided value.
      Parameters:
      value - The value to test.
      flag - The flag to look for in the value.
      Returns:
      True of the flag is set on the provided value.