Contents
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>
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 Summary
FieldsFields inherited from class BreakShape
BASE_CODEC, MAX_DIMENSION, MAX_OFFSET, MAX_TOTAL_CELLS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidforEachLocalOffset(TriIntConsumer consumer) Emits every block offset that makes up this shape, in shape-local coordinates(u, v, w)whereuis right,vis up andwis into the targeted surface.toPacket()Methods inherited from class BreakShape
getDepth, getHeight, getOffset, getOrientation, getWidth, isCentered, selectBlocks
-
Field Details
-
CODEC
-
-
Constructor Details
-
CylinderBreakShape
public CylinderBreakShape()
-
-
Method Details
-
forEachLocalOffset
Description copied from class:BreakShapeEmits every block offset that makes up this shape, in shape-local coordinates(u, v, w)whereuis right,vis up andwis 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:
forEachLocalOffsetin classBreakShape- Parameters:
consumer- Called once per block offset with(u, v, w).
-
toPacket
-