Class RegistryHelper

java.lang.Object
com.stereowalker.unionlib.util.RegistryHelper

public class RegistryHelper extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<net.minecraft.world.entity.ai.attributes.Attribute>>
     
    static net.minecraft.core.Registry<net.minecraft.world.entity.ai.attributes.Attribute>
     
    static net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<net.minecraft.world.level.block.Block>>
     
    static net.minecraft.core.Registry<net.minecraft.world.level.block.Block>
     
    static <V> RegistryWrapper<V>
     
    static net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<net.minecraft.world.entity.EntityType<?>>>
     
    static net.minecraft.core.Registry<net.minecraft.world.entity.EntityType<?>>
     
    static net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<net.minecraft.world.level.material.Fluid>>
     
    static net.minecraft.core.Registry<net.minecraft.world.level.material.Fluid>
     
    static net.minecraft.world.entity.ai.attributes.Attribute
    getAttribute(net.minecraft.resources.Identifier v)
     
    static net.minecraft.resources.Identifier
    getAttributeKey(net.minecraft.world.entity.ai.attributes.Attribute v)
     
    static net.minecraft.world.level.block.Block
    getBlock(net.minecraft.resources.Identifier v)
     
    static net.minecraft.resources.Identifier
    getBlockKey(net.minecraft.world.level.block.Block v)
     
    static net.minecraft.world.entity.EntityType<?>
    getEntityType(net.minecraft.resources.Identifier v)
     
    static net.minecraft.resources.Identifier
    getEntityTypeKey(net.minecraft.world.entity.EntityType<?> v)
     
    static net.minecraft.world.level.material.Fluid
    getFluid(net.minecraft.resources.Identifier v)
     
    static net.minecraft.resources.Identifier
    getFluidKey(net.minecraft.world.level.material.Fluid v)
     
    static net.minecraft.world.item.Item
    getItem(net.minecraft.resources.Identifier v)
     
    static net.minecraft.resources.Identifier
    getItemKey(net.minecraft.world.item.Item v)
     
    static net.minecraft.core.particles.ParticleType<?>
    getParticleType(net.minecraft.resources.Identifier v)
     
    static net.minecraft.resources.Identifier
    getParticleTypeKey(net.minecraft.core.particles.ParticleType<?> v)
     
    static net.minecraft.world.item.alchemy.Potion
    getPotion(net.minecraft.resources.Identifier v)
     
    static net.minecraft.resources.Identifier
    getPotionKey(net.minecraft.world.item.alchemy.Potion v)
     
    static net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<net.minecraft.world.item.Item>>
     
    static net.minecraft.core.Registry<net.minecraft.world.item.Item>
     
    static boolean
    matchesRegistryKey(net.minecraft.resources.Identifier name, net.minecraft.resources.ResourceKey<?> key)
     
    static net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<net.minecraft.core.particles.ParticleType<?>>>
     
    static net.minecraft.core.Registry<net.minecraft.core.particles.ParticleType<?>>
     
    static net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<net.minecraft.world.item.alchemy.Potion>>
     
    static net.minecraft.core.Registry<net.minecraft.world.item.alchemy.Potion>
     
    static <T extends Enum<?>>
    T
    rotateEnumBackward(T input, T[] values)
     
    static <T extends Enum<?>>
    T
    rotateEnumForward(T input, T[] values)
     

    Methods inherited from class Object

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

    • RegistryHelper

      public RegistryHelper()
  • Method Details

    • attributeKey

      public static net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<net.minecraft.world.entity.ai.attributes.Attribute>> attributeKey()
    • blockKey

      public static net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<net.minecraft.world.level.block.Block>> blockKey()
    • entityTypeKey

      public static net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<net.minecraft.world.entity.EntityType<?>>> entityTypeKey()
    • fluidKey

      public static net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<net.minecraft.world.level.material.Fluid>> fluidKey()
    • itemKey

      public static net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<net.minecraft.world.item.Item>> itemKey()
    • particleTypeKey

      public static net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<net.minecraft.core.particles.ParticleType<?>>> particleTypeKey()
    • potionKey

      public static net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<net.minecraft.world.item.alchemy.Potion>> potionKey()
    • getAttributeKey

      public static net.minecraft.resources.Identifier getAttributeKey(net.minecraft.world.entity.ai.attributes.Attribute v)
    • getBlockKey

      public static net.minecraft.resources.Identifier getBlockKey(net.minecraft.world.level.block.Block v)
    • getEntityTypeKey

      public static net.minecraft.resources.Identifier getEntityTypeKey(net.minecraft.world.entity.EntityType<?> v)
    • getFluidKey

      public static net.minecraft.resources.Identifier getFluidKey(net.minecraft.world.level.material.Fluid v)
    • getItemKey

      public static net.minecraft.resources.Identifier getItemKey(net.minecraft.world.item.Item v)
    • getParticleTypeKey

      public static net.minecraft.resources.Identifier getParticleTypeKey(net.minecraft.core.particles.ParticleType<?> v)
    • getPotionKey

      public static net.minecraft.resources.Identifier getPotionKey(net.minecraft.world.item.alchemy.Potion v)
    • getAttribute

      public static net.minecraft.world.entity.ai.attributes.Attribute getAttribute(net.minecraft.resources.Identifier v)
    • getBlock

      public static net.minecraft.world.level.block.Block getBlock(net.minecraft.resources.Identifier v)
    • getEntityType

      public static net.minecraft.world.entity.EntityType<?> getEntityType(net.minecraft.resources.Identifier v)
    • getFluid

      public static net.minecraft.world.level.material.Fluid getFluid(net.minecraft.resources.Identifier v)
    • getItem

      public static net.minecraft.world.item.Item getItem(net.minecraft.resources.Identifier v)
    • getParticleType

      public static net.minecraft.core.particles.ParticleType<?> getParticleType(net.minecraft.resources.Identifier v)
    • getPotion

      public static net.minecraft.world.item.alchemy.Potion getPotion(net.minecraft.resources.Identifier v)
    • attributes

      public static net.minecraft.core.Registry<net.minecraft.world.entity.ai.attributes.Attribute> attributes()
    • blocks

      public static net.minecraft.core.Registry<net.minecraft.world.level.block.Block> blocks()
    • entityTypes

      public static net.minecraft.core.Registry<net.minecraft.world.entity.EntityType<?>> entityTypes()
    • items

      public static net.minecraft.core.Registry<net.minecraft.world.item.Item> items()
    • particleTypes

      public static net.minecraft.core.Registry<net.minecraft.core.particles.ParticleType<?>> particleTypes()
    • potions

      public static net.minecraft.core.Registry<net.minecraft.world.item.alchemy.Potion> potions()
    • fluids

      public static net.minecraft.core.Registry<net.minecraft.world.level.material.Fluid> fluids()
    • matchesRegistryKey

      public static boolean matchesRegistryKey(net.minecraft.resources.Identifier name, net.minecraft.resources.ResourceKey<?> key)
    • createWrapper

      public static <V> RegistryWrapper<V> createWrapper()
    • rotateEnumForward

      public static <T extends Enum<?>> T rotateEnumForward(T input, T[] values)
    • rotateEnumBackward

      public static <T extends Enum<?>> T rotateEnumBackward(T input, T[] values)