Package net.createmod.catnip.platform
Class ForgeRegisteredObjectsHelper
java.lang.Object
net.createmod.catnip.platform.ForgeRegisteredObjectsHelper
- All Implemented Interfaces:
net.createmod.catnip.platform.services.RegisteredObjectsHelper<net.minecraftforge.registries.IForgeRegistry>
public class ForgeRegisteredObjectsHelper
extends Object
implements net.createmod.catnip.platform.services.RegisteredObjectsHelper<net.minecraftforge.registries.IForgeRegistry>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable net.minecraft.world.level.block.BlockgetBlock(net.minecraft.resources.ResourceLocation location) @Nullable net.minecraft.world.item.ItemgetItem(net.minecraft.resources.ResourceLocation location) net.minecraft.resources.ResourceLocationgetKeyOrThrow(net.minecraft.core.particles.ParticleType<?> value) net.minecraft.resources.ResourceLocationgetKeyOrThrow(net.minecraft.world.entity.EntityType<?> value) net.minecraft.resources.ResourceLocationgetKeyOrThrow(net.minecraft.world.item.alchemy.Potion value) net.minecraft.resources.ResourceLocationgetKeyOrThrow(net.minecraft.world.item.crafting.RecipeSerializer<?> value) net.minecraft.resources.ResourceLocationgetKeyOrThrow(net.minecraft.world.item.Item value) net.minecraft.resources.ResourceLocationgetKeyOrThrow(net.minecraft.world.level.block.Block value) net.minecraft.resources.ResourceLocationgetKeyOrThrow(net.minecraft.world.level.block.entity.BlockEntityType<?> value) net.minecraft.resources.ResourceLocationgetKeyOrThrow(net.minecraft.world.level.material.Fluid value) <V> net.minecraft.resources.ResourceLocationgetKeyOrThrow(net.minecraftforge.registries.IForgeRegistry registry, V value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getKeyOrThrowin interfacenet.createmod.catnip.platform.services.RegisteredObjectsHelper<net.minecraftforge.registries.IForgeRegistry>
-
getKeyOrThrow
public net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraft.world.level.block.Block value) - Specified by:
getKeyOrThrowin interfacenet.createmod.catnip.platform.services.RegisteredObjectsHelper<net.minecraftforge.registries.IForgeRegistry>
-
getKeyOrThrow
public net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraft.world.item.Item value) - Specified by:
getKeyOrThrowin interfacenet.createmod.catnip.platform.services.RegisteredObjectsHelper<net.minecraftforge.registries.IForgeRegistry>
-
getKeyOrThrow
public net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraft.world.level.material.Fluid value) - Specified by:
getKeyOrThrowin interfacenet.createmod.catnip.platform.services.RegisteredObjectsHelper<net.minecraftforge.registries.IForgeRegistry>
-
getKeyOrThrow
public net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraft.world.entity.EntityType<?> value) - Specified by:
getKeyOrThrowin interfacenet.createmod.catnip.platform.services.RegisteredObjectsHelper<net.minecraftforge.registries.IForgeRegistry>
-
getKeyOrThrow
public net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraft.world.level.block.entity.BlockEntityType<?> value) - Specified by:
getKeyOrThrowin interfacenet.createmod.catnip.platform.services.RegisteredObjectsHelper<net.minecraftforge.registries.IForgeRegistry>
-
getKeyOrThrow
public net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraft.world.item.alchemy.Potion value) - Specified by:
getKeyOrThrowin interfacenet.createmod.catnip.platform.services.RegisteredObjectsHelper<net.minecraftforge.registries.IForgeRegistry>
-
getKeyOrThrow
public net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraft.core.particles.ParticleType<?> value) - Specified by:
getKeyOrThrowin interfacenet.createmod.catnip.platform.services.RegisteredObjectsHelper<net.minecraftforge.registries.IForgeRegistry>
-
getKeyOrThrow
public net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraft.world.item.crafting.RecipeSerializer<?> value) - Specified by:
getKeyOrThrowin interfacenet.createmod.catnip.platform.services.RegisteredObjectsHelper<net.minecraftforge.registries.IForgeRegistry>
-
getItem
@Nullable public @Nullable net.minecraft.world.item.Item getItem(net.minecraft.resources.ResourceLocation location) - Specified by:
getItemin interfacenet.createmod.catnip.platform.services.RegisteredObjectsHelper<net.minecraftforge.registries.IForgeRegistry>
-
getBlock
@Nullable public @Nullable net.minecraft.world.level.block.Block getBlock(net.minecraft.resources.ResourceLocation location) - Specified by:
getBlockin interfacenet.createmod.catnip.platform.services.RegisteredObjectsHelper<net.minecraftforge.registries.IForgeRegistry>
-