Package net.createmod.catnip.registry
Class RegisteredObjectsHelper
java.lang.Object
net.createmod.catnip.registry.RegisteredObjectsHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.level.block.BlockgetBlock(net.minecraft.resources.ResourceLocation location) static net.minecraft.world.item.ItemgetItem(net.minecraft.resources.ResourceLocation location) static net.minecraft.world.level.ItemLikegetItemOrBlock(net.minecraft.resources.ResourceLocation location) static net.minecraft.resources.ResourceLocationgetKeyOrThrow(net.minecraft.core.particles.ParticleType<?> value) static <V> net.minecraft.resources.ResourceLocationgetKeyOrThrow(net.minecraft.core.Registry<V> registry, V value) static net.minecraft.resources.ResourceLocationgetKeyOrThrow(net.minecraft.world.entity.EntityType<?> value) static net.minecraft.resources.ResourceLocationgetKeyOrThrow(net.minecraft.world.item.alchemy.Potion value) static net.minecraft.resources.ResourceLocationgetKeyOrThrow(net.minecraft.world.item.crafting.RecipeSerializer<?> value) static net.minecraft.resources.ResourceLocationgetKeyOrThrow(net.minecraft.world.item.Item value) static net.minecraft.resources.ResourceLocationgetKeyOrThrow(net.minecraft.world.level.block.Block value) static net.minecraft.resources.ResourceLocationgetKeyOrThrow(net.minecraft.world.level.block.entity.BlockEntityType<?> value) static net.minecraft.resources.ResourceLocationgetKeyOrThrow(net.minecraft.world.level.ItemLike itemLike) static net.minecraft.resources.ResourceLocationgetKeyOrThrow(net.minecraft.world.level.material.Fluid value)
-
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)
-