Class Compression
java.lang.Object
net.sashiro.compressedblocks.util.Compression
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFunction to get the current Block CountintFunction to get the current Compression Levelnet.minecraft.network.chat.StylegetStyle()Function to get the current StylebooleanisLesser()Function to check if the current block ist a lesser compressed blockvoidsetCompressionLevel(int compressionLevel) Function to set the Block Count and Style based on the Compression LevelvoidsetCompressionLevel(int compressionLevel, boolean isLesser) Function to set the Block Count and Style based on the Compression Level
-
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
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
-