This commit is contained in:
Bernhard Bonigl committed 2014-08-01 21:37:35 +02:00
1 parent 2874f65672
commit 48d5190f0c
6 files changed
+30 -8

No files matched your search

@@ -41,6 +41,8 @@ import java.util.List;
// todo: add batman-hat (enderman-head without jaw and eyes)
// todo: add enderman-jaw helmet as a very rare enderman drop :D
// todo: bucket hattt
// todo: cracked clay bucket? randomly obtainable when transporting lava? :D
@Mod(modid= Reference.MOD_ID, name= Reference.MOD_NAME, version="${version}",
dependencies = "required-after:" + Reference.TCON_MOD_ID + ";after:*")
@@ -1,7 +1,10 @@
package iguanaman.iguanatweakstconstruct.mobheads.models;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.model.ModelRenderer;
@SideOnly(Side.CLIENT)
public class ModelBucketHelmet extends ModelEnderManHead {
public ModelBucketHelmet()
@@ -1,10 +1,13 @@
package iguanaman.iguanatweakstconstruct.mobheads.models;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.client.model.ModelSkeletonHead;
import net.minecraft.entity.Entity;
@SideOnly(Side.CLIENT)
public class ModelEnderManHead extends ModelBase {
public ModelRenderer endermanHead;
@@ -1,10 +1,13 @@
package iguanaman.iguanatweakstconstruct.mobheads.models;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.client.model.ModelSkeletonHead;
import net.minecraft.entity.Entity;
@SideOnly(Side.CLIENT)
public class ModelHeadwear extends ModelSkeletonHead
{
public ModelHeadwear(int offsetX, int offsetY, int width, int height)
@@ -1,5 +1,7 @@
package iguanaman.iguanatweakstconstruct.mobheads.renderers;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import iguanaman.iguanatweakstconstruct.mobheads.models.ModelBucketHelmet;
import iguanaman.iguanatweakstconstruct.mobheads.models.ModelEnderManHead;
import iguanaman.iguanatweakstconstruct.mobheads.models.ModelHeadwear;
@@ -14,17 +16,17 @@ import net.minecraft.util.ResourceLocation;
import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL12;
@SideOnly(Side.CLIENT)
public class IguanaTileEntitySkullRenderer extends TileEntitySpecialRenderer {
public static IguanaTileEntitySkullRenderer renderer = new IguanaTileEntitySkullRenderer();
private ModelSkeletonHead modelSkull = new ModelSkeletonHead(0,0,64,32); // standard skull model
private ModelSkeletonHead modelZombie = new ModelSkeletonHead(0,0,64,64); // zombie skull model
// Skull stuff
private final ModelSkeletonHead modelSkull = new ModelSkeletonHead(0,0,64,32); // standard skull model
private final ModelSkeletonHead modelZombie = new ModelSkeletonHead(0,0,64,64); // zombie skull model
private final ModelEnderManHead modelEnderManHead = new ModelEnderManHead();
private ModelHeadwear modelEnderManJaw = new ModelHeadwear(0,16,64,32);
private ModelEnderManHead modelEnderManHead = new ModelEnderManHead();
private ResourceLocation[] textures = new ResourceLocation[] {
private final ResourceLocation[] textures = new ResourceLocation[] {
new ResourceLocation("textures/entity/enderman/enderman.png"),
new ResourceLocation("textures/entity/zombie_pigman.png"),
new ResourceLocation("textures/entity/blaze.png"),
@@ -32,7 +34,13 @@ public class IguanaTileEntitySkullRenderer extends TileEntitySpecialRenderer {
new ResourceLocation("thermalfoundation","textures/entity/Blizz.png")
};
private ResourceLocation enderManEyes = new ResourceLocation("textures/entity/enderman/enderman_eyes.png");
private final ResourceLocation enderManEyes = new ResourceLocation("textures/entity/enderman/enderman_eyes.png");
// fun stuff ;)
private final ModelHeadwear modelEnderManJaw = new ModelHeadwear(0,16,64,32);
private final ModelBucketHelmet modelBucketHelmet = new ModelBucketHelmet();
private final ResourceLocation textureBucketHelmet = new ResourceLocation(Reference.RESOURCE, "textures/models/bucket_helmet.png");
public IguanaTileEntitySkullRenderer()
{
@@ -1,11 +1,14 @@
package iguanaman.iguanatweakstconstruct.mobheads.renderers;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import iguanaman.iguanatweakstconstruct.mobheads.IguanaMobHeads;
import net.minecraft.item.ItemStack;
import net.minecraftforge.client.event.RenderPlayerEvent;
import org.lwjgl.opengl.GL11;
@SideOnly(Side.CLIENT)
public class RenderPlayerHandler {
@SubscribeEvent
public void renderSkullHelmet(RenderPlayerEvent.SetArmorModel event)