Class ModIntegration
java.lang.Object
net.frozenblock.lib.integration.api.ModIntegration
- Direct Known Subclasses:
EmptyModIntegration
-
Constructor Summary
ConstructorsConstructorDescriptionModIntegration(String modID) ModIntegration(String modID, String modRegistryID) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidRuns prior to registries freezing in order to allow for registering things.net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome>getBiomeKey(String path) net.minecraft.tags.TagKey<net.minecraft.world.level.biome.Biome>getBiomeTag(String path) net.minecraft.world.level.block.Blocknet.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>getBlockTag(String path) getID()net.minecraft.world.item.Itemnet.minecraft.tags.TagKey<net.minecraft.world.item.Item>getItemTag(String path) <T> net.minecraft.tags.TagKey<T>getTag(net.minecraft.core.HolderLookup.RegistryLookup<T> lookup, net.minecraft.resources.ResourceLocation key) <T> net.minecraft.tags.TagKey<T>getTag(net.minecraft.core.Registry<T> registry, net.minecraft.resources.ResourceLocation key) net.minecraft.resources.ResourceLocationabstract voidinit()voidRuns prior to registries freezing in order to allow for the registering of things.boolean
-
Constructor Details
-
ModIntegration
-
ModIntegration
-
-
Method Details
-
getID
-
id
-
getBlock
-
getItem
-
getBiomeKey
public net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome> getBiomeKey(String path) -
getBlockTag
-
getItemTag
-
getBiomeTag
-
getTag
public <T> net.minecraft.tags.TagKey<T> getTag(net.minecraft.core.Registry<T> registry, net.minecraft.resources.ResourceLocation key) -
getTag
public <T> net.minecraft.tags.TagKey<T> getTag(net.minecraft.core.HolderLookup.RegistryLookup<T> lookup, net.minecraft.resources.ResourceLocation key) -
modLoaded
public boolean modLoaded() -
initPreFreeze
public void initPreFreeze()Runs prior to registries freezing in order to allow for the registering of things. -
clientInitPreFreeze
@Environment(CLIENT) public void clientInitPreFreeze()Runs prior to registries freezing in order to allow for registering things. -
init
public abstract void init() -
clientInit
@Environment(CLIENT) public void clientInit()
-