Package net.minestom.server.utils.block
Class CustomBlockUtils
java.lang.Object
net.minestom.server.utils.block.CustomBlockUtils
public class CustomBlockUtils
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description CustomBlockUtils()
-
Method Summary
Modifier and Type Method Description static boolean
hasUpdate(short customBlockId)
Gets if a custom block id has an update method.static boolean
hasUpdate(CustomBlock customBlock)
Gets if aCustomBlock
has an update method.
-
Constructor Details
-
CustomBlockUtils
public CustomBlockUtils()
-
-
Method Details
-
hasUpdate
public static boolean hasUpdate(short customBlockId)Gets if a custom block id has an update method.- Parameters:
customBlockId
- the custom block id- Returns:
- true if
customBlockId
has an update method
-
hasUpdate
Gets if aCustomBlock
has an update method.- Parameters:
customBlock
- theCustomBlock
- Returns:
- true if
customBlock
has an update method
-