Class Compression

java.lang.Object
net.sashiro.compressedblocks.util.Compression

public class Compression extends Object
  • Constructor Details

    • Compression

      public Compression()
  • Method Details

    • setCompressionLevel

      public void setCompressionLevel(int compressionLevel, boolean isLesser)
      Function to set the Block Count and Style based on the Compression Level
      Parameters:
      compressionLevel - Compression Level
    • getBlockCount

      public String getBlockCount()
      Function to get the current Block Count
      Returns:
      Block Count
    • isLesser

      public boolean isLesser()
      Function to check if the current block ist a lesser compressed block
      Returns:
      True if the block is a lesser compressed block, false otherwise
    • getCompressionLevel

      public int getCompressionLevel()
      Function to get the current Compression Level
      Returns:
      Compression Level
    • setCompressionLevel

      public void setCompressionLevel(int compressionLevel)
      Function to set the Block Count and Style based on the Compression Level
      Parameters:
      compressionLevel - Compression Level
    • getStyle

      public net.minecraft.network.chat.Style getStyle()
      Function to get the current Style
      Returns:
      Style