Class CaveNodeShapeUtils
java.lang.Object
com.hypixel.hytale.server.worldgen.cave.shape.CaveNodeShapeUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BiDoubleToDoubleFunctionstatic final BiDoubleToDoubleFunctionstatic final BiDoubleToDoubleFunctionstatic final BiDoubleToDoubleFunction -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Vector3dgetBoxAnchor(Vector3d vector, IWorldBounds bounds, double tx, double ty, double tz) protected static intgetCoverHeight(int lowest, int lowestPossible, int highest, int highestPossible, boolean heightLimited, CaveNodeType.CaveNodeCoverEntry cover, CaveNodeType.CaveNodeCoverEntry.Entry entry) static doublegetEndHeight(CaveNode node, IDoubleRange range, Random random) static doublegetEndRadius(CaveNode node, IDoubleRange range, Random random) static doublegetEndRadius(CaveNodeShape shape, BiDoubleToDoubleFunction widthHeightSelector) static doublegetEndWidth(CaveNode node, IDoubleRange range, Random random) static BlockFluidEntrygetFillingBlock(CaveType cave, CaveNodeType node, int y, Random random) static Vector3dgetLineAnchor(Vector3d vector, Vector3d o, Vector3d v, double t) static Vector3dgetOffset(CaveNode parent, CaveNodeType.CaveNodeChildEntry childEntry) static Vector3dgetPipeAnchor(Vector3d vector, Vector3d o, Vector3d v, double rx, double ry, double rz, double t, double tv, double th) protected static Vector3dgetRadialProjection(Vector3d vector, double x, double y, double z, double rx, double ry, double rz, double tx, double ty, double tz) static Vector3dgetSphereAnchor(Vector3d vector, Vector3d origin, double rx, double ry, double rz, double tx, double ty, double tz) static booleaninvalidateCover(int x, int y, int z, CaveNodeType.CaveNodeCoverType type, ChunkGeneratorExecution execution, BlockTypeAssetMap<String, com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType> blockTypeMap) static booleanisCoverMatchingParent(int cx, int cz, int y, ChunkGeneratorExecution execution, CaveNodeType.CaveNodeCoverEntry cover)
-
Field Details
-
LEFT
-
RIGHT
-
MIN
-
MAX
-
-
Constructor Details
-
CaveNodeShapeUtils
public CaveNodeShapeUtils()
-
-
Method Details
-
getBoxAnchor
@Nonnull public static Vector3d getBoxAnchor(@Nonnull Vector3d vector, @Nonnull IWorldBounds bounds, double tx, double ty, double tz) -
getLineAnchor
-
getSphereAnchor
-
getPipeAnchor
-
getOffset
@Nonnull public static Vector3d getOffset(@Nullable CaveNode parent, @Nonnull CaveNodeType.CaveNodeChildEntry childEntry) -
getEndRadius
public static double getEndRadius(@Nullable CaveNode node, @Nonnull IDoubleRange range, Random random) -
getEndWidth
public static double getEndWidth(@Nullable CaveNode node, @Nonnull IDoubleRange range, Random random) -
getEndHeight
public static double getEndHeight(@Nullable CaveNode node, @Nonnull IDoubleRange range, Random random) -
getEndRadius
public static double getEndRadius(@Nonnull CaveNodeShape shape, @Nonnull BiDoubleToDoubleFunction widthHeightSelector) -
getFillingBlock
@Nullable public static BlockFluidEntry getFillingBlock(@Nonnull CaveType cave, @Nonnull CaveNodeType node, int y, @Nonnull Random random) -
getCoverHeight
protected static int getCoverHeight(int lowest, int lowestPossible, int highest, int highestPossible, boolean heightLimited, @Nonnull CaveNodeType.CaveNodeCoverEntry cover, @Nonnull CaveNodeType.CaveNodeCoverEntry.Entry entry) -
isCoverMatchingParent
public static boolean isCoverMatchingParent(int cx, int cz, int y, @Nonnull ChunkGeneratorExecution execution, @Nonnull CaveNodeType.CaveNodeCoverEntry cover) -
invalidateCover
public static boolean invalidateCover(int x, int y, int z, CaveNodeType.CaveNodeCoverType type, @Nonnull ChunkGeneratorExecution execution, @Nonnull BlockTypeAssetMap<String, com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType> blockTypeMap) -
getRadialProjection
-