Class ModIntegration

java.lang.Object
net.frozenblock.lib.integration.api.ModIntegration
Direct Known Subclasses:
EmptyModIntegration

public abstract class ModIntegration extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    ModIntegration(String modID, String modRegistryID)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    Runs prior to registries freezing in order to allow for registering things.
    net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome>
     
    net.minecraft.tags.TagKey<net.minecraft.world.level.biome.Biome>
     
    net.minecraft.world.level.block.Block
     
    net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>
     
     
    net.minecraft.world.item.Item
     
    net.minecraft.tags.TagKey<net.minecraft.world.item.Item>
     
    <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.ResourceLocation
    id(String path)
     
    abstract void
     
    void
    Runs prior to registries freezing in order to allow for the registering of things.
    boolean
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ModIntegration

      public ModIntegration(String modID, String modRegistryID)
    • ModIntegration

      public ModIntegration(String modID)
  • Method Details

    • getID

      public String getID()
    • id

      public net.minecraft.resources.ResourceLocation id(String path)
    • getBlock

      public net.minecraft.world.level.block.Block getBlock(String path)
    • getItem

      public net.minecraft.world.item.Item getItem(String path)
    • getBiomeKey

      public net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome> getBiomeKey(String path)
    • getBlockTag

      public net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> getBlockTag(String path)
    • getItemTag

      public net.minecraft.tags.TagKey<net.minecraft.world.item.Item> getItemTag(String path)
    • getBiomeTag

      public net.minecraft.tags.TagKey<net.minecraft.world.level.biome.Biome> getBiomeTag(String path)
    • 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()