Package com.ldtteam.structurize.util
Class PlacerholderFillOperation
java.lang.Object
com.ldtteam.structurize.util.PlacerholderFillOperation
- All Implemented Interfaces:
ITickedWorldOperation
Contains an operation, as remove block, replace block, place structure, etc.
-
Constructor Summary
ConstructorsConstructorDescriptionPlacerholderFillOperation(net.minecraft.core.BlockPos startPos, net.minecraft.core.BlockPos endPos, @Nullable net.minecraft.world.entity.player.Player player, double yStretch, double circleRadiusMult, int heightOffset, int minDistToBlocks) Create a ScanToolOperation. -
Method Summary
Modifier and TypeMethodDescriptionbooleanapply(net.minecraft.server.level.ServerLevel world) Apply the operation on the world.@NotNull ChangeStorageGet the current change storage of this operation.
-
Constructor Details
-
PlacerholderFillOperation
public PlacerholderFillOperation(net.minecraft.core.BlockPos startPos, net.minecraft.core.BlockPos endPos, @Nullable @Nullable net.minecraft.world.entity.player.Player player, double yStretch, double circleRadiusMult, int heightOffset, int minDistToBlocks) Create a ScanToolOperation.- Parameters:
startPos- the start position.endPos- the end position.player- the player who triggered the event.
-
-
Method Details
-
apply
public boolean apply(net.minecraft.server.level.ServerLevel world) Description copied from interface:ITickedWorldOperationApply the operation on the world.- Specified by:
applyin interfaceITickedWorldOperation- Parameters:
world- the world to apply them on.- Returns:
- true if finished.
-
getChangeStorage
Description copied from interface:ITickedWorldOperationGet the current change storage of this operation.- Specified by:
getChangeStoragein interfaceITickedWorldOperation- Returns:
- the ChangeStorage object.
-