Contents
Class CaveBiomeMaskFlags
java.lang.Object
com.hypixel.hytale.server.worldgen.cave.CaveBiomeMaskFlags
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAllows the CaveNode to attempt to generate in another random direction/shape when the current attempt has failed.static final Int2FlagsConditionstatic final Int2FlagsConditionstatic final intAllows the CaveNode to continue to generate (and spawn child nodes) at a given position/region.static final intAllows the CaveNode to populate at a given position/region. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanContinue(int value) Helper method to determine whether the provided int value contains the 4 flagstatic booleancanGenerate(int value) Helper method to determine whether the provided int value contains the 1 flagstatic booleancanPopulate(int value) Helper method to determine whether the provided int value contains the 2 flagstatic booleantest(int value, int flag) Helper method to determine whether a particular flag is set on the provided value.
-
Field Details
-
DEFAULT_ALLOW
-
DEFAULT_DENY
-
GENERATE
public static final int GENERATEAllows 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 POPULATEAllows 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 CONTINUEAllows 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.
-