Class CylinderBreakShape

java.lang.Object
com.hypixel.hytale.server.core.modules.interaction.breakshape.BreakShape
com.hypixel.hytale.server.core.modules.interaction.breakshape.CylinderBreakShape
All Implemented Interfaces:
NetworkSerializable<BreakShape>

public class CylinderBreakShape extends BreakShape
A BreakShape that covers an elliptical disc of blocks in the user's view plane (radii Width/2 and Height/2) extruded Depth blocks into the targeted surface.
  • Field Details

  • Constructor Details

    • CylinderBreakShape

      public CylinderBreakShape()
  • Method Details

    • forEachLocalOffset

      public void forEachLocalOffset(@Nonnull TriIntConsumer consumer)
      Description copied from class: BreakShape
      Emits every block offset that makes up this shape, in shape-local coordinates (u, v, w) where u is right, v is up and w is into the targeted surface.

      This is the server's source of truth for the shape's footprint; the client preview mirrors it in BreakShapeGeometry (the C# port must be kept in lockstep).

      Specified by:
      forEachLocalOffset in class BreakShape
      Parameters:
      consumer - Called once per block offset with (u, v, w).
    • toPacket

      public BreakShape toPacket()