Class LayersOperation
java.lang.Object
com.hypixel.hytale.builtin.buildertools.tooloperations.ToolOperation
com.hypixel.hytale.builtin.buildertools.tooloperations.LayersOperation
- All Implemented Interfaces:
TriIntObjPredicate<Void>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final Vector3iprivate final booleanprivate final booleanprivate booleanprivate final BlockPatternprivate final intprivate final BlockPatternprivate final intprivate final intprivate final BlockPatternprivate final intprivate final intprivate final intFields inherited from class com.hypixel.hytale.builtin.buildertools.tooloperations.ToolOperation
args, builderState, capped, DEFAULT_BRUSH_SPACING, edit, interactionType, MAX_DISTANCE, OPERATIONS, originOffsetX, originOffsetY, originOffsetZ, pattern, player, playerRef, PROTOTYPE_TOOL_SETTINGS, random, RANDOM_MAX, shape, shapeHeight, shapeRange, shapeThickness, x, y, z -
Constructor Summary
ConstructorsConstructorDescriptionLayersOperation(Ref<EntityStore> ref, Player player, BuilderToolOnUseInteraction packet, ComponentAccessor<EntityStore> componentAccessor) -
Method Summary
Modifier and TypeMethodDescriptionbooleanattemptSetBlock(int x, int y, int z, int depth) (package private) booleanexecute0(int x, int y, int z) Methods inherited from class com.hypixel.hytale.builtin.buildertools.tooloperations.ToolOperation
calculateInterpolatedPositions, combineMasks, execute, executeAsBrushConfig, executeAt, executeShapeOperation, fromPacket, getBrushDensity, getBrushHeight, getBrushSpacing, getBrushWidth, getEditOperation, getOrCreatePrototypeSettings, getPosition, getTargetBlockAvoidingPaint, test
-
Field Details
-
depthDirection
-
layerOneLength
private final int layerOneLength -
layerTwoLength
private final int layerTwoLength -
enableLayerTwo
private final boolean enableLayerTwo -
layerThreeLength
private final int layerThreeLength -
enableLayerThree
private final boolean enableLayerThree -
layerOneBlockPattern
-
layerTwoBlockPattern
-
layerThreeBlockPattern
-
brushDensity
private final int brushDensity -
maxDepthNecessary
private final int maxDepthNecessary -
failed
private boolean failed -
layerTwoDepthEnd
private final int layerTwoDepthEnd -
layerThreeDepthEnd
private final int layerThreeDepthEnd
-
-
Constructor Details
-
LayersOperation
public LayersOperation(@Nonnull Ref<EntityStore> ref, @Nonnull Player player, @Nonnull BuilderToolOnUseInteraction packet, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
-
-
Method Details
-
execute0
boolean execute0(int x, int y, int z) - Specified by:
execute0in classToolOperation
-
attemptSetBlock
public boolean attemptSetBlock(int x, int y, int z, int depth)
-