Class RayBlockHitTest
java.lang.Object
com.hypixel.hytale.server.npc.util.RayBlockHitTest
- All Implemented Interfaces:
BlockIterator.BlockIteratorProcedure
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate WorldChunkprivate final Vector3dprivate final Vector3dprivate shortprivate final Vector3dstatic final ThreadLocal<RayBlockHitTest> private World -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(int x, int y, int z, double px, double py, double pz, double qx, double qy, double qz) voidclear()shortbooleaninit(Ref<EntityStore> ref, int blockSet, float pitch, ComponentAccessor<EntityStore> componentAccessor) booleanrun(double range)
-
Field Details
-
THREAD_LOCAL
-
world
-
chunk
-
origin
-
direction
-
blockSet
private int blockSet -
hitPosition
-
lastBlockRevision
private short lastBlockRevision
-
-
Constructor Details
-
RayBlockHitTest
public RayBlockHitTest()
-
-
Method Details
-
accept
public boolean accept(int x, int y, int z, double px, double py, double pz, double qx, double qy, double qz) - Specified by:
acceptin interfaceBlockIterator.BlockIteratorProcedure
-
getHitPosition
-
getLastBlockRevision
public short getLastBlockRevision() -
init
public boolean init(@Nonnull Ref<EntityStore> ref, int blockSet, float pitch, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
run
public boolean run(double range) -
clear
public void clear()
-