Class ForgeRegisteredObjectsHelper

java.lang.Object
net.createmod.catnip.platform.ForgeRegisteredObjectsHelper
All Implemented Interfaces:
RegisteredObjectsHelper<net.minecraftforge.registries.IForgeRegistry>

public class ForgeRegisteredObjectsHelper extends Object implements RegisteredObjectsHelper<net.minecraftforge.registries.IForgeRegistry>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable net.minecraft.world.level.block.Block
    getBlock(net.minecraft.resources.ResourceLocation location)
     
    @Nullable net.minecraft.world.item.Item
    getItem(net.minecraft.resources.ResourceLocation location)
     
    net.minecraft.resources.ResourceLocation
    getKeyOrThrow(net.minecraft.core.particles.ParticleType<?> value)
     
    net.minecraft.resources.ResourceLocation
    getKeyOrThrow(net.minecraft.world.entity.EntityType<?> value)
     
    net.minecraft.resources.ResourceLocation
    getKeyOrThrow(net.minecraft.world.item.alchemy.Potion value)
     
    net.minecraft.resources.ResourceLocation
    getKeyOrThrow(net.minecraft.world.item.crafting.RecipeSerializer<?> value)
     
    net.minecraft.resources.ResourceLocation
    getKeyOrThrow(net.minecraft.world.item.Item value)
     
    net.minecraft.resources.ResourceLocation
    getKeyOrThrow(net.minecraft.world.level.block.Block value)
     
    net.minecraft.resources.ResourceLocation
    getKeyOrThrow(net.minecraft.world.level.block.entity.BlockEntityType<?> value)
     
    net.minecraft.resources.ResourceLocation
    getKeyOrThrow(net.minecraft.world.level.material.Fluid value)
     
    <V> net.minecraft.resources.ResourceLocation
    getKeyOrThrow(net.minecraftforge.registries.IForgeRegistry registry, V value)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.createmod.catnip.platform.services.RegisteredObjectsHelper

    getItemOrBlock
  • Constructor Details

    • ForgeRegisteredObjectsHelper

      public ForgeRegisteredObjectsHelper()
  • Method Details

    • getKeyOrThrow

      public <V> net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraftforge.registries.IForgeRegistry registry, V value)
      Specified by:
      getKeyOrThrow in interface RegisteredObjectsHelper<net.minecraftforge.registries.IForgeRegistry>
    • getKeyOrThrow

      public net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraft.world.level.block.Block value)
      Specified by:
      getKeyOrThrow in interface RegisteredObjectsHelper<net.minecraftforge.registries.IForgeRegistry>
    • getKeyOrThrow

      public net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraft.world.item.Item value)
      Specified by:
      getKeyOrThrow in interface RegisteredObjectsHelper<net.minecraftforge.registries.IForgeRegistry>
    • getKeyOrThrow

      public net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraft.world.level.material.Fluid value)
      Specified by:
      getKeyOrThrow in interface RegisteredObjectsHelper<net.minecraftforge.registries.IForgeRegistry>
    • getKeyOrThrow

      public net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraft.world.entity.EntityType<?> value)
      Specified by:
      getKeyOrThrow in interface RegisteredObjectsHelper<net.minecraftforge.registries.IForgeRegistry>
    • getKeyOrThrow

      public net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraft.world.level.block.entity.BlockEntityType<?> value)
      Specified by:
      getKeyOrThrow in interface RegisteredObjectsHelper<net.minecraftforge.registries.IForgeRegistry>
    • getKeyOrThrow

      public net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraft.world.item.alchemy.Potion value)
      Specified by:
      getKeyOrThrow in interface RegisteredObjectsHelper<net.minecraftforge.registries.IForgeRegistry>
    • getKeyOrThrow

      public net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraft.core.particles.ParticleType<?> value)
      Specified by:
      getKeyOrThrow in interface RegisteredObjectsHelper<net.minecraftforge.registries.IForgeRegistry>
    • getKeyOrThrow

      public net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraft.world.item.crafting.RecipeSerializer<?> value)
      Specified by:
      getKeyOrThrow in interface RegisteredObjectsHelper<net.minecraftforge.registries.IForgeRegistry>
    • getItem

      @Nullable public @Nullable net.minecraft.world.item.Item getItem(net.minecraft.resources.ResourceLocation location)
      Specified by:
      getItem in interface RegisteredObjectsHelper<net.minecraftforge.registries.IForgeRegistry>
    • getBlock

      @Nullable public @Nullable net.minecraft.world.level.block.Block getBlock(net.minecraft.resources.ResourceLocation location)
      Specified by:
      getBlock in interface RegisteredObjectsHelper<net.minecraftforge.registries.IForgeRegistry>