Class RemoveEntityOperation
java.lang.Object
com.ldtteam.structurize.operations.BaseOperation
com.ldtteam.structurize.operations.RemoveEntityOperation
- All Implemented Interfaces:
ITickedWorldOperation
Operation for removing one type of block.
-
Field Summary
Fields inherited from class com.ldtteam.structurize.operations.BaseOperation
storage -
Constructor Summary
ConstructorsConstructorDescriptionRemoveEntityOperation(net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos startPos, net.minecraft.core.BlockPos endPos, net.minecraft.world.entity.EntityType<?> entityType) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanapply(net.minecraft.server.level.ServerLevel world) Apply the operation on the world.Methods inherited from class com.ldtteam.structurize.operations.BaseOperation
getChangeStorage
-
Constructor Details
-
RemoveEntityOperation
public RemoveEntityOperation(net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos startPos, net.minecraft.core.BlockPos endPos, net.minecraft.world.entity.EntityType<?> entityType) Default constructor.- Parameters:
startPos- the start pos to iterate from.endPos- the end pos to iterate to.entityType- what type of entity to remove.
-
-
Method Details
-
apply
public boolean apply(net.minecraft.server.level.ServerLevel world) Description copied from interface:ITickedWorldOperationApply the operation on the world.- Parameters:
world- the world to apply them on.- Returns:
- true if finished.
-