@Experimental
public interface CrateBlockType
Represents a type of block used in a crate.
This interface provides methods to access the block's material, raw data,
and encoding information. Implementations define how the block is stored
and presented in the crate system.
-
Method Summary
org.bukkit.Material
Gets the Bukkit Material of the block.
Object
Gets the raw data associated with the block.
boolean
Checks whether the block's data is encoded in Base64 format.
boolean
Checks whether the block's data is stored as bytes.
-
Method Details
-
getBukkitMaterial
org.bukkit.Material getBukkitMaterial()
Gets the Bukkit Material of the block.
- Returns:
- the block's Material
-
getData
Object getData()
Gets the raw data associated with the block.
- Returns:
- the block's data object
-
isDataBase64
boolean isDataBase64()
Checks whether the block's data is encoded in Base64 format.
- Returns:
- true if the data is Base64-encoded, false otherwise
-
isDataByte
boolean isDataByte()
Checks whether the block's data is stored as bytes.
- Returns:
- true if the data is in byte form, false otherwise