Class RemoveEntityOperation

java.lang.Object
com.ldtteam.structurize.operations.BaseOperation
com.ldtteam.structurize.operations.RemoveEntityOperation
All Implemented Interfaces:
ITickedWorldOperation

public class RemoveEntityOperation extends BaseOperation
Operation for removing one type of block.
  • Field Summary

    Fields inherited from class com.ldtteam.structurize.operations.BaseOperation

    storage
  • Constructor Summary

    Constructors
    Constructor
    Description
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    apply(net.minecraft.server.level.ServerLevel world)
    Apply the operation on the world.

    Methods inherited from class com.ldtteam.structurize.operations.BaseOperation

    getChangeStorage

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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: ITickedWorldOperation
      Apply the operation on the world.
      Parameters:
      world - the world to apply them on.
      Returns:
      true if finished.