Class FabricBlockRegister.FabricBlockRegistryEntry<B extends net.minecraft.world.level.block.Block,I extends net.minecraft.world.item.Item>

java.lang.Object
info.u_team.u_team_core.factory.FabricBlockRegister.FabricBlockRegistryEntry<B,I>
All Implemented Interfaces:
BlockRegistryEntry<B,I>, RegistryEntry<B>, Supplier<B>
Enclosing class:
FabricBlockRegister

public static class FabricBlockRegister.FabricBlockRegistryEntry<B extends net.minecraft.world.level.block.Block,I extends net.minecraft.world.item.Item> extends Object implements BlockRegistryEntry<B,I>
  • Method Details

    • 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()
      Specified by:
      getId in interface RegistryEntry<B extends net.minecraft.world.level.block.Block>
    • getKey

      public net.minecraft.resources.ResourceKey<B> getKey()
      Specified by:
      getKey in interface RegistryEntry<B extends net.minecraft.world.level.block.Block>
    • getHolder

      public Optional<net.minecraft.core.Holder<B>> getHolder()
      Specified by:
      getHolder in interface RegistryEntry<B extends net.minecraft.world.level.block.Block>
    • isPresent

      public boolean isPresent()
      Specified by:
      isPresent in interface RegistryEntry<B extends net.minecraft.world.level.block.Block>
    • getItem

      public I getItem()
      Specified by:
      getItem in interface BlockRegistryEntry<B extends net.minecraft.world.level.block.Block,I extends net.minecraft.world.item.Item>
    • getItemId

      public net.minecraft.resources.ResourceLocation getItemId()
      Specified by:
      getItemId in interface BlockRegistryEntry<B extends net.minecraft.world.level.block.Block,I extends net.minecraft.world.item.Item>
    • getItemKey

      public net.minecraft.resources.ResourceKey<I> getItemKey()
      Specified by:
      getItemKey in interface BlockRegistryEntry<B extends net.minecraft.world.level.block.Block,I extends net.minecraft.world.item.Item>
    • getItemHolder

      public Optional<net.minecraft.core.Holder<I>> getItemHolder()
      Specified by:
      getItemHolder in interface BlockRegistryEntry<B extends net.minecraft.world.level.block.Block,I extends net.minecraft.world.item.Item>
    • isItemPresent

      public boolean isItemPresent()
      Specified by:
      isItemPresent in interface BlockRegistryEntry<B extends net.minecraft.world.level.block.Block,I extends net.minecraft.world.item.Item>
    • getItemRegistryEntry

      public RegistryEntry<I> getItemRegistryEntry()
      Specified by:
      getItemRegistryEntry in interface BlockRegistryEntry<B extends net.minecraft.world.level.block.Block,I extends net.minecraft.world.item.Item>