Class BoxBreakShape

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

public class BoxBreakShape extends BreakShape
A BreakShape that covers a solid rectangular cuboid of blocks (Width x Height x Depth) oriented to the user's view.
  • Field Details

  • Constructor Details

    • BoxBreakShape

      public BoxBreakShape()
  • 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()