mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-15 17:44:55 +00:00
78 lines
1.6 KiB
Java
Executable File
78 lines
1.6 KiB
Java
Executable File
package forestry.plugins;
|
|
|
|
import javax.annotation.Nullable;
|
|
import java.util.List;
|
|
import java.util.Random;
|
|
import java.util.Set;
|
|
|
|
import net.minecraft.command.ICommand;
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraft.world.World;
|
|
import net.minecraft.world.gen.IChunkGenerator;
|
|
|
|
import net.minecraftforge.fml.common.IFuelHandler;
|
|
import net.minecraftforge.fml.common.event.FMLInterModComms;
|
|
|
|
import forestry.core.IPickupHandler;
|
|
import forestry.core.IResupplyHandler;
|
|
import forestry.core.ISaveEventHandler;
|
|
import forestry.core.network.IPacketRegistry;
|
|
|
|
public interface IForestryPlugin {
|
|
boolean isAvailable();
|
|
|
|
boolean canBeDisabled();
|
|
|
|
String getFailMessage();
|
|
|
|
/**
|
|
* See ForestryPlugin.pluginID()
|
|
*/
|
|
Set<String> getDependencyUids();
|
|
|
|
void setupAPI();
|
|
|
|
void disabledSetupAPI();
|
|
|
|
void registerItemsAndBlocks();
|
|
|
|
void preInit();
|
|
|
|
void registerTriggers();
|
|
|
|
void registerBackpackItems();
|
|
|
|
void registerCrates();
|
|
|
|
void doInit();
|
|
|
|
void registerRecipes();
|
|
|
|
void addLootPoolNames(Set<String> lootPoolNames);
|
|
|
|
void postInit();
|
|
|
|
boolean processIMCMessage(FMLInterModComms.IMCMessage message);
|
|
|
|
void populateChunk(IChunkGenerator chunkGenerator, World world, Random rand, int chunkX, int chunkZ, boolean hasVillageGenerated);
|
|
|
|
void populateChunkRetroGen(World world, Random rand, int chunkX, int chunkZ);
|
|
|
|
void getHiddenItems(List<ItemStack> hiddenItems);
|
|
|
|
@Nullable
|
|
ISaveEventHandler getSaveEventHandler();
|
|
|
|
@Nullable
|
|
IPacketRegistry getPacketRegistry();
|
|
|
|
@Nullable
|
|
IPickupHandler getPickupHandler();
|
|
|
|
@Nullable
|
|
IResupplyHandler getResupplyHandler();
|
|
|
|
@Nullable
|
|
ICommand[] getConsoleCommands();
|
|
}
|