mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-28 23:39:41 +00:00
Model System Clean Up
This commit is contained in:
1 parent
78d836bc1f
commit
c9b2f7bd3e
42 files changed
+168
-223
No files matched your search
@@ -45,7 +45,13 @@ public class ForestryAPI {
|
||||
* A {@link IModelManager} needed for some things in the API.
|
||||
*/
|
||||
@SideOnly(Side.CLIENT)
|
||||
public static IModelManager modleManager;
|
||||
public static IModelManager modelManager;
|
||||
|
||||
/**
|
||||
* A {@link IModelBaker} to bake custom models
|
||||
*/
|
||||
@SideOnly(Side.CLIENT)
|
||||
public static IModelBaker modelBaker;
|
||||
|
||||
/**
|
||||
* The currently active {@link IGameMode}.
|
||||
|
||||
@@ -9,10 +9,13 @@ import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
|
||||
import net.minecraft.client.resources.model.IBakedModel;
|
||||
import net.minecraft.util.BlockPos;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
|
||||
/**
|
||||
* A model baker to make custom models in the mod
|
||||
* A model baker to make custom models
|
||||
*/
|
||||
@SideOnly(Side.CLIENT)
|
||||
public interface IModelBaker {
|
||||
|
||||
void setRenderBoundsFromBlock(Block block);
|
||||
|
||||
@@ -21,26 +21,18 @@ public interface IModelManager {
|
||||
|
||||
void registerItemModel(Item item, int meta, boolean withMeta);
|
||||
|
||||
ModelResourceLocation getModelLocation(String identifier);
|
||||
|
||||
ModelResourceLocation getModelLocation(String modID, String identifier);
|
||||
|
||||
ModelResourceLocation getModelLocation(Item item);
|
||||
|
||||
ModelResourceLocation getModelLocation(Item item, String identifier);
|
||||
|
||||
ModelResourceLocation getModelLocation(Item item, String modifier, String identifier);
|
||||
|
||||
ModelResourceLocation getModelLocation(Item item, int meta);
|
||||
|
||||
ModelResourceLocation getModelLocation(Item item, int meta, String identifier);
|
||||
|
||||
ModelResourceLocation getModelLocation(Item item, int meta, String modifier, String identifier);
|
||||
ModelResourceLocation getModelLocation(String identifier);
|
||||
|
||||
ModelResourceLocation getModelLocation(String modID, String identifier);
|
||||
|
||||
void registerItemModel(Item item, ItemMeshDefinition definition);
|
||||
|
||||
void registerVariant(Item item, ResourceLocation... resources);
|
||||
|
||||
IModelBaker createNewRenderer();
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user