Contents
Class OffsetTransform
java.lang.Object
com.hypixel.hytale.server.npc.sensorinfo.OffsetTransform
- All Implemented Interfaces:
PositionSetTransform
A
PositionSetTransform that shifts every point by a fixed offset.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleantransform(org.joml.Vector3d in, org.joml.Vector3d out, Store<EntityStore> store) Transforms one resolved point.
-
Constructor Details
-
OffsetTransform
public OffsetTransform(@Nonnull org.joml.Vector3d offset)
-
-
Method Details
-
transform
public boolean transform(@Nonnull org.joml.Vector3d in, @Nonnull org.joml.Vector3d out, @Nonnull Store<EntityStore> store) Description copied from interface:PositionSetTransformTransforms one resolved point.- Specified by:
transformin interfacePositionSetTransform- Parameters:
in- the resolved input positionout- receives the transformed positionstore- the entity store (for world/block access; unused by purely geometric transforms)- Returns:
- true if
outwas written and the element should be kept or false to drop the element from the output set
-