Class GroundProjectionTransform

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

public class GroundProjectionTransform extends Object implements PositionSetTransform
A PositionSetTransform that projects each point straight down onto the top of the first solid block beneath it, scanning at most maxScanDown blocks.
  • Constructor Details

    • GroundProjectionTransform

      public GroundProjectionTransform(int maxScanDown)
  • 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