Class RegisteredObjectsHelper

java.lang.Object
net.createmod.catnip.utility.RegisteredObjectsHelper

public class RegisteredObjectsHelper extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

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

    Methods inherited from class java.lang.Object

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

    • RegisteredObjectsHelper

      public RegisteredObjectsHelper()
  • Method Details

    • getKeyOrThrow

      public static <V> net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraft.core.Registry<V> registry, V value)
    • getKeyOrThrow

      public static net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraft.world.level.block.Block value)
    • getKeyOrThrow

      public static net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraft.world.item.Item value)
    • getKeyOrThrow

      public static net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraft.world.level.material.Fluid value)
    • getKeyOrThrow

      public static net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraft.world.entity.EntityType<?> value)
    • getKeyOrThrow

      public static net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraft.world.level.block.entity.BlockEntityType<?> value)
    • getKeyOrThrow

      public static net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraft.world.item.alchemy.Potion value)
    • getKeyOrThrow

      public static net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraft.core.particles.ParticleType<?> value)
    • getKeyOrThrow

      public static net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraft.world.item.crafting.RecipeSerializer<?> value)
    • getItem

      public static net.minecraft.world.item.Item getItem(net.minecraft.resources.ResourceLocation location)
    • getBlock

      public static net.minecraft.world.level.block.Block getBlock(net.minecraft.resources.ResourceLocation location)
    • getItemOrBlock

      @Nullable public static net.minecraft.world.level.ItemLike getItemOrBlock(net.minecraft.resources.ResourceLocation location)
    • getKeyOrThrow

      public static net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraft.world.level.ItemLike itemLike)