Package net.createmod.catnip.platform
Class FabricRegisteredObjectsHelper
java.lang.Object
net.createmod.catnip.platform.FabricRegisteredObjectsHelper
- All Implemented Interfaces:
RegisteredObjectsHelper<net.minecraft.core.Registry>
public class FabricRegisteredObjectsHelper
extends Object
implements RegisteredObjectsHelper<net.minecraft.core.Registry>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.block.BlockgetBlock(net.minecraft.resources.ResourceLocation location) net.minecraft.world.item.ItemgetItem(net.minecraft.resources.ResourceLocation location) net.minecraft.resources.ResourceLocationgetKeyOrThrow(net.minecraft.core.particles.ParticleType<?> value) <V> net.minecraft.resources.ResourceLocationgetKeyOrThrow(net.minecraft.core.Registry registry, V 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) 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
-
FabricRegisteredObjectsHelper
public FabricRegisteredObjectsHelper()
-
-
Method Details
-
getKeyOrThrow
public <V> net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraft.core.Registry registry, V value) - Specified by:
getKeyOrThrowin interfaceRegisteredObjectsHelper<net.minecraft.core.Registry>
-
getKeyOrThrow
public net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraft.world.level.block.Block value) - Specified by:
getKeyOrThrowin interfaceRegisteredObjectsHelper<net.minecraft.core.Registry>
-
getKeyOrThrow
public net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraft.world.item.Item value) - Specified by:
getKeyOrThrowin interfaceRegisteredObjectsHelper<net.minecraft.core.Registry>
-
getKeyOrThrow
public net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraft.world.level.material.Fluid value) - Specified by:
getKeyOrThrowin interfaceRegisteredObjectsHelper<net.minecraft.core.Registry>
-
getKeyOrThrow
public net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraft.world.entity.EntityType<?> value) - Specified by:
getKeyOrThrowin interfaceRegisteredObjectsHelper<net.minecraft.core.Registry>
-
getKeyOrThrow
public net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraft.world.level.block.entity.BlockEntityType<?> value) - Specified by:
getKeyOrThrowin interfaceRegisteredObjectsHelper<net.minecraft.core.Registry>
-
getKeyOrThrow
public net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraft.world.item.alchemy.Potion value) - Specified by:
getKeyOrThrowin interfaceRegisteredObjectsHelper<net.minecraft.core.Registry>
-
getKeyOrThrow
public net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraft.core.particles.ParticleType<?> value) - Specified by:
getKeyOrThrowin interfaceRegisteredObjectsHelper<net.minecraft.core.Registry>
-
getKeyOrThrow
public net.minecraft.resources.ResourceLocation getKeyOrThrow(net.minecraft.world.item.crafting.RecipeSerializer<?> value) - Specified by:
getKeyOrThrowin interfaceRegisteredObjectsHelper<net.minecraft.core.Registry>
-
getItem
public net.minecraft.world.item.Item getItem(net.minecraft.resources.ResourceLocation location) - Specified by:
getItemin interfaceRegisteredObjectsHelper<net.minecraft.core.Registry>
-
getBlock
public net.minecraft.world.level.block.Block getBlock(net.minecraft.resources.ResourceLocation location) - Specified by:
getBlockin interfaceRegisteredObjectsHelper<net.minecraft.core.Registry>
-