public class RayBlockHitTest implements BlockIterator.BlockIteratorProcedure
Class RayBlockHitTest. Provides rayblockhittest functionality for the Hytale server.
java.lang.Object > RayBlockHitTest
Field Summary
world
private
World
world
Field world.
chunk
private
WorldChunk
chunk
Field chunk.
blockSet
private
int
blockSet
Field blockSet.
lastBlockRevision
private
short
lastBlockRevision
Field lastBlockRevision.
blockId
final
int
blockId
Field blockId.
transformComponent
final
TransformComponent
transformComponent
Field transformComponent.
modelComponent
final
ModelComponent
modelComponent
Field modelComponent.
headRotationComponent
final
HeadRotation
headRotationComponent
Field headRotationComponent.
origin
final
Vector3d
origin
Field origin.
yaw
final
float
yaw
Field yaw.
Method Detail
RayBlockHitTest
public
public
RayBlockHitTest
()
Method RayBlockHitTest.
accept
public
boolean
accept
(final int x, final int y, final int z, final double px, final double py, final double pz, final double qx, final double qy, final double qz)
Method accept.
- Parameters:
final intxfinal intyfinal intzfinal doublepxfinal doublepyfinal doublepzfinal doubleqxfinal doubleqyfinal doubleqz
getLastBlockRevision
public
short
getLastBlockRevision
()
Method getLastBlockRevision.
init
public
boolean
init
(@Nonnull final Ref ref, final int blockSet, final float pitch, @Nonnull final ComponentAccessor componentAccessor)
Method init.
- Parameters:
@Nonnull final Refreffinal intblockSetfinal floatpitch@Nonnull final ComponentAccessorcomponentAccessor
run
public
boolean
run
(final double range)
Method run.
- Parameters:
final doublerange
clear
public
void
clear
()
Method clear.