Class BlockRegistryObject<B extends net.minecraft.world.level.block.Block,I extends net.minecraft.world.item.BlockItem>

java.lang.Object
info.u_team.u_team_core.util.registry.BlockRegistryObject<B,I>
All Implemented Interfaces:
Supplier<B>

public class BlockRegistryObject<B extends net.minecraft.world.level.block.Block,I extends net.minecraft.world.item.BlockItem> extends Object implements Supplier<B>
  • Constructor Details

    • BlockRegistryObject

      public BlockRegistryObject(net.minecraftforge.registries.RegistryObject<B> block, net.minecraftforge.registries.RegistryObject<I> item)
  • Method Details

    • isPresent

      public boolean isPresent()
    • get

      public B get()
      Specified by:
      get in interface Supplier<B extends net.minecraft.world.level.block.Block>
    • getId

      public net.minecraft.resources.ResourceLocation getId()
    • hasItem

      public boolean hasItem()
    • getItem

      public I getItem()
    • getItemId

      public net.minecraft.resources.ResourceLocation getItemId()