public class PositionProbeBase
Class PositionProbeBase. Provides positionprobebase functionality for the Hytale server.
java.lang.Object > PositionProbeBase
Field Summary
touchCeil
Field touchCeil.
onGround
Field onGround.
inWater
Field inWater.
validPosition
Field validPosition.
groundLevel
Field groundLevel.
waterLevel
Field waterLevel.
heightOverGround
Field heightOverGround.
heightOverWater
Field heightOverWater.
heightOverSurface
Field heightOverSurface.
depthBelowSurface
Field depthBelowSurface.
lastWaterCheckX
Field lastWaterCheckX.
lastWaterCheckZ
Field lastWaterCheckZ.
lastWaterCheckLevel
Field lastWaterCheckLevel.
world
Field world.
transformComponent
Field transformComponent.
chunkStore
Field chunkStore.
chunkIndex
Field chunkIndex.
chunkRef
Field chunkRef.
x
Field x.
y
Field y.
z
Field z.
chunkStoreAccessor
Field chunkStoreAccessor.
chunkColumnComponent
Field chunkColumnComponent.
blockChunkComponent
Field blockChunkComponent.
Method Detail
PositionProbeBase
public
PositionProbeBase
()
Method PositionProbeBase.
probePosition
boolean
probePosition
(@Nonnull final Ref ref, @Nonnull final Box boundingBox, @Nonnull final Vector3d position, @Nonnull final CollisionResult collisionResult, @Nonnull final T t, @Nonnull final CollisionFilter blockTest, final int materialSet, @Nonnull final ComponentAccessor componentAccessor)
Method probePosition.
- Parameters:
@Nonnull final Refref@Nonnull final BoxboundingBox@Nonnull final Vector3dposition@Nonnull final CollisionResultcollisionResult@Nonnull final Tt@Nonnull final CollisionFilterblockTestfinal intmaterialSet@Nonnull final ComponentAccessorcomponentAccessor
if
else
if
(y > this.waterLevel)
Method if.
- Parameters:
y >this.waterLevel
updateWaterLevel
int
updateWaterLevel
(@Nonnull final ComponentAccessor chunkStore, @Nonnull final ChunkColumn chunkColumn, @Nonnull final BlockChunk blockChunk, final int x, final int z)
Method updateWaterLevel.
- Parameters:
@Nonnull final ComponentAccessorchunkStore@Nonnull final ChunkColumnchunkColumn@Nonnull final BlockChunkblockChunkfinal intxfinal intz
movedFarEnough
boolean
movedFarEnough
(int x, int z)
Method movedFarEnough.
- Parameters:
intxintz
reset
void
reset
()
Method reset.
isValidPosition
boolean
isValidPosition
()
Method isValidPosition.
isTouchCeil
boolean
isTouchCeil
()
Method isTouchCeil.
isOnGround
boolean
isOnGround
()
Method isOnGround.
isInWater
boolean
isInWater
()
Method isInWater.
getGroundLevel
int
getGroundLevel
()
Method getGroundLevel.
getWaterLevel
int
getWaterLevel
()
Method getWaterLevel.
getHeightOverGround
int
getHeightOverGround
()
Method getHeightOverGround.
getHeightOverSurface
int
getHeightOverSurface
()
Method getHeightOverSurface.
getDepthBelowSurface
int
getDepthBelowSurface
()
Method getDepthBelowSurface.
getHeightOverWater
int
getHeightOverWater
()
Method getHeightOverWater.
toString
String
toString
()
Method toString.