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 a CustomBlock has an update method.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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

      public static boolean hasUpdate​(CustomBlock customBlock)
      Gets if a CustomBlock has an update method.
      Parameters:
      customBlock - the CustomBlock
      Returns:
      true if customBlock has an update method