Class BlockItems

java.lang.Object
com.soulfiremc.server.util.BlockItems

public final class BlockItems extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.world.level.block.Block[]
     
    static final net.minecraft.world.item.Item[]
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Optional<net.minecraft.world.level.block.Block>
    getBlock(net.minecraft.world.item.Item itemType)
     
    static Optional<net.minecraft.world.item.Item>
    getItem(net.minecraft.world.level.block.Block blockType)
     
    static boolean
    hasItem(net.minecraft.world.level.block.Block blockType)
     

    Methods inherited from class java.lang.Object

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

    • VALUES

      public static final net.minecraft.world.level.block.Block[] VALUES
    • VALUES_REVERSE

      public static final net.minecraft.world.item.Item[] VALUES_REVERSE
  • Constructor Details

    • BlockItems

      public BlockItems()
  • Method Details

    • getBlock

      public static Optional<net.minecraft.world.level.block.Block> getBlock(net.minecraft.world.item.Item itemType)
    • getItem

      public static Optional<net.minecraft.world.item.Item> getItem(net.minecraft.world.level.block.Block blockType)
    • hasItem

      public static boolean hasItem(net.minecraft.world.level.block.Block blockType)