Class ContentReportBuilder

java.lang.Object
de.eldoria.schematicsanitizer.sanitizer.report.builder.ContentReportBuilder

public class ContentReportBuilder extends Object
The ContentReportBuilder class is responsible for constructing ContentReport objects and keeping track of various statistics related to the content.
  • 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

      public void countTotalEntity(CreatureType type)
      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

      public void countEntity(CreatureType type)
      Increases the count of a specific entity type.
      Parameters:
      type - The type of creature to count
    • build

      public ContentReport build()
      Builds a ContentReport object with the given information.
      Returns:
      The built ContentReport object.