Class ContentReportBuilder
java.lang.Object
de.eldoria.schematicsanitizer.sanitizer.report.builder.ContentReportBuilder
The ContentReportBuilder class is responsible for constructing ContentReport objects and keeping track of various statistics related to the content.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
blocks()
Gets the value of blocks.build()
Builds a ContentReport object with the given information.void
Increments the value of the "blocks" variable by 1.void
countEntity
(CreatureType type) Increases the count of a specific entity type.void
Increases the count of non-air blocks.void
countTotalEntity
(CreatureType type) Increments the count for the total number of creatures or non-creatures based on the given creature type.int
Retrieves the total number of creatures.int
Returns the number of non-air blocks.int
Returns the total count of non-creature objects.
-
Constructor Details
-
ContentReportBuilder
public ContentReportBuilder()
-
-
Method Details
-
countBlock
public void countBlock()Increments the value of the "blocks" variable by 1. -
blocks
public int blocks()Gets the value of blocks.- Returns:
- The value of blocks.
-
creatures
public int creatures()Retrieves the total number of creatures.- Returns:
- The total number of creatures.
-
nonCreatures
public int nonCreatures()Returns the total count of non-creature objects.- Returns:
- The total count of non-creature objects.
-
nonAirBlocks
public int nonAirBlocks()Returns the number of non-air blocks.- Returns:
- The number of non-air blocks.
-
countNonAirBlock
public void countNonAirBlock()Increases the count of non-air blocks. This method increments the nonAirBlocks variable by 1. -
countTotalEntity
Increments the count for the total number of creatures or non-creatures based on the given creature type.- Parameters:
type
- The type of the creature.
-
countEntity
Increases the count of a specific entity type.- Parameters:
type
- The type of creature to count
-
build
Builds a ContentReport object with the given information.- Returns:
- The built ContentReport object.
-