public class PrefabCaveNodeShape implementsCaveNodeShape,IWorldBounds
Class PrefabCaveNodeShape. Provides prefabcavenodeshape functionality for the Hytale server.
java.lang.Object > PrefabCaveNodeShape
Field Summary
prefab
final
IPrefabBuffer
prefab
Field prefab.
bounds
final
IChunkBounds
bounds
Field bounds.
anchor
final
Vector3d
anchor
Field anchor.
x
final
double
x
Field x.
y
final
double
y
Field y.
z
final
double
z
Field z.
cx
final
int
cx
Field cx.
cz
final
int
cz
Field cz.
externalSeed
final
long
externalSeed
Field externalSeed.
buffer
final
PrefabPasteUtil.PrefabPasteBuffer
buffer
Field buffer.
rotation
final
PrefabRotation
rotation
Field rotation.
offset
final
Vector3d
offset
Field offset.
shape
final
CaveNodeShape
shape
Field shape.
parentRotation
final
PrefabRotation
parentRotation
Field parentRotation.
Method Detail
PrefabCaveNodeShape
public
public
PrefabCaveNodeShape
(final CaveType caveType, @Nonnull final Vector3d o, final Vector3d e, @Nonnull final WorldGenPrefabSupplier prefabSupplier, @Nonnull final PrefabRotation rotation, final BlockMaskCondition configuration)
Method PrefabCaveNodeShape.
- Parameters:
final CaveTypecaveType@Nonnull final Vector3dofinal Vector3de@Nonnull final WorldGenPrefabSupplierprefabSupplier@Nonnull final PrefabRotationrotationfinal BlockMaskConditionconfiguration
getAnchor
public
Vector3d
getAnchor
(@Nonnull final Vector3d vector, final double tx, final double ty, final double tz)
Method getAnchor.
- Parameters:
@Nonnull final Vector3dvectorfinal doubletxfinal doubletyfinal doubletz
getLowBoundX
public
int
getLowBoundX
()
Method getLowBoundX.
getLowBoundZ
public
int
getLowBoundZ
()
Method getLowBoundZ.
getHighBoundX
public
int
getHighBoundX
()
Method getHighBoundX.
getHighBoundZ
public
int
getHighBoundZ
()
Method getHighBoundZ.
getLowBoundY
public
int
getLowBoundY
()
Method getLowBoundY.
getHighBoundY
public
int
getHighBoundY
()
Method getHighBoundY.
shouldReplace
public
boolean
shouldReplace
(final int seed, final double x, final double z, final int y)
Method shouldReplace.
- Parameters:
final intseedfinal doublexfinal doublezfinal inty
getFloorPosition
public
double
getFloorPosition
(final int seed, double x, double z)
Method getFloorPosition.
- Parameters:
final intseeddoublexdoublez
getCeilingPosition
public
double
getCeilingPosition
(final int seed, double x, double z)
Method getCeilingPosition.
- Parameters:
final intseeddoublexdoublez
populateChunk
public
void
populateChunk
(final int seed, @Nonnull final ChunkGeneratorExecution execution, @Nonnull final Cave cave, @Nonnull final CaveNode node, final Random random)
Method populateChunk.
- Parameters:
final intseed@Nonnull final ChunkGeneratorExecutionexecution@Nonnull final Cavecave@Nonnull final CaveNodenodefinal Randomrandom
toString
public
String
toString
()
Method toString.
PrefabCaveNodeShapeGenerator
public
public
PrefabCaveNodeShapeGenerator
(final List prefabs, final BlockMaskCondition configuration)
Method PrefabCaveNodeShapeGenerator.
- Parameters:
final Listprefabsfinal BlockMaskConditionconfiguration
generateCaveNodeShape
public
CaveNodeShape
generateCaveNodeShape
(@Nonnull final Random random, final CaveType caveType, @Nullable final CaveNode parentNode, @Nonnull final CaveNodeType.CaveNodeChildEntry childEntry, @Nonnull final Vector3d origin, final float yaw, final float pitch)
Method generateCaveNodeShape.
- Parameters:
@Nonnull final Randomrandomfinal CaveTypecaveType@Nullable final CaveNodeparentNode@Nonnull final CaveNodeType.CaveNodeChildEntrychildEntry@Nonnull final Vector3doriginfinal floatyawfinal floatpitch