Class CommonBlockRegistryEntry<B extends net.minecraft.world.level.block.Block,I extends net.minecraft.world.item.Item,RB extends RegistryEntry<B>,RI extends RegistryEntry<I>>

java.lang.Object
info.u_team.u_team_core.impl.common.CommonBlockRegistryEntry<B,I,RB,RI>
All Implemented Interfaces:
BlockRegistryEntry<B,I>, LazyEntry<B>, RegistryEntry<B>, ResourceEntry<B>, Supplier<B>
Direct Known Subclasses:
FabricBlockRegister.FabricBlockRegistryEntry

public abstract class CommonBlockRegistryEntry<B extends net.minecraft.world.level.block.Block,I extends net.minecraft.world.item.Item,RB extends RegistryEntry<B>,RI extends RegistryEntry<I>> extends Object implements BlockRegistryEntry<B,I>
  • Constructor Details

    • CommonBlockRegistryEntry

      protected CommonBlockRegistryEntry(RB block, RI item)
  • 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 ResourceEntry<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 LazyEntry<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>
    • getBlockEntry

      public RB getBlockEntry()
    • getItemEntry

      public RI getItemEntry()