Class OffsetTransform

java.lang.Object
com.hypixel.hytale.server.npc.sensorinfo.OffsetTransform
All Implemented Interfaces:
PositionSetTransform

public class OffsetTransform extends Object implements PositionSetTransform
A PositionSetTransform that shifts every point by a fixed offset.
  • 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: PositionSetTransform
      Transforms one resolved point.
      Specified by:
      transform in interface PositionSetTransform
      Parameters:
      in - the resolved input position
      out - receives the transformed position
      store - the entity store (for world/block access; unused by purely geometric transforms)
      Returns:
      true if out was written and the element should be kept or false to drop the element from the output set