This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class CustomModelBlock4 extends Block | |
{ | |
public static final PropertyDirection FACING = PropertyDirection.create("facing"); | |
public static final CustomModelBlock4 instance = new CustomModelBlock4(); | |
public static final String name = "CustomModelBlock4"; | |
private ExtendedBlockState state = new ExtendedBlockState(this, new IProperty[] {FACING}, new IUnlistedProperty[0]); | |
private CustomModelBlock4() | |
{ | |
super(Material.iron); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Mod(modid = ModelLoaderRegistryDebug.MODID, version = ModelLoaderRegistryDebug.VERSION) | |
public class ModelLoaderRegistryDebug | |
{ | |
public static final String MODID = "ForgeDebugModelLoaderRegistry"; | |
public static final String VERSION = "1.0"; | |
@EventHandler | |
public void preInit(FMLPreInitializationEvent event) | |
{ | |
GameRegistry.registerBlock(CustomModelBlock4.instance, CustomModelBlock4.name); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---- Minecraft Crash Report ---- | |
// This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~] | |
Time: 6/28/15 9:38 PM | |
Description: There was a severe problem during mod loading that has caused the game to fail | |
net.minecraftforge.fml.common.LoaderException: java.lang.ExceptionInInitializerError | |
at net.minecraftforge.fml.common.LoadController.transition(LoadController.java:163) | |
at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:553) | |
at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:249) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"forge_marker": 1, | |
"defaults": { | |
"textures": {}, | |
"model": "forgedebugmodelloaderregistry:eye.obj" | |
}, | |
"variants": { | |
"normal": [{}], | |
"inventory": [{ | |
"transform": "forge:default-block" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.minecraftforge.client.model.obj; | |
import java.io.BufferedReader; | |
public class OBJModel implements IRetexturableModel, IModelCustomData | |
{ | |
private MaterialLibrary matLib; | |
private IModelState state; | |
private final ResourceLocation location; | |
private float minU = 0f; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class CustomModelBlock4 extends Block | |
{ | |
public static final PropertyDirection FACING = PropertyDirection.create("facing"); | |
public static final CustomModelBlock4 instance = new CustomModelBlock4(); | |
public static final String name = "CustomModelBlock4"; | |
private ExtendedBlockState state = new ExtendedBlockState(this, new IProperty[] {FACING}, new IUnlistedProperty[]{OBJModel.OBJProperty.instance}); | |
private CustomModelBlock4() | |
{ | |
super(Material.iron); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.minecraftforge.client.model.obj; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.nio.ByteBuffer; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Collection; | |
import java.util.Collections; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"forge_marker": 1, | |
"defaults": { | |
"textures": {}, | |
"model": "forgedebugmodelloaderregistry:eye.obj" | |
}, | |
"variants": { | |
"normal": [{ | |
"transform": { | |
"rotation": { "y": 45 } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public boolean equals(Object p_equals_1_) | |
{ | |
if (p_equals_1_ instanceof StateImplementation) | |
{ | |
return this.properties.equals(((StateImplementation) p_equals_1_).getProperties()); | |
} | |
return false; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void renderCameraTransformOrigin(float f, Matrix4f matrix, TransformType type) | |
{ | |
GameSettings settings = Minecraft.getMinecraft().gameSettings; | |
if (settings.showDebugInfo && !settings.hideGUI && !Minecraft.getMinecraft().thePlayer.hasReducedDebug() && !settings.reducedDebugInfo) | |
{ | |
Entity entity = Minecraft.getMinecraft().getRenderViewEntity(); | |
GlStateManager.enableBlend(); |