Class RegistryHelper
java.lang.Object
com.stereowalker.unionlib.util.RegistryHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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>> blockKey()static net.minecraft.core.Registry<net.minecraft.world.level.block.Block> blocks()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>> fluidKey()static net.minecraft.core.Registry<net.minecraft.world.level.material.Fluid> fluids()static net.minecraft.world.entity.ai.attributes.AttributegetAttribute(net.minecraft.resources.Identifier v) static net.minecraft.resources.IdentifiergetAttributeKey(net.minecraft.world.entity.ai.attributes.Attribute v) static net.minecraft.world.level.block.BlockgetBlock(net.minecraft.resources.Identifier v) static net.minecraft.resources.IdentifiergetBlockKey(net.minecraft.world.level.block.Block v) static net.minecraft.world.entity.EntityType<?> getEntityType(net.minecraft.resources.Identifier v) static net.minecraft.resources.IdentifiergetEntityTypeKey(net.minecraft.world.entity.EntityType<?> v) static net.minecraft.world.level.material.FluidgetFluid(net.minecraft.resources.Identifier v) static net.minecraft.resources.IdentifiergetFluidKey(net.minecraft.world.level.material.Fluid v) static net.minecraft.world.item.ItemgetItem(net.minecraft.resources.Identifier v) static net.minecraft.resources.IdentifiergetItemKey(net.minecraft.world.item.Item v) static net.minecraft.core.particles.ParticleType<?> getParticleType(net.minecraft.resources.Identifier v) static net.minecraft.resources.IdentifiergetParticleTypeKey(net.minecraft.core.particles.ParticleType<?> v) static net.minecraft.world.item.alchemy.PotiongetPotion(net.minecraft.resources.Identifier v) static net.minecraft.resources.IdentifiergetPotionKey(net.minecraft.world.item.alchemy.Potion v) static net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<net.minecraft.world.item.Item>> itemKey()static net.minecraft.core.Registry<net.minecraft.world.item.Item> items()static booleanmatchesRegistryKey(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> potions()static <T extends Enum<?>>
TrotateEnumBackward(T input, T[] values) static <T extends Enum<?>>
TrotateEnumForward(T input, T[] values)
-
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
-
rotateEnumForward
-
rotateEnumBackward
-