Class EntityNbtReportBuilder

java.lang.Object
de.eldoria.schematicsanitizer.sanitizer.report.builder.BaseReportBuilder<RemovedEntityNbt>
de.eldoria.schematicsanitizer.sanitizer.report.builder.EntityNbtReportBuilder

public class EntityNbtReportBuilder extends BaseReportBuilder<RemovedEntityNbt>
This class represents a builder for generating entity NBT reports. It extends the BaseReportBuilder class and is specifically designed for building reports on removed entity NBT data.
  • Constructor Details

    • EntityNbtReportBuilder

      public EntityNbtReportBuilder()
  • Method Details

    • removed

      public void removed(com.sk89q.worldedit.util.Location location, com.sk89q.worldedit.entity.BaseEntity entity, NbtRemovalCause cause, String key, String text)
      Logs removal of a specific NBT key and its associated text from an entity at a certain location.
      Parameters:
      location - the location where the entity is located
      entity - the entity from which the NBT key and text should be removed
      cause - the cause of the removal
      key - the NBT key to be removed
      text - the associated text to be removed
    • removed

      public void removed(com.sk89q.worldedit.util.Location location, com.sk89q.worldedit.entity.BaseEntity entity, NbtRemovalCause cause, String key)
      Logs removal of a key from the NBT data of a specific entity at a given location.
      Parameters:
      location - the location at which the entity is present
      entity - the entity whose NBT data needs to be modified
      cause - the cause of the removal
      key - the key to be removed from the NBT data
    • build

      public EntityNbtReport build()
      Builds an EntityNbtReport object.
      Returns:
      A new EntityNbtReport object populated with the result of the removed() method.