Class EntityNbtReportBuilder
java.lang.Object
de.eldoria.schematicsanitizer.sanitizer.report.builder.BaseReportBuilder<RemovedEntityNbt>
de.eldoria.schematicsanitizer.sanitizer.report.builder.EntityNbtReportBuilder
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds an EntityNbtReport object.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.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.Methods inherited from class de.eldoria.schematicsanitizer.sanitizer.report.builder.BaseReportBuilder
removed, removed
-
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 locatedentity
- the entity from which the NBT key and text should be removedcause
- the cause of the removalkey
- the NBT key to be removedtext
- 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 presententity
- the entity whose NBT data needs to be modifiedcause
- the cause of the removalkey
- the key to be removed from the NBT data
-
build
Builds an EntityNbtReport object.- Returns:
- A new EntityNbtReport object populated with the result of the removed() method.
-