Contents
- Description
- Nested Class Summary
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- getCaveType()
- getPrefabRotation()
- getO()
- getStart()
- getEnd()
- getAnchor(Vector3d, double, double, double)
- getBounds()
- getLowBoundX()
- getLowBoundZ()
- getHighBoundX()
- getHighBoundZ()
- getLowBoundY()
- getHighBoundY()
- shouldReplace(int, double, double, int)
- getFloorPosition(int, double, double)
- getCeilingPosition(int, double, double)
- populateChunk(int, ChunkGeneratorExecution, Cave, CaveNode, Random)
- toString()
Class PrefabCaveNodeShape
java.lang.Object
com.hypixel.hytale.server.worldgen.cave.shape.PrefabCaveNodeShape
- All Implemented Interfaces:
CaveNodeShape, IChunkBounds, IWorldBounds
- Since:
- 13.06.2016
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPrefabCaveNodeShape(CaveType caveType, org.joml.Vector3dc o, org.joml.Vector3dc e, WorldGenPrefabSupplier prefabSupplier, PrefabRotation rotation, BlockMaskCondition configuration) -
Method Summary
Modifier and TypeMethodDescriptionorg.joml.Vector3dgetAnchor(org.joml.Vector3d vector, double tx, double ty, double tz) doublegetCeilingPosition(int seed, double x, double z) org.joml.Vector3dgetEnd()doublegetFloorPosition(int seed, double x, double z) intintintintintintorg.joml.Vector3dcgetO()org.joml.Vector3dgetStart()voidpopulateChunk(int seed, ChunkGeneratorExecution execution, Cave cave, CaveNode node, Random random) booleanshouldReplace(int seed, double x, double z, int y) toString()Methods inherited from interface CaveNodeShape
hasGeometryMethods inherited from interface IChunkBounds
fractionX, fractionZ, getHighBoundX, getHighBoundZ, getHighChunkX, getHighChunkZ, getLowBoundX, getLowBoundZ, getLowChunkX, getLowChunkZ, intersectsChunk, randomX, randomZMethods inherited from interface IWorldBounds
fractionY, intersectsChunk, isValid, randomY
-
Constructor Details
-
PrefabCaveNodeShape
public PrefabCaveNodeShape(CaveType caveType, @Nonnull org.joml.Vector3dc o, org.joml.Vector3dc e, @Nonnull WorldGenPrefabSupplier prefabSupplier, @Nonnull PrefabRotation rotation, BlockMaskCondition configuration)
-
-
Method Details
-
getCaveType
-
getPrefabRotation
-
getO
@Nonnull public org.joml.Vector3dc getO() -
getStart
@Nonnull public org.joml.Vector3d getStart()- Specified by:
getStartin interfaceCaveNodeShape
-
getEnd
@Nonnull public org.joml.Vector3d getEnd()- Specified by:
getEndin interfaceCaveNodeShape
-
getAnchor
@Nonnull public org.joml.Vector3d getAnchor(@Nonnull org.joml.Vector3d vector, double tx, double ty, double tz) - Specified by:
getAnchorin interfaceCaveNodeShape
-
getBounds
- Specified by:
getBoundsin interfaceCaveNodeShape
-
getLowBoundX
public int getLowBoundX()- Specified by:
getLowBoundXin interfaceIChunkBounds
-
getLowBoundZ
public int getLowBoundZ()- Specified by:
getLowBoundZin interfaceIChunkBounds
-
getHighBoundX
public int getHighBoundX()- Specified by:
getHighBoundXin interfaceIChunkBounds
-
getHighBoundZ
public int getHighBoundZ()- Specified by:
getHighBoundZin interfaceIChunkBounds
-
getLowBoundY
public int getLowBoundY()- Specified by:
getLowBoundYin interfaceIWorldBounds
-
getHighBoundY
public int getHighBoundY()- Specified by:
getHighBoundYin interfaceIWorldBounds
-
shouldReplace
public boolean shouldReplace(int seed, double x, double z, int y) - Specified by:
shouldReplacein interfaceCaveNodeShape
-
getFloorPosition
public double getFloorPosition(int seed, double x, double z) - Specified by:
getFloorPositionin interfaceCaveNodeShape
-
getCeilingPosition
public double getCeilingPosition(int seed, double x, double z) - Specified by:
getCeilingPositionin interfaceCaveNodeShape
-
populateChunk
public void populateChunk(int seed, @Nonnull ChunkGeneratorExecution execution, @Nonnull Cave cave, @Nonnull CaveNode node, Random random) - Specified by:
populateChunkin interfaceCaveNodeShape
-
toString
-