PositionProbeBase

public class PositionProbeBase

Class PositionProbeBase. Provides positionprobebase functionality for the Hytale server.

java.lang.Object > PositionProbeBase

Field Summary

touchCeil

protected boolean touchCeil

Field touchCeil.

onGround

protected boolean onGround

Field onGround.

inWater

protected boolean inWater

Field inWater.

validPosition

protected boolean validPosition

Field validPosition.

groundLevel

protected int groundLevel

Field groundLevel.

waterLevel

protected int waterLevel

Field waterLevel.

heightOverGround

protected int heightOverGround

Field heightOverGround.

heightOverWater

protected int heightOverWater

Field heightOverWater.

heightOverSurface

protected int heightOverSurface

Field heightOverSurface.

depthBelowSurface

protected int depthBelowSurface

Field depthBelowSurface.

lastWaterCheckX

private int lastWaterCheckX

Field lastWaterCheckX.

lastWaterCheckZ

private int lastWaterCheckZ

Field lastWaterCheckZ.

lastWaterCheckLevel

private int lastWaterCheckLevel

Field lastWaterCheckLevel.

world

final World world

Field world.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

chunkStore

final ChunkStore chunkStore

Field chunkStore.

chunkIndex

final long chunkIndex

Field chunkIndex.

chunkRef

final Ref chunkRef

Field chunkRef.

x

final int x

Field x.

y

final int y

Field y.

z

final int z

Field z.

chunkStoreAccessor

final Store chunkStoreAccessor

Field chunkStoreAccessor.

chunkColumnComponent

final ChunkColumn chunkColumnComponent

Field chunkColumnComponent.

blockChunkComponent

final BlockChunk blockChunkComponent

Field blockChunkComponent.

Method Detail

PositionProbeBase

public public PositionProbeBase ()

Method PositionProbeBase.

probePosition

protected 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 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

if

public else if (y > this.waterLevel)

Method if.

Parameters:
y > this.waterLevel

updateWaterLevel

protected 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 ComponentAccessor chunkStore
@Nonnull final ChunkColumn chunkColumn
@Nonnull final BlockChunk blockChunk
final int x
final int z

movedFarEnough

private boolean movedFarEnough (int x, int z)

Method movedFarEnough.

Parameters:
int x
int z

reset

protected void reset ()

Method reset.

isValidPosition

public boolean isValidPosition ()

Method isValidPosition.

isTouchCeil

public boolean isTouchCeil ()

Method isTouchCeil.

isOnGround

public boolean isOnGround ()

Method isOnGround.

isInWater

public boolean isInWater ()

Method isInWater.

getGroundLevel

public int getGroundLevel ()

Method getGroundLevel.

getWaterLevel

public int getWaterLevel ()

Method getWaterLevel.

getHeightOverGround

public int getHeightOverGround ()

Method getHeightOverGround.

getHeightOverSurface

public int getHeightOverSurface ()

Method getHeightOverSurface.

getDepthBelowSurface

public int getDepthBelowSurface ()

Method getDepthBelowSurface.

getHeightOverWater

public int getHeightOverWater ()

Method getHeightOverWater.

toString

public String toString ()

Method toString.