mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 03:15:07 +00:00
Merge branch '1.12' of github.com:Vazkii/Botania into 1.12
This commit is contained in:
commit
f3f66401f7
1042 files changed
+2589
-1888
No files matched your search
@@ -65,51 +65,54 @@ public final class LibResources {
|
||||
public static final String ENTRY_METAMORPHIC_STONES = PREFIX_ENTRIES + "metamorphicStones.png";
|
||||
public static final String ENTRY_BANNERS = PREFIX_ENTRIES + "banners.png";
|
||||
|
||||
public static final String MODEL_SPREADER = PREFIX_MODEL + "spreader.png";
|
||||
public static final String MODEL_SPREADER_REDSTONE = PREFIX_MODEL + "spreaderRedstone.png";
|
||||
public static final String MODEL_SPREADER_DREAMWOOD = PREFIX_MODEL + "spreaderDreamwood.png";
|
||||
public static final String MODEL_SPREADER_HALLOWEEN = PREFIX_MODEL + "spreader_halloween.png";
|
||||
public static final String MODEL_SPREADER_REDSTONE_HALLOWEEN = PREFIX_MODEL + "spreaderRedstone_halloween.png";
|
||||
public static final String MODEL_SPREADER_DREAMWOOD_HALLOWEEN = PREFIX_MODEL + "spreaderDreamwood_halloween.png";
|
||||
public static final String MODEL_PYLON_OLD = PREFIX_MODEL + "pylonOld.png";
|
||||
public static final String MODEL_PYLON = PREFIX_MODEL + "pylon.png";
|
||||
public static final String MODEL_PYLON_GREEN_OLD = PREFIX_MODEL + "pylonOld1.png";
|
||||
public static final String MODEL_PYLON_GREEN = PREFIX_MODEL + "pylon1.png";
|
||||
public static final String MODEL_PYLON_PINK_OLD = PREFIX_MODEL + "pylonOld2.png";
|
||||
public static final String MODEL_PYLON_PINK = PREFIX_MODEL + "pylon2.png";
|
||||
public static final String MODEL_LEXICA_DEFAULT = PREFIX_MODEL + "lexica0.png";
|
||||
public static final String MODEL_LEXICA_ELVEN = PREFIX_MODEL + "lexica1.png";
|
||||
public static final String MODEL_MANASTEEL_0 = PREFIX_MODEL + "manasteel0.png";
|
||||
public static final String MODEL_MANASTEEL_1 = PREFIX_MODEL + "manasteel1.png";
|
||||
public static final String MODEL_MANASTEEL_2 = PREFIX_MODEL + "manasteel2.png";
|
||||
public static final String MODEL_MANASTEEL_NEW = PREFIX_MODEL + "manasteelNew.png";
|
||||
public static final String MODEL_TERRASTEEL_0 = PREFIX_MODEL + "terrasteel0.png";
|
||||
public static final String MODEL_TERRASTEEL_1 = PREFIX_MODEL + "terrasteel1.png";
|
||||
public static final String MODEL_TERRASTEEL_2 = PREFIX_MODEL + "terrasteel2.png";
|
||||
public static final String MODEL_TERRASTEEL_NEW = PREFIX_MODEL + "terrasteelNew.png";
|
||||
public static final String MODEL_ELEMENTIUM_0 = PREFIX_MODEL + "elementium0.png";
|
||||
public static final String MODEL_ELEMENTIUM_1 = PREFIX_MODEL + "elementium1.png";
|
||||
public static final String MODEL_ELEMENTIUM_2 = PREFIX_MODEL + "elementium2.png";
|
||||
public static final String MODEL_ELEMENTIUM_NEW = PREFIX_MODEL + "elementiumNew.png";
|
||||
public static final String MODEL_MANAWEAVE_0 = PREFIX_MODEL + "manaweave0.png";
|
||||
public static final String MODEL_MANAWEAVE_1 = PREFIX_MODEL + "manaweave1.png";
|
||||
public static final String MODEL_MANAWEAVE_NEW = PREFIX_MODEL + "manaweaveNew.png";
|
||||
public static final String MODEL_MANAWEAVE_NEW_HOLIDAY = PREFIX_MODEL + "manaweaveNewHoliday.png";
|
||||
public static final String MODEL_SPREADER = PREFIX_MODEL + "spreader_mana.png";
|
||||
public static final String MODEL_SPREADER_REDSTONE = PREFIX_MODEL + "spreader_redstone.png";
|
||||
public static final String MODEL_SPREADER_DREAMWOOD = PREFIX_MODEL + "spreader_dreamwood.png";
|
||||
public static final String MODEL_SPREADER_GAIA = PREFIX_MODEL + "spreader_gaia.png";
|
||||
public static final String MODEL_SPREADER_HALLOWEEN = PREFIX_MODEL + "spreader_mana_halloween.png";
|
||||
public static final String MODEL_SPREADER_REDSTONE_HALLOWEEN = PREFIX_MODEL + "spreader_redstone_halloween.png";
|
||||
public static final String MODEL_SPREADER_DREAMWOOD_HALLOWEEN = PREFIX_MODEL + "spreader_dreamwood_halloween.png";
|
||||
public static final String MODEL_SPREADER_GAIA_HALLOWEEN = PREFIX_MODEL + "spreader_gaia_halloween.png";
|
||||
public static final String MODEL_PYLON_MANA = PREFIX_MODEL + "pylon_mana.png";
|
||||
public static final String MODEL_PYLON = PREFIX_MODEL + "pylon_0.png";
|
||||
public static final String MODEL_PYLON_NATURA = PREFIX_MODEL + "pylon_natura.png";
|
||||
public static final String MODEL_PYLON_GREEN = PREFIX_MODEL + "pylon_1.png";
|
||||
public static final String MODEL_PYLON_GAIA = PREFIX_MODEL + "pylon_gaia.png";
|
||||
public static final String MODEL_PYLON_PINK = PREFIX_MODEL + "pylon_2.png";
|
||||
public static final String MODEL_LEXICA_DEFAULT = PREFIX_MODEL + "lexica_default.png";
|
||||
public static final String MODEL_LEXICA_ELVEN = PREFIX_MODEL + "lexica_elven.png";
|
||||
public static final String MODEL_MANASTEEL_0 = PREFIX_MODEL + "manasteel_0.png";
|
||||
public static final String MODEL_MANASTEEL_1 = PREFIX_MODEL + "manasteel_1.png";
|
||||
public static final String MODEL_MANASTEEL_2 = PREFIX_MODEL + "manasteel_2.png";
|
||||
public static final String MODEL_MANASTEEL_NEW = PREFIX_MODEL + "manasteel_new.png";
|
||||
public static final String MODEL_TERRASTEEL_0 = PREFIX_MODEL + "terrasteel_0.png";
|
||||
public static final String MODEL_TERRASTEEL_1 = PREFIX_MODEL + "terrasteel_1.png";
|
||||
public static final String MODEL_TERRASTEEL_2 = PREFIX_MODEL + "terrasteel_2.png";
|
||||
public static final String MODEL_TERRASTEEL_NEW = PREFIX_MODEL + "terrasteel_new.png";
|
||||
public static final String MODEL_ELEMENTIUM_0 = PREFIX_MODEL + "elementium_0.png";
|
||||
public static final String MODEL_ELEMENTIUM_1 = PREFIX_MODEL + "elementium_1.png";
|
||||
public static final String MODEL_ELEMENTIUM_2 = PREFIX_MODEL + "elementium_2.png";
|
||||
public static final String MODEL_ELEMENTIUM_NEW = PREFIX_MODEL + "elementium_new.png";
|
||||
public static final String MODEL_MANAWEAVE_0 = PREFIX_MODEL + "manaweave_0.png";
|
||||
public static final String MODEL_MANAWEAVE_1 = PREFIX_MODEL + "manaweave_1.png";
|
||||
public static final String MODEL_MANAWEAVE_NEW = PREFIX_MODEL + "manaweave_new.png";
|
||||
public static final String MODEL_MANAWEAVE_NEW_HOLIDAY = PREFIX_MODEL + "manaweave_new_holiday.png";
|
||||
public static final String MODEL_PIXIE = PREFIX_MODEL + "pixie.png";
|
||||
public static final String MODEL_TINY_POTATO = PREFIX_MODEL + "tinyPotato.png";
|
||||
public static final String MODEL_TINY_POTATO_GS = PREFIX_MODEL + "tinyPotatoGray.png";
|
||||
public static final String MODEL_TINY_POTATO_HALLOWEEN = PREFIX_MODEL + "tinyPotato_halloween.png";
|
||||
public static final String MODEL_PIXIE_HALLOWEEN = PREFIX_MODEL + "pixie_halloween.png";
|
||||
public static final String MODEL_TINY_POTATO = PREFIX_MODEL + "tiny_potato.png";
|
||||
public static final String MODEL_TINY_POTATO_GS = PREFIX_MODEL + "tiny_potato_gray.png";
|
||||
public static final String MODEL_TINY_POTATO_HALLOWEEN = PREFIX_MODEL + "tiny_potato_halloween.png";
|
||||
public static final String MODEL_BREWERY = PREFIX_MODEL + "brewery.png";
|
||||
public static final String MODEL_TRAVEL_BELT = PREFIX_MODEL + "travelBelt.png";
|
||||
public static final String MODEL_SUPER_TRAVEL_BELT = PREFIX_MODEL + "superTravelBelt.png";
|
||||
public static final String MODEL_SPEED_UP_BELT = PREFIX_MODEL + "speedUpBelt.png";
|
||||
public static final String MODEL_KNOCKBACK_BELT = PREFIX_MODEL + "knockbackBelt.png";
|
||||
public static final String MODEL_HOLY_CLOAK = PREFIX_MODEL + "holyCloak.png";
|
||||
public static final String MODEL_UNHOLY_CLOAK = PREFIX_MODEL + "unholyCloak.png";
|
||||
public static final String MODEL_BALANCE_CLOAK = PREFIX_MODEL + "balanceCloak.png";
|
||||
public static final String MODEL_HOLY_CLOAK_GLOW = PREFIX_MODEL + "holyCloakGlow.png";
|
||||
public static final String MODEL_UNHOLY_CLOAK_GLOW = PREFIX_MODEL + "unholyCloakGlow.png";
|
||||
public static final String MODEL_BALANCE_CLOAK_GLOW = PREFIX_MODEL + "balanceCloakGlow.png";
|
||||
public static final String MODEL_HOLY_CLOAK = PREFIX_MODEL + "cloak_holy.png";
|
||||
public static final String MODEL_UNHOLY_CLOAK = PREFIX_MODEL + "cloak_unholy.png";
|
||||
public static final String MODEL_BALANCE_CLOAK = PREFIX_MODEL + "cloak_balance.png";
|
||||
public static final String MODEL_HOLY_CLOAK_GLOW = PREFIX_MODEL + "cloak_holy_glow.png";
|
||||
public static final String MODEL_UNHOLY_CLOAK_GLOW = PREFIX_MODEL + "cloak_unholy_glow.png";
|
||||
public static final String MODEL_BALANCE_CLOAK_GLOW = PREFIX_MODEL + "cloak_balance_glow.png";
|
||||
public static final String MODEL_CORPOREA_INDEX = PREFIX_MODEL + "corporeaIndex.png";
|
||||
public static final String MODEL_INVISIBLE_ARMOR = PREFIX_MODEL + "invisibleArmor.png";
|
||||
public static final String MODEL_PINK_WITHER = PREFIX_MODEL + "pinkWither.png";
|
||||
@@ -120,12 +123,12 @@ public final class LibResources {
|
||||
public static final String MODEL_TERU_TERU_BOZU = PREFIX_MODEL + "teruTeruBozu.png";
|
||||
public static final String MODEL_TERU_TERU_BOZU_HALLOWEEN = PREFIX_MODEL + "teruTeruBozu_halloween.png";
|
||||
public static final String MODEL_AVATAR = PREFIX_MODEL + "avatar.png";
|
||||
public static final String MODEL_AVATAR_DIVINING = PREFIX_MODEL + "avatarDivining.png";
|
||||
public static final String MODEL_AVATAR_FIRE = PREFIX_MODEL + "avatarFire.png";
|
||||
public static final String MODEL_AVATAR_MISSILE = PREFIX_MODEL + "avatarMissile.png";
|
||||
public static final String MODEL_AVATAR_RAINBOW = PREFIX_MODEL + "avatarRainbow.png";
|
||||
public static final String MODEL_AVATAR_TORNADO = PREFIX_MODEL + "avatarTornado.png";
|
||||
public static final String MODEL_AVATAR_DIRT = PREFIX_MODEL + "avatarDirt.png";
|
||||
public static final String MODEL_AVATAR_DIVINING = PREFIX_MODEL + "avatar_divining.png";
|
||||
public static final String MODEL_AVATAR_FIRE = PREFIX_MODEL + "avatar_fire.png";
|
||||
public static final String MODEL_AVATAR_MISSILE = PREFIX_MODEL + "avatar_missile.png";
|
||||
public static final String MODEL_AVATAR_RAINBOW = PREFIX_MODEL + "avatar_rainbow.png";
|
||||
public static final String MODEL_AVATAR_TORNADO = PREFIX_MODEL + "avatar_tornado.png";
|
||||
public static final String MODEL_AVATAR_DIRT = PREFIX_MODEL + "avatar_dirt.png";
|
||||
|
||||
public static final String MISC_PARTICLES = PREFIX_MISC + "particles.png";
|
||||
public static final String MISC_WISP_LARGE = PREFIX_MISC + "wispLarge.png";
|
||||
|
||||
@@ -16,74 +16,46 @@ import net.minecraft.client.renderer.GlStateManager;
|
||||
|
||||
public class ModelBellows extends ModelBase {
|
||||
|
||||
final ModelRenderer Base;
|
||||
final ModelRenderer Top;
|
||||
final ModelRenderer Funnel;
|
||||
final ModelRenderer Pipe;
|
||||
final ModelRenderer Handle1;
|
||||
final ModelRenderer Handle2;
|
||||
final ModelRenderer Handle3;
|
||||
final ModelRenderer top;
|
||||
final ModelRenderer base;
|
||||
final ModelRenderer pipe;
|
||||
final ModelRenderer funnel;
|
||||
|
||||
public ModelBellows() {
|
||||
textureWidth = 64;
|
||||
textureHeight = 32;
|
||||
|
||||
Base = new ModelRenderer(this, 0, 0);
|
||||
Base.addBox(0F, 0F, 0F, 10, 2, 10);
|
||||
Base.setRotationPoint(-5F, 22F, -5F);
|
||||
Base.setTextureSize(64, 32);
|
||||
Base.mirror = true;
|
||||
Top = new ModelRenderer(this, 0, 14);
|
||||
Top.addBox(0F, 0F, 0F, 8, 1, 8);
|
||||
Top.setRotationPoint(-4F, 14F, -4F);
|
||||
Top.setTextureSize(64, 32);
|
||||
Top.mirror = true;
|
||||
Funnel = new ModelRenderer(this, 34, 14);
|
||||
Funnel.addBox(0F, 0F, 0F, 6, 7, 6);
|
||||
Funnel.setRotationPoint(0F, 0F, 0F);
|
||||
Funnel.setTextureSize(64, 32);
|
||||
Funnel.mirror = true;
|
||||
Pipe = new ModelRenderer(this, 43, 1);
|
||||
Pipe.addBox(0F, 0F, 0F, 2, 2, 3);
|
||||
Pipe.setRotationPoint(-1F, 22F, -8F);
|
||||
Pipe.setTextureSize(64, 32);
|
||||
Pipe.mirror = true;
|
||||
Handle1 = new ModelRenderer(this, 43, 8);
|
||||
Handle1.addBox(0F, 0F, -0.5F, 1, 2, 1);
|
||||
Handle1.setRotationPoint(-2F, 12F, 0F);
|
||||
Handle1.setTextureSize(64, 32);
|
||||
Handle1.mirror = true;
|
||||
Handle2 = new ModelRenderer(this, 48, 8);
|
||||
Handle2.addBox(1F, 0F, -0.5F, 2, 1, 1);
|
||||
Handle2.setRotationPoint(-2F, 12F, 0F);
|
||||
Handle2.setTextureSize(64, 32);
|
||||
Handle2.mirror = true;
|
||||
Handle3 = new ModelRenderer(this, 55, 8);
|
||||
Handle3.addBox(3F, 0F, -0.5F, 1, 2, 1);
|
||||
Handle3.setRotationPoint(-2F, 12F, 0F);
|
||||
Handle3.setTextureSize(64, 32);
|
||||
Handle3.mirror = true;
|
||||
|
||||
top = new ModelRenderer(this, 0, 0);
|
||||
top.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
top.addBox(-4.0F, -2.0F, -4.0F, 8, 1, 8, 0.0F);
|
||||
base = new ModelRenderer(this, 0, 9);
|
||||
base.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
base.addBox(-5.0F, 6.0F, -5.0F, 10, 2, 10, 0.0F);
|
||||
pipe = new ModelRenderer(this, 0, 21);
|
||||
pipe.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
pipe.addBox(-1.0F, 6.0F, -8.0F, 2, 2, 3, 0.0F);
|
||||
|
||||
funnel = new ModelRenderer(this, 40, 0);
|
||||
funnel.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
funnel.addBox(0.0F, 0.0F, 0.0F, 6, 7, 6, 0.0F);
|
||||
}
|
||||
|
||||
public void render(float fract) {
|
||||
float f5 = 1F / 16F;
|
||||
Base.render(f5);
|
||||
Pipe.render(f5);
|
||||
base.render(f5);
|
||||
pipe.render(f5);
|
||||
|
||||
//float fract = Math.max(0.1F, (float) (Math.sin(((double) ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks) * 0.2) + 1F) * 0.5F);
|
||||
float mov = (1F - fract) * 0.5F;
|
||||
|
||||
GlStateManager.translate(0F, mov, 0F);
|
||||
Top.render(f5);
|
||||
Handle1.render(f5);
|
||||
Handle2.render(f5);
|
||||
Handle3.render(f5);
|
||||
top.render(f5);
|
||||
GlStateManager.translate(0F, -mov, 0F);
|
||||
|
||||
GlStateManager.rotate(180F, 1F, 0F, 0F);
|
||||
GlStateManager.translate(-0.19F, -1.375F, -0.19F);
|
||||
GlStateManager.scale(1F, fract, 1F);
|
||||
Funnel.render(f5);
|
||||
funnel.render(f5);
|
||||
GlStateManager.scale(1F, 1F / fract, 1F);
|
||||
}
|
||||
|
||||
|
||||
@@ -17,31 +17,31 @@ import vazkii.botania.client.render.tile.RenderTileBrewery;
|
||||
|
||||
public class ModelBrewery extends ModelBase {
|
||||
|
||||
final ModelRenderer Pole;
|
||||
final ModelRenderer Top;
|
||||
final ModelRenderer Bottom;
|
||||
final ModelRenderer Plate;
|
||||
final ModelRenderer top;
|
||||
final ModelRenderer pole;
|
||||
final ModelRenderer bottom;
|
||||
|
||||
final ModelRenderer plate;
|
||||
|
||||
public ModelBrewery() {
|
||||
textureWidth = 64;
|
||||
textureHeight = 32;
|
||||
|
||||
Pole = new ModelRenderer(this, 0, 6);
|
||||
Pole.addBox(0F, 0F, 0F, 2, 10, 2);
|
||||
Pole.setRotationPoint(-1F, 10F, -1F);
|
||||
Pole.setTextureSize(64, 32);
|
||||
Top = new ModelRenderer(this, 18, 0);
|
||||
Top.addBox(0F, 0F, 0F, 4, 1, 4);
|
||||
Top.setRotationPoint(-2F, 9F, -2F);
|
||||
Top.setTextureSize(64, 32);
|
||||
Bottom = new ModelRenderer(this, 18, 7);
|
||||
Bottom.addBox(0F, 0F, 0F, 4, 1, 4);
|
||||
Bottom.setRotationPoint(-2F, 20F, -2F);
|
||||
Bottom.setTextureSize(64, 32);
|
||||
Plate = new ModelRenderer(this, 0, 0);
|
||||
Plate.addBox(5F, 0F, -2F, 4, 1, 4);
|
||||
Plate.setRotationPoint(0F, 17F, 0F);
|
||||
Plate.setTextureSize(64, 32);
|
||||
|
||||
textureWidth = 32;
|
||||
textureHeight = 16;
|
||||
|
||||
top = new ModelRenderer(this, 8, 0);
|
||||
top.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
top.addBox(-2.0F, -7.0F, -2.0F, 4, 1, 4, 0.0F);
|
||||
pole = new ModelRenderer(this, 0, 0);
|
||||
pole.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
pole.addBox(-1.0F, -6.0F, -1.0F, 2, 10, 2, 0.0F);
|
||||
bottom = new ModelRenderer(this, 8, 5);
|
||||
bottom.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
bottom.addBox(-2.0F, 4.0F, -2.0F, 4, 1, 4, 0.0F);
|
||||
|
||||
plate = new ModelRenderer(this, 8, 5);
|
||||
plate.setRotationPoint(0.0F, 17.0F, 0.0F);
|
||||
plate.addBox(5.0F, 0.0F, -2.0F, 4, 1, 4, 0.0F);
|
||||
|
||||
}
|
||||
|
||||
public void render(RenderTileBrewery render, double time) {
|
||||
@@ -65,21 +65,21 @@ public class ModelBrewery extends ModelBase {
|
||||
GlStateManager.rotate(-180F, 1F, 0F, 0F);
|
||||
}
|
||||
|
||||
Pole.render(f);
|
||||
Top.render(f);
|
||||
Bottom.render(f);
|
||||
pole.render(f);
|
||||
top.render(f);
|
||||
bottom.render(f);
|
||||
GlStateManager.rotate(-polerot, 0F, 1F, 0F);
|
||||
|
||||
float degper = (float) (2F * Math.PI) / plates;
|
||||
for(int i = 0; i < plates; i++) {
|
||||
Plate.rotateAngleY = deg;
|
||||
plate.rotateAngleY = deg;
|
||||
float offset1 = (float) Math.sin(time / 20 + i * 40F) * 0.2F - 0.2F;
|
||||
if(time == -1)
|
||||
offset1 = 0F;
|
||||
|
||||
GlStateManager.translate(0F, offset1, 0F);
|
||||
if(hasTile && !render.brewery.getItemHandler().getStackInSlot(i + 1).isEmpty()) {
|
||||
float rot = Plate.rotateAngleY * 180F / (float) Math.PI;
|
||||
float rot = plate.rotateAngleY * 180F / (float) Math.PI;
|
||||
float transX = 0.3125F;
|
||||
float transY = 1.06F;
|
||||
float transZ = 0.1245F;
|
||||
@@ -93,8 +93,7 @@ public class ModelBrewery extends ModelBase {
|
||||
GlStateManager.translate(-transX, -transY, -transZ);
|
||||
GlStateManager.rotate(-rot, 0F, 1F, 0F);
|
||||
}
|
||||
|
||||
Plate.render(f);
|
||||
plate.render(f);
|
||||
GlStateManager.translate(0F, -offset1, 0F);
|
||||
|
||||
deg += degper;
|
||||
|
||||
@@ -9,32 +9,36 @@ import net.minecraft.client.model.ModelRenderer;
|
||||
*/
|
||||
public class ModelCloak extends ModelBase {
|
||||
|
||||
public ModelRenderer armRpauldron;
|
||||
public ModelRenderer armLpauldron;
|
||||
public ModelRenderer helm;
|
||||
|
||||
public ModelRenderer collar;
|
||||
public ModelRenderer sideL;
|
||||
public ModelRenderer sideR;
|
||||
|
||||
public ModelCloak() {
|
||||
|
||||
textureWidth = 64;
|
||||
textureHeight = 64;
|
||||
armLpauldron = new ModelRenderer(this, 0, 15);
|
||||
armLpauldron.mirror = true;
|
||||
armLpauldron.setRotationPoint(0.0F, 0.0F, -0.0F);
|
||||
armLpauldron.addBox(-1.0F, 0.0F, -5.0F, 9, 20, 9, 0.0F);
|
||||
setRotateAngle(armLpauldron, 0.08726646259971647F, -0.2617993877991494F, -0.17453292519943295F);
|
||||
armRpauldron = new ModelRenderer(this, 0, 15);
|
||||
armRpauldron.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
armRpauldron.addBox(-8.0F, 0.0F, -5.0F, 9, 20, 9, 0.0F);
|
||||
setRotateAngle(armRpauldron, 0.08726646259971647F, 0.2617993877991494F, 0.17453292519943295F);
|
||||
helm = new ModelRenderer(this, 0, 0);
|
||||
helm.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
helm.addBox(-4.5F, -3.0F, -5.5F, 9, 4, 11, 0.0F);
|
||||
setRotateAngle(helm, 0.2617993877991494F, 0.0F, 0.0F);
|
||||
float s = 0.01F;
|
||||
|
||||
collar = new ModelRenderer(this, 0, 0);
|
||||
collar.setRotationPoint(0.0F, -3.0F, -4.5F);
|
||||
collar.addBox(-5.5F, 0.0F, -1.5F, 11, 5, 11, s);
|
||||
setRotateAngle(collar, 0.08726646259971647F, 0.0F, 0.0F);
|
||||
sideL = new ModelRenderer(this, 0, 16);
|
||||
sideL.mirror = true;
|
||||
sideL.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
sideL.addBox(-0.5F, -0.5F, -5.5F, 11, 21, 10, s);
|
||||
setRotateAngle(sideL, 0.08726646259971647F, -0.08726646259971647F, -0.17453292519943295F);
|
||||
sideR = new ModelRenderer(this, 0, 16);
|
||||
sideR.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
sideR.addBox(-10.5F, -0.5F, -5.5F, 11, 21, 10, s);
|
||||
setRotateAngle(sideR, 0.08726646259971647F, 0.08726646259971647F, 0.17453292519943295F);
|
||||
|
||||
}
|
||||
|
||||
public void render(float f5) {
|
||||
armLpauldron.render(f5);
|
||||
armRpauldron.render(f5);
|
||||
helm.render(f5);
|
||||
collar.render(f5);
|
||||
sideL.render(f5);
|
||||
sideR.render(f5);
|
||||
}
|
||||
|
||||
public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* This class was created by <Adubbz>. It's distributed as
|
||||
* This class was created by <wiiv>. It's distributed as
|
||||
* part of the Botania Mod. Get the Source Code in github:
|
||||
* https://github.com/Vazkii/Botania
|
||||
*
|
||||
@@ -17,55 +17,67 @@ import net.minecraft.util.math.MathHelper;
|
||||
|
||||
public class ModelPixie extends ModelBase {
|
||||
|
||||
final ModelRenderer Body;
|
||||
final ModelRenderer LeftWing;
|
||||
final ModelRenderer RightWing;
|
||||
public ModelRenderer body;
|
||||
public ModelRenderer leftWingT;
|
||||
public ModelRenderer leftWingB;
|
||||
public ModelRenderer rightWingT;
|
||||
public ModelRenderer rightWingB;
|
||||
|
||||
public ModelPixie() {
|
||||
textureWidth = 64;
|
||||
textureHeight = 32;
|
||||
|
||||
Body = new ModelRenderer(this, 0, 0);
|
||||
Body.addBox(0F, 0F, 0F, 4, 4, 4);
|
||||
Body.setRotationPoint(-2F, 16F, -2F);
|
||||
Body.setTextureSize(64, 32);
|
||||
Body.mirror = true;
|
||||
setRotation(Body, 0F, 0F, 0F);
|
||||
LeftWing = new ModelRenderer(this, 32, 0);
|
||||
LeftWing.addBox(0F, 0F, -1F, 0, 4, 7);
|
||||
LeftWing.setRotationPoint(2F, 15F, 2F);
|
||||
LeftWing.setTextureSize(64, 32);
|
||||
LeftWing.mirror = true;
|
||||
setRotation(LeftWing, 0F, 0F, 0F);
|
||||
RightWing = new ModelRenderer(this, 50, 0);
|
||||
RightWing.addBox(0F, 0F, -1F, 0, 4, 7);
|
||||
RightWing.setRotationPoint(-2F, 15F, 2F);
|
||||
RightWing.setTextureSize(64, 32);
|
||||
RightWing.mirror = true;
|
||||
setRotation(RightWing, 0F, 0F, 0F);
|
||||
}
|
||||
public ModelPixie() {
|
||||
|
||||
textureWidth = 32;
|
||||
textureHeight = 32;
|
||||
|
||||
body = new ModelRenderer(this, 0, 0);
|
||||
body.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
body.addBox(-2.5F, 0.0F, -2.5F, 5, 5, 5, 0.0F);
|
||||
|
||||
leftWingT = new ModelRenderer(this, 0, 4);
|
||||
leftWingT.setRotationPoint(2.5F, 18.0F, 0.5F);
|
||||
leftWingT.addBox(0.0F, -5.0F, 0.0F, 0, 5, 6, 0.0F);
|
||||
setRotateAngle(leftWingT, 0.2617993877991494F, 0.5235987755982988F, 0.2617993877991494F);
|
||||
leftWingB = new ModelRenderer(this, 0, 11);
|
||||
leftWingB.setRotationPoint(2.5F, 18.0F, 0.5F);
|
||||
leftWingB.addBox(0.0F, 0.0F, 0.0F, 0, 3, 4, 0.0F);
|
||||
setRotateAngle(leftWingB, -0.2617993877991494F, 0.2617993877991494F, -0.2617993877991494F);
|
||||
rightWingT = new ModelRenderer(this, 0, 4);
|
||||
rightWingT.setRotationPoint(-2.5F, 18.0F, 0.5F);
|
||||
rightWingT.addBox(0.0F, -5.0F, 0.0F, 0, 5, 6, 0.0F);
|
||||
setRotateAngle(rightWingT, 0.2617993877991494F, -0.5235987755982988F, -0.2617993877991494F);
|
||||
rightWingB = new ModelRenderer(this, 0, 11);
|
||||
rightWingB.setRotationPoint(-2.5F, 18.0F, 0.5F);
|
||||
rightWingB.addBox(0.0F, 0.0F, 0.0F, 0, 3, 4, 0.0F);
|
||||
setRotateAngle(rightWingB, -0.2617993877991494F, -0.2617993877991494F, 0.2617993877991494F);
|
||||
}
|
||||
|
||||
@Override
|
||||
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, entity);
|
||||
Body.render(f5);
|
||||
LeftWing.render(f5);
|
||||
RightWing.render(f5);
|
||||
}
|
||||
|
||||
private void setRotation(ModelRenderer model, float x, float y, float z) {
|
||||
model.rotateAngleX = x;
|
||||
model.rotateAngleY = y;
|
||||
model.rotateAngleZ = z;
|
||||
|
||||
body.render(f5);
|
||||
|
||||
leftWingT.render(f5);
|
||||
leftWingB.render(f5);
|
||||
rightWingT.render(f5);
|
||||
rightWingB.render(f5);
|
||||
}
|
||||
|
||||
public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) {
|
||||
modelRenderer.rotateAngleX = x;
|
||||
modelRenderer.rotateAngleY = y;
|
||||
modelRenderer.rotateAngleZ = z;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity) {
|
||||
super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
|
||||
|
||||
RightWing.rotateAngleY = -(MathHelper.cos(f2 * 1.7F) * (float)Math.PI * 0.5F);
|
||||
LeftWing.rotateAngleY = MathHelper.cos(f2 * 1.7F) * (float)Math.PI * 0.5F;
|
||||
rightWingT.rotateAngleY = -(MathHelper.cos(f2 * 1.7F) * (float)Math.PI * 0.5F);
|
||||
leftWingT.rotateAngleY = MathHelper.cos(f2 * 1.7F) * (float)Math.PI * 0.5F;
|
||||
rightWingB.rotateAngleY = -(MathHelper.cos(f2 * 1.7F) * (float)Math.PI * 0.25F);
|
||||
leftWingB.rotateAngleY = MathHelper.cos(f2 * 1.7F) * (float)Math.PI * 0.25F;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
/**
|
||||
* This class was created by <Vazkii>. It's distributed as
|
||||
* part of the Botania Mod. Get the Source Code in github:
|
||||
* https://github.com/Vazkii/Botania
|
||||
*
|
||||
* Botania is Open Source and distributed under the
|
||||
* Botania License: http://botaniamod.net/license.php
|
||||
*
|
||||
* File Created @ [Feb 18, 2014, 10:05:39 PM (GMT)]
|
||||
*/
|
||||
package vazkii.botania.client.model;
|
||||
|
||||
import java.util.function.Function;
|
||||
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.client.renderer.block.model.IBakedModel;
|
||||
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
|
||||
import net.minecraft.client.renderer.vertex.VertexFormat;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.client.model.IModel;
|
||||
import net.minecraftforge.common.model.IModelState;
|
||||
import vazkii.botania.api.state.enums.PylonVariant;
|
||||
|
||||
public class ModelPylonGaia extends ModelBase implements IModel {
|
||||
|
||||
final ModelRenderer platef;
|
||||
final ModelRenderer plateb;
|
||||
final ModelRenderer platel;
|
||||
final ModelRenderer plater;
|
||||
|
||||
final ModelRenderer shardlbt;
|
||||
final ModelRenderer shardrbt;
|
||||
final ModelRenderer shardlft;
|
||||
final ModelRenderer shardrft;
|
||||
|
||||
final ModelRenderer shardlbb;
|
||||
final ModelRenderer shardrbb;
|
||||
final ModelRenderer shardlfb;
|
||||
final ModelRenderer shardrfb;
|
||||
|
||||
public ModelPylonGaia() {
|
||||
|
||||
textureWidth = 64;
|
||||
textureHeight = 64;
|
||||
|
||||
//plates
|
||||
platel = new ModelRenderer(this, 36, 0);
|
||||
platel.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
platel.addBox(-3.0F, -3.0F, -8.0F, 6, 6, 2, 0.0F);
|
||||
setRotation(platel, 0.0F, 1.5707963267948966F, 0.0F);
|
||||
plater = new ModelRenderer(this, 36, 0);
|
||||
plater.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
plater.addBox(-3.0F, -3.0F, -8.0F, 6, 6, 2, 0.0F);
|
||||
setRotation(plater, 0.0F, -1.5707963267948966F, 0.0F);
|
||||
platef = new ModelRenderer(this, 36, 0);
|
||||
platef.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
platef.addBox(-3.0F, -3.0F, -8.0F, 6, 6, 2, 0.0F);
|
||||
plateb = new ModelRenderer(this, 36, 0);
|
||||
plateb.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
plateb.addBox(-3.0F, -3.0F, -8.0F, 6, 6, 2, 0.0F);
|
||||
setRotation(plateb, 0.0F, 3.141592653589793F, 0.0F);
|
||||
|
||||
//shards
|
||||
shardrft = new ModelRenderer(this, 16, 32);
|
||||
shardrft.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
shardrft.addBox(2.0F, -6.0F, -5.0F, 3, 2, 3, 0.0F);
|
||||
shardlbt = new ModelRenderer(this, 0, 0);
|
||||
shardlbt.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
shardlbt.addBox(-5.0F, -6.0F, 0.0F, 6, 5, 5, 0.0F);
|
||||
shardrbt = new ModelRenderer(this, 22, 9);
|
||||
shardrbt.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
shardrbt.addBox(3.0F, -5.0F, 0.0F, 2, 4, 5, 0.0F);
|
||||
shardlft = new ModelRenderer(this, 0, 32);
|
||||
shardlft.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
shardlft.addBox(-5.0F, -7.0F, -5.0F, 5, 6, 3, 0.0F);
|
||||
|
||||
shardrfb = new ModelRenderer(this, 16, 37);
|
||||
shardrfb.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
shardrfb.addBox(2.0F, -2.0F, -5.0F, 3, 6, 3, 0.0F);
|
||||
shardlbb = new ModelRenderer(this, 0, 10);
|
||||
shardlbb.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
shardlbb.addBox(-5.0F, 1.0F, 0.0F, 6, 3, 5, 0.0F);
|
||||
shardrbb = new ModelRenderer(this, 22, 0);
|
||||
shardrbb.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
shardrbb.addBox(3.0F, 1.0F, 0.0F, 2, 4, 5, 0.0F);
|
||||
shardlfb = new ModelRenderer(this, 0, 41);
|
||||
shardlfb.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
shardlfb.addBox(-5.0F, 1.0F, -5.0F, 5, 2, 3, 0.0F);
|
||||
}
|
||||
|
||||
public void renderCrystal(PylonVariant variant) {
|
||||
float f = 1F / 16F;
|
||||
|
||||
shardrft.render(f);
|
||||
shardlbt.render(f);
|
||||
shardrbt.render(f);
|
||||
shardlft.render(f);
|
||||
|
||||
shardrfb.render(f);
|
||||
shardlbb.render(f);
|
||||
shardrbb.render(f);
|
||||
shardlfb.render(f);
|
||||
}
|
||||
|
||||
public void renderRing(PylonVariant variant) {
|
||||
float f = 1F / 16F;
|
||||
|
||||
platef.render(f);
|
||||
plateb.render(f);
|
||||
platel.render(f);
|
||||
plater.render(f);
|
||||
}
|
||||
|
||||
private void setRotation(ModelRenderer model, float x, float y, float z) {
|
||||
|
||||
model.rotateAngleX = x;
|
||||
model.rotateAngleY = y;
|
||||
model.rotateAngleZ = z;
|
||||
}
|
||||
|
||||
public void renderGems(PylonVariant variant) {}
|
||||
|
||||
@Override
|
||||
public IBakedModel bake(IModelState state, VertexFormat format,
|
||||
Function<ResourceLocation, TextureAtlasSprite> bakedTextureGetter) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,108 @@
|
||||
/**
|
||||
* This class was created by <Vazkii>. It's distributed as
|
||||
* part of the Botania Mod. Get the Source Code in github:
|
||||
* https://github.com/Vazkii/Botania
|
||||
*
|
||||
* Botania is Open Source and distributed under the
|
||||
* Botania License: http://botaniamod.net/license.php
|
||||
*
|
||||
* File Created @ [Feb 18, 2014, 10:05:39 PM (GMT)]
|
||||
*/
|
||||
package vazkii.botania.client.model;
|
||||
|
||||
import java.util.function.Function;
|
||||
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.client.renderer.block.model.IBakedModel;
|
||||
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
|
||||
import net.minecraft.client.renderer.vertex.VertexFormat;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.client.model.IModel;
|
||||
import net.minecraftforge.common.model.IModelState;
|
||||
import vazkii.botania.api.state.enums.PylonVariant;
|
||||
|
||||
public class ModelPylonMana extends ModelBase implements IModel {
|
||||
|
||||
final ModelRenderer platef;
|
||||
final ModelRenderer plateb;
|
||||
final ModelRenderer platel;
|
||||
final ModelRenderer plater;
|
||||
|
||||
final ModelRenderer shardlf;
|
||||
final ModelRenderer shardrf;
|
||||
final ModelRenderer shardlb;
|
||||
final ModelRenderer shardrb;
|
||||
|
||||
public ModelPylonMana() {
|
||||
|
||||
textureWidth = 64;
|
||||
textureHeight = 64;
|
||||
|
||||
//plates
|
||||
platef = new ModelRenderer(this, 36, 0);
|
||||
platef.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
platef.addBox(-3.0F, -4.0F, -8.0F, 6, 8, 2, 0.0F);
|
||||
plateb = new ModelRenderer(this, 36, 0);
|
||||
plateb.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
plateb.addBox(-3.0F, -4.0F, -8.0F, 6, 8, 2, 0.0F);
|
||||
setRotation(plateb, 0.0F, 3.141592653589793F, 0.0F);
|
||||
platel = new ModelRenderer(this, 36, 0);
|
||||
platel.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
platel.addBox(-3.0F, -4.0F, -8.0F, 6, 8, 2, 0.0F);
|
||||
setRotation(platel, 0.0F, 1.5707963267948966F, 0.0F);
|
||||
plater = new ModelRenderer(this, 36, 0);
|
||||
plater.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
plater.addBox(-3.0F, -4.0F, -8.0F, 6, 8, 2, 0.0F);
|
||||
setRotation(plater, 0.0F, -1.5707963267948966F, 0.0F);
|
||||
|
||||
//shards
|
||||
shardlf = new ModelRenderer(this, 0, 21);
|
||||
shardlf.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
shardlf.addBox(-5.0F, -9.0F, -5.0F, 5, 16, 3, 0.0F);
|
||||
shardrf = new ModelRenderer(this, 16, 21);
|
||||
shardrf.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
shardrf.addBox(2.0F, -12.0F, -5.0F, 3, 16, 3, 0.0F);
|
||||
shardlb = new ModelRenderer(this, 0, 0);
|
||||
shardlb.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
shardlb.addBox(-5.0F, -10.0F, 0.0F, 6, 16, 5, 0.0F);
|
||||
shardrb = new ModelRenderer(this, 22, 0);
|
||||
shardrb.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
shardrb.addBox(3.0F, -11.0F, 0.0F, 2, 16, 5, 0.0F);
|
||||
}
|
||||
|
||||
public void renderCrystal(PylonVariant variant) {
|
||||
float f = 1F / 16F;
|
||||
|
||||
shardlf.render(f);
|
||||
shardrf.render(f);
|
||||
shardlb.render(f);
|
||||
shardrb.render(f);
|
||||
}
|
||||
|
||||
public void renderRing(PylonVariant variant) {
|
||||
float f = 1F / 16F;
|
||||
|
||||
platef.render(f);
|
||||
plateb.render(f);
|
||||
platel.render(f);
|
||||
plater.render(f);
|
||||
}
|
||||
|
||||
private void setRotation(ModelRenderer model, float x, float y, float z) {
|
||||
|
||||
model.rotateAngleX = x;
|
||||
model.rotateAngleY = y;
|
||||
model.rotateAngleZ = z;
|
||||
}
|
||||
|
||||
public void renderGems(PylonVariant variant) {}
|
||||
|
||||
@Override
|
||||
public IBakedModel bake(IModelState state, VertexFormat format,
|
||||
Function<ResourceLocation, TextureAtlasSprite> bakedTextureGetter) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
/**
|
||||
* This class was created by <Vazkii>. It's distributed as
|
||||
* part of the Botania Mod. Get the Source Code in github:
|
||||
* https://github.com/Vazkii/Botania
|
||||
*
|
||||
* Botania is Open Source and distributed under the
|
||||
* Botania License: http://botaniamod.net/license.php
|
||||
*
|
||||
* File Created @ [Feb 18, 2014, 10:05:39 PM (GMT)]
|
||||
*/
|
||||
package vazkii.botania.client.model;
|
||||
|
||||
import java.util.function.Function;
|
||||
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.client.renderer.block.model.IBakedModel;
|
||||
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
|
||||
import net.minecraft.client.renderer.vertex.VertexFormat;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.client.model.IModel;
|
||||
import net.minecraftforge.common.model.IModelState;
|
||||
import vazkii.botania.api.state.enums.PylonVariant;
|
||||
|
||||
public class ModelPylonNatura extends ModelBase implements IModel {
|
||||
|
||||
final ModelRenderer platef;
|
||||
final ModelRenderer plateb;
|
||||
final ModelRenderer platel;
|
||||
final ModelRenderer plater;
|
||||
|
||||
final ModelRenderer shardlbt;
|
||||
final ModelRenderer shardrbt;
|
||||
final ModelRenderer shardlft;
|
||||
final ModelRenderer shardrft;
|
||||
|
||||
final ModelRenderer shardlbb;
|
||||
final ModelRenderer shardrbb;
|
||||
final ModelRenderer shardlfb;
|
||||
final ModelRenderer shardrfb;
|
||||
|
||||
public ModelPylonNatura() {
|
||||
|
||||
textureWidth = 64;
|
||||
textureHeight = 64;
|
||||
|
||||
//plates
|
||||
platef = new ModelRenderer(this, 36, 0);
|
||||
platef.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
platef.addBox(-4.0F, -4.0F, -8.0F, 8, 8, 2, 0.0F);
|
||||
plateb = new ModelRenderer(this, 36, 0);
|
||||
plateb.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
plateb.addBox(-4.0F, -4.0F, -8.0F, 8, 8, 2, 0.0F);
|
||||
setRotation(plateb, 0.0F, 3.141592653589793F, 0.0F);
|
||||
platel = new ModelRenderer(this, 36, 0);
|
||||
platel.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
platel.addBox(-4.0F, -4.0F, -8.0F, 8, 8, 2, 0.0F);
|
||||
setRotation(platel, 0.0F, 1.5707963267948966F, 0.0F);
|
||||
plater = new ModelRenderer(this, 36, 0);
|
||||
plater.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
plater.addBox(-4.0F, -4.0F, -8.0F, 8, 8, 2, 0.0F);
|
||||
setRotation(plater, 0.0F, -1.5707963267948966F, 0.0F);
|
||||
|
||||
//shards
|
||||
shardrft = new ModelRenderer(this, 16, 32);
|
||||
shardrft.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
shardrft.addBox(2.0F, -13.0F, -5.0F, 3, 7, 3, 0.0F);
|
||||
shardlbt = new ModelRenderer(this, 0, 0);
|
||||
shardlbt.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
shardlbt.addBox(-5.0F, -11.0F, 0.0F, 6, 9, 5, 0.0F);
|
||||
shardrbt = new ModelRenderer(this, 22, 0);
|
||||
shardrbt.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
shardrbt.addBox(3.0F, -12.0F, 0.0F, 2, 8, 5, 0.0F);
|
||||
shardlft = new ModelRenderer(this, 0, 32);
|
||||
shardlft.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
shardlft.addBox(-5.0F, -10.0F, -5.0F, 5, 10, 3, 0.0F);
|
||||
|
||||
shardrfb = new ModelRenderer(this, 16, 42);
|
||||
shardrfb.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
shardrfb.addBox(2.0F, -4.0F, -5.0F, 3, 9, 3, 0.0F);
|
||||
shardlbb = new ModelRenderer(this, 0, 14);
|
||||
shardlbb.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
shardlbb.addBox(-5.0F, 0.0F, 0.0F, 6, 7, 5, 0.0F);
|
||||
shardrbb = new ModelRenderer(this, 22, 13);
|
||||
shardrbb.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
shardrbb.addBox(3.0F, -2.0F, 0.0F, 2, 8, 5, 0.0F);
|
||||
shardlfb = new ModelRenderer(this, 0, 45);
|
||||
shardlfb.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
shardlfb.addBox(-5.0F, 2.0F, -5.0F, 5, 6, 3, 0.0F);
|
||||
}
|
||||
|
||||
public void renderCrystal(PylonVariant variant) {
|
||||
float f = 1F / 16F;
|
||||
|
||||
shardrft.render(f);
|
||||
shardlbt.render(f);
|
||||
shardrbt.render(f);
|
||||
shardlft.render(f);
|
||||
|
||||
shardrfb.render(f);
|
||||
shardlbb.render(f);
|
||||
shardrbb.render(f);
|
||||
shardlfb.render(f);
|
||||
}
|
||||
|
||||
public void renderRing(PylonVariant variant) {
|
||||
float f = 1F / 16F;
|
||||
|
||||
platef.render(f);
|
||||
plateb.render(f);
|
||||
platel.render(f);
|
||||
plater.render(f);
|
||||
}
|
||||
|
||||
private void setRotation(ModelRenderer model, float x, float y, float z) {
|
||||
|
||||
model.rotateAngleX = x;
|
||||
model.rotateAngleY = y;
|
||||
model.rotateAngleZ = z;
|
||||
}
|
||||
|
||||
public void renderGems(PylonVariant variant) {}
|
||||
|
||||
@Override
|
||||
public IBakedModel bake(IModelState state, VertexFormat format,
|
||||
Function<ResourceLocation, TextureAtlasSprite> bakedTextureGetter) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,78 +15,76 @@ import net.minecraft.client.model.ModelRenderer;
|
||||
|
||||
public class ModelSpreader extends ModelBase {
|
||||
|
||||
final ModelRenderer cubeSide1;
|
||||
final ModelRenderer cubeSide2;
|
||||
final ModelRenderer cubeSide3;
|
||||
final ModelRenderer cubeSide4;
|
||||
final ModelRenderer cubeSide5;
|
||||
final ModelRenderer cubeHole1;
|
||||
final ModelRenderer cubeHole2;
|
||||
final ModelRenderer cubeHole3;
|
||||
final ModelRenderer cubeHole4;
|
||||
final ModelRenderer cubeInside;
|
||||
final ModelRenderer top;
|
||||
final ModelRenderer sideL;
|
||||
final ModelRenderer sideR;
|
||||
final ModelRenderer bottom;
|
||||
final ModelRenderer back;
|
||||
|
||||
final ModelRenderer holeT;
|
||||
final ModelRenderer holeL;
|
||||
final ModelRenderer holeR;
|
||||
final ModelRenderer holeB;
|
||||
|
||||
final ModelRenderer inside;
|
||||
|
||||
public ModelSpreader() {
|
||||
|
||||
textureWidth = 64;
|
||||
textureHeight = 32;
|
||||
|
||||
cubeSide1 = new ModelRenderer(this, 0, 0);
|
||||
cubeSide1.addBox(0F, 0F, 0F, 14, 1, 14);
|
||||
cubeSide1.setRotationPoint(-7F, 22F, -7F);
|
||||
cubeSide1.setTextureSize(64, 32);
|
||||
cubeSide2 = new ModelRenderer(this, 0, 0);
|
||||
cubeSide2.addBox(0F, 0F, 0F, 14, 13, 1);
|
||||
cubeSide2.setRotationPoint(-7F, 9F, -7F);
|
||||
cubeSide2.setTextureSize(64, 32);
|
||||
cubeSide3 = new ModelRenderer(this, 0, 0);
|
||||
cubeSide3.addBox(0F, 0F, 0F, 1, 13, 13);
|
||||
cubeSide3.setRotationPoint(-7F, 9F, -6F);
|
||||
cubeSide3.setTextureSize(64, 32);
|
||||
cubeSide4 = new ModelRenderer(this, 0, 0);
|
||||
cubeSide4.addBox(0F, 0F, 0F, 1, 13, 13);
|
||||
cubeSide4.setRotationPoint(6F, 9F, -6F);
|
||||
cubeSide4.setTextureSize(64, 32);
|
||||
cubeSide5 = new ModelRenderer(this, 0, 0);
|
||||
cubeSide5.addBox(0F, 0F, 0F, 12, 1, 13);
|
||||
cubeSide5.setRotationPoint(-6F, 9F, -6F);
|
||||
cubeSide5.setTextureSize(64, 32);
|
||||
cubeHole1 = new ModelRenderer(this, 0, 0);
|
||||
cubeHole1.addBox(0F, 0F, 0F, 4, 12, 1);
|
||||
cubeHole1.setRotationPoint(2F, 10F, 6F);
|
||||
cubeHole1.setTextureSize(64, 32);
|
||||
cubeHole2 = new ModelRenderer(this, 0, 0);
|
||||
cubeHole2.addBox(0F, 0F, 0F, 4, 12, 1);
|
||||
cubeHole2.setRotationPoint(-6F, 10F, 6F);
|
||||
cubeHole2.setTextureSize(64, 32);
|
||||
cubeHole3 = new ModelRenderer(this, 0, 0);
|
||||
cubeHole3.addBox(0F, 0F, 0F, 4, 4, 1);
|
||||
cubeHole3.setRotationPoint(-2F, 18F, 6F);
|
||||
cubeHole3.setTextureSize(64, 32);
|
||||
cubeHole4 = new ModelRenderer(this, 0, 0);
|
||||
cubeHole4.addBox(0F, 0F, 0F, 4, 4, 1);
|
||||
cubeHole4.setRotationPoint(-2F, 10F, 6F);
|
||||
cubeHole4.setTextureSize(64, 32);
|
||||
cubeInside = new ModelRenderer(this, 30, 17);
|
||||
cubeInside.addBox(0F, 0F, 0F, 6, 6, 6);
|
||||
cubeInside.setRotationPoint(-3F, 13F, -3F);
|
||||
cubeInside.setTextureSize(64, 32);
|
||||
textureHeight = 64;
|
||||
|
||||
top = new ModelRenderer(this, 0, 0);
|
||||
top.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
top.addBox(-7.0F, -7.0F, -7.0F, 14, 1, 14, 0.0F);
|
||||
sideL = new ModelRenderer(this, 0, 30);
|
||||
sideL.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
sideL.addBox(6.0F, -6.0F, -6.0F, 1, 12, 12, 0.0F);
|
||||
sideR = new ModelRenderer(this, 0, 30);
|
||||
sideR.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
sideR.addBox(-7.0F, -6.0F, -6.0F, 1, 12, 12, 0.0F);
|
||||
back = new ModelRenderer(this, 0, 29);
|
||||
back.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
back.addBox(-7.0F, -6.0F, -7.0F, 14, 12, 1, 0.0F);
|
||||
bottom = new ModelRenderer(this, 0, 15);
|
||||
bottom.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
bottom.addBox(-7.0F, 6.0F, -7.0F, 14, 1, 14, 0.0F);
|
||||
|
||||
holeT = new ModelRenderer(this, 0, 54);
|
||||
holeT.setRotationPoint(0.0F, 10.0F, 6.0F);
|
||||
holeT.addBox(-7.0F, 0.0F, 0.0F, 14, 4, 1, 0.0F);
|
||||
holeL = new ModelRenderer(this, 30, 54);
|
||||
holeL.setRotationPoint(2.0F, 10.0F, 6.0F);
|
||||
holeL.addBox(0.0F, 4.0F, 0.0F, 5, 4, 1, 0.0F);
|
||||
holeR = new ModelRenderer(this, 30, 59);
|
||||
holeR.setRotationPoint(0.0F, 10.0F, 6.0F);
|
||||
holeR.addBox(-7.0F, 4.0F, 0.0F, 5, 4, 1, 0.0F);
|
||||
holeB = new ModelRenderer(this, 0, 59);
|
||||
holeB.setRotationPoint(0.0F, 18.0F, 6.0F);
|
||||
holeB.addBox(-7.0F, 0.0F, 0.0F, 14, 4, 1, 0.0F);
|
||||
|
||||
inside = new ModelRenderer(this, 30, 30);
|
||||
inside.setRotationPoint(0.0F, 16.0F, 0.0F);
|
||||
inside.addBox(-3.0F, -3.0F, -3.0F, 6, 6, 6, 0.0F);
|
||||
}
|
||||
|
||||
public void render() {
|
||||
float f = 1F / 16F;
|
||||
cubeSide1.render(f);
|
||||
cubeSide2.render(f);
|
||||
cubeSide3.render(f);
|
||||
cubeSide4.render(f);
|
||||
cubeSide5.render(f);
|
||||
cubeHole1.render(f);
|
||||
cubeHole2.render(f);
|
||||
cubeHole3.render(f);
|
||||
cubeHole4.render(f);
|
||||
|
||||
top.render(f);
|
||||
sideL.render(f);
|
||||
sideR.render(f);
|
||||
back.render(f);
|
||||
bottom.render(f);
|
||||
|
||||
holeT.render(f);
|
||||
holeL.render(f);
|
||||
holeR.render(f);
|
||||
holeB.render(f);
|
||||
}
|
||||
|
||||
public void renderCube() {
|
||||
float f = 1F / 16F;
|
||||
cubeInside.render(f);
|
||||
|
||||
inside.render(f);
|
||||
}
|
||||
}
|
||||
@@ -18,8 +18,8 @@ public class ModelTinyPotato extends ModelBase {
|
||||
final ModelRenderer potato;
|
||||
|
||||
public ModelTinyPotato() {
|
||||
textureWidth = 64;
|
||||
textureHeight = 32;
|
||||
textureWidth = 16;
|
||||
textureHeight = 16;
|
||||
|
||||
potato = new ModelRenderer(this, 0, 0);
|
||||
potato.addBox(0F, 0F, 0F, 4, 6, 4);
|
||||
|
||||
@@ -10,217 +10,232 @@
|
||||
*/
|
||||
package vazkii.botania.client.model.armor;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.inventory.EntityEquipmentSlot;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
public class ModelArmorElementium extends ModelArmor {
|
||||
|
||||
private final ModelRenderer helmAnchor;
|
||||
private final ModelRenderer helm;
|
||||
public final ModelRenderer body;
|
||||
private final ModelRenderer armR;
|
||||
private final ModelRenderer helmFairy;
|
||||
private final ModelRenderer helmWing1r;
|
||||
private final ModelRenderer helmWing2l;
|
||||
private final ModelRenderer helmWing1l;
|
||||
private final ModelRenderer helmWing2r;
|
||||
|
||||
private final ModelRenderer bodyAnchor;
|
||||
private final ModelRenderer bodyTop;
|
||||
private final ModelRenderer bodyBottom;
|
||||
|
||||
private final ModelRenderer armLAnchor;
|
||||
private final ModelRenderer armL;
|
||||
public final ModelRenderer belt;
|
||||
private final ModelRenderer bootR;
|
||||
private final ModelRenderer bootL;
|
||||
private final ModelRenderer helm1;
|
||||
private final ModelRenderer helm2;
|
||||
private final ModelRenderer helm3;
|
||||
private final ModelRenderer fairy;
|
||||
private final ModelRenderer helmWing1;
|
||||
private final ModelRenderer helmWing2;
|
||||
private final ModelRenderer helmWing3;
|
||||
private final ModelRenderer helmWing4;
|
||||
private final ModelRenderer body2;
|
||||
private final ModelRenderer armRpauldron;
|
||||
private final ModelRenderer wing1;
|
||||
private final ModelRenderer wing2;
|
||||
private final ModelRenderer armLpauldron;
|
||||
private final ModelRenderer wing1_1;
|
||||
private final ModelRenderer wing2_1;
|
||||
private final ModelRenderer legR;
|
||||
private final ModelRenderer legL;
|
||||
private final ModelRenderer bootR1;
|
||||
private final ModelRenderer wing1_2;
|
||||
private final ModelRenderer wing2_2;
|
||||
private final ModelRenderer bootL1;
|
||||
private final ModelRenderer wing1_3;
|
||||
private final ModelRenderer wing2_3;
|
||||
|
||||
private final ModelRenderer armLwing1;
|
||||
private final ModelRenderer armLwing2;
|
||||
|
||||
private final ModelRenderer armRAnchor;
|
||||
private final ModelRenderer armR;
|
||||
private final ModelRenderer armRpauldron;
|
||||
private final ModelRenderer armRwing1;
|
||||
private final ModelRenderer armRwing2;
|
||||
|
||||
private final ModelRenderer pantsAnchor;
|
||||
private final ModelRenderer belt;
|
||||
private final ModelRenderer legL;
|
||||
private final ModelRenderer legR;
|
||||
|
||||
private final ModelRenderer bootL;
|
||||
private final ModelRenderer bootLwing1;
|
||||
private final ModelRenderer bootLwing2;
|
||||
private final ModelRenderer bootR;
|
||||
private final ModelRenderer bootRwing1;
|
||||
private final ModelRenderer bootRwing2;
|
||||
|
||||
public ModelArmorElementium(EntityEquipmentSlot slot) {
|
||||
super(slot);
|
||||
|
||||
textureWidth = 64;
|
||||
textureHeight = 128;
|
||||
float s = 0.6F;
|
||||
fairy = new ModelRenderer(this, 34, 32);
|
||||
fairy.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
fairy.addBox(-2.0F, -8.5F, -7.0F, 4, 4, 4, s);
|
||||
setRotateAngle(fairy, -0.17453292519943295F, 0.0F, 0.0F);
|
||||
helm3 = new ModelRenderer(this, 0, 32);
|
||||
helm3.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
helm3.addBox(-1.0F, -5.5F, -5.5F, 2, 3, 1, s);
|
||||
setRotateAngle(helm3, -0.17453292519943295F, 0.0F, 0.0F);
|
||||
wing1_2 = new ModelRenderer(this, 56, 43);
|
||||
wing1_2.mirror = true;
|
||||
wing1_2.setRotationPoint(-2.5F, 9.0F, 0.0F);
|
||||
wing1_2.addBox(0.5F, -2.0F, 0.0F, 0, 2, 3, s);
|
||||
setRotateAngle(wing1_2, 0.2617993877991494F, -0.7853981633974483F, -0.2617993877991494F);
|
||||
helm1 = new ModelRenderer(this, 50, 32);
|
||||
helm1.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
helm1.addBox(-4.0F, -5.0F, -4.5F, 1, 5, 4, s);
|
||||
legL = new ModelRenderer(this, 12, 79);
|
||||
legL.mirror = true;
|
||||
legL.setRotationPoint(1.9F, 12.0F, 0.0F);
|
||||
legL.addBox(-2.0F, 0.0F, -2.0F, 4, 6, 4, s);
|
||||
setRotateAngle(legL, 0.0F, 0.0F, 0F);
|
||||
armL = new ModelRenderer(this, 0, 79);
|
||||
armL.mirror = true;
|
||||
armL.setRotationPoint(5.0F, 2.0F, -0.0F);
|
||||
armL.addBox(1.5F, 6.0F, -2.0F, 2, 4, 4, s);
|
||||
setRotateAngle(armL, 0.0F, 0.0F, 0F);
|
||||
armRpauldron = new ModelRenderer(this, 0, 67);
|
||||
armRpauldron.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
armRpauldron.addBox(-4.0F, -2.5F, -3.0F, 5, 6, 6, s);
|
||||
legR = new ModelRenderer(this, 12, 79);
|
||||
legR.setRotationPoint(-1.9F, 12.0F, 0.0F);
|
||||
legR.addBox(-2.0F, 0.0F, -2.0F, 4, 6, 4, s);
|
||||
setRotateAngle(legR, 0.0F, 0.0F, 0F);
|
||||
helmWing2 = new ModelRenderer(this, 46, 45);
|
||||
helmWing2.mirror = true;
|
||||
helmWing2.setRotationPoint(-4.0F, -4.0F, -1.0F);
|
||||
helmWing2.addBox(-0.5F, 0.0F, 0.0F, 1, 3, 4, s);
|
||||
setRotateAngle(helmWing2, -0.2617993877991494F, -0.2617993877991494F, 0.2617993877991494F);
|
||||
bootL1 = new ModelRenderer(this, 12, 79);
|
||||
bootL1.mirror = true;
|
||||
bootL1.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
bootL1.addBox(-2.0F, 7.0F, -2.0F, 4, 1, 4, s);
|
||||
armR = new ModelRenderer(this, 0, 79);
|
||||
armR.setRotationPoint(-5.0F, 2.0F, 0.0F);
|
||||
armR.addBox(-3.5F, 6.0F, -2.0F, 2, 4, 4, s);
|
||||
setRotateAngle(armR, 0.0F, 0.0F, 0F);
|
||||
bootR1 = new ModelRenderer(this, 12, 79);
|
||||
bootR1.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
bootR1.addBox(-2.0F, 7.0F, -2.0F, 4, 1, 4, s);
|
||||
bootR = new ModelRenderer(this, 12, 79);
|
||||
bootR.setRotationPoint(-1.9F, 12.0F, 0.0F);
|
||||
bootR.addBox(-2.0F, 8.0F, -3.0F, 4, 4, 5, s);
|
||||
setRotateAngle(bootR, 0.0F, 0.0F, 0F);
|
||||
wing2_1 = new ModelRenderer(this, 56, 42);
|
||||
wing2_1.setRotationPoint(4.5F, 0.0F, 0.0F);
|
||||
wing2_1.addBox(0.0F, 0.0F, -0.5F, 0, 2, 3, s);
|
||||
setRotateAngle(wing2_1, 0.08726646259971647F, 0.7853981633974483F, 0.2617993877991494F);
|
||||
wing2_2 = new ModelRenderer(this, 56, 44);
|
||||
wing2_2.mirror = true;
|
||||
wing2_2.setRotationPoint(-2.5F, 9.0F, 0.0F);
|
||||
wing2_2.addBox(0.5F, 0.0F, 0.0F, 0, 1, 2, s);
|
||||
setRotateAngle(wing2_2, 0.08726646259971647F, -0.7853981633974483F, -0.2617993877991494F);
|
||||
bootL = new ModelRenderer(this, 12, 79);
|
||||
bootL.mirror = true;
|
||||
bootL.setRotationPoint(1.9F, 12.0F, 0.0F);
|
||||
bootL.addBox(-2.0F, 8.0F, -3.0F, 4, 4, 5, s);
|
||||
setRotateAngle(bootL, 0.0F, 0.0F, 0F);
|
||||
body = new ModelRenderer(this, 0, 44);
|
||||
body.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
body.addBox(-4.5F, 0.0F, -4.0F, 9, 5, 7, s);
|
||||
setRotateAngle(body, 0.08726646259971647F, 0.0F, 0.0F);
|
||||
belt = new ModelRenderer(this, 22, 56);
|
||||
belt.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
belt.addBox(-4.5F, 9.5F, -3.0F, 9, 3, 5, s);
|
||||
helm = new ModelRenderer(this, 0, 32);
|
||||
helm.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
helm.addBox(-4.0F, -8.0F, -4.5F, 8, 3, 9, s);
|
||||
setRotateAngle(helm, 0.08726646259971647F, 0.0F, 0.0F);
|
||||
helmWing4 = new ModelRenderer(this, 46, 45);
|
||||
helmWing4.setRotationPoint(4.0F, -4.0F, -1.0F);
|
||||
helmWing4.addBox(-0.5F, 0.0F, 0.0F, 1, 3, 4, s);
|
||||
setRotateAngle(helmWing4, -0.2617993877991494F, 0.2617993877991494F, -0.2617993877991494F);
|
||||
armLpauldron = new ModelRenderer(this, 0, 67);
|
||||
armLpauldron.mirror = true;
|
||||
armLpauldron.setRotationPoint(0.0F, 0.0F, -0.0F);
|
||||
armLpauldron.addBox(-1.0F, -2.5F, -3.0F, 5, 6, 6, s);
|
||||
wing1_1 = new ModelRenderer(this, 56, 41);
|
||||
wing1_1.setRotationPoint(4.5F, 0.0F, 0.0F);
|
||||
wing1_1.addBox(0.0F, -3.0F, -0.5F, 0, 3, 4, s);
|
||||
setRotateAngle(wing1_1, 0.2617993877991494F, 0.7853981633974483F, 0.2617993877991494F);
|
||||
helm2 = new ModelRenderer(this, 50, 32);
|
||||
helm2.mirror = true;
|
||||
helm2.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
helm2.addBox(3.0F, -5.0F, -4.5F, 1, 5, 4, s);
|
||||
wing2_3 = new ModelRenderer(this, 56, 44);
|
||||
wing2_3.setRotationPoint(2.5F, 9.0F, 0.0F);
|
||||
wing2_3.addBox(0.0F, 0.0F, -0.5F, 0, 1, 2, s);
|
||||
setRotateAngle(wing2_3, 0.08726646259971647F, 0.7853981633974483F, 0.2617993877991494F);
|
||||
wing1 = new ModelRenderer(this, 56, 41);
|
||||
wing1.mirror = true;
|
||||
wing1.setRotationPoint(-4.5F, 0.0F, 0.0F);
|
||||
wing1.addBox(0.5F, -3.0F, 0.0F, 0, 3, 4, s);
|
||||
setRotateAngle(wing1, 0.2617993877991494F, -0.7853981633974483F, -0.2617993877991494F);
|
||||
body2 = new ModelRenderer(this, 0, 56);
|
||||
body2.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
body2.addBox(-3.0F, 4.0F, -3.0F, 6, 6, 5, s);
|
||||
setRotateAngle(body2, -0.08726646259971647F, 0.0F, 0.0F);
|
||||
helmWing3 = new ModelRenderer(this, 32, 45);
|
||||
helmWing3.setRotationPoint(4.0F, -4.0F, -1.0F);
|
||||
helmWing3.addBox(-0.5F, -5.0F, 0.0F, 1, 5, 6, s);
|
||||
setRotateAngle(helmWing3, 0.2617993877991494F, 0.5235987755982988F, 0.08726646259971647F);
|
||||
helmWing1 = new ModelRenderer(this, 32, 45);
|
||||
helmWing1.mirror = true;
|
||||
helmWing1.setRotationPoint(-4.0F, -4.0F, -1.0F);
|
||||
helmWing1.addBox(-0.5F, -5.0F, 0.0F, 1, 5, 6, s);
|
||||
setRotateAngle(helmWing1, 0.2617993877991494F, -0.5235987755982988F, -0.08726646259971647F);
|
||||
wing2 = new ModelRenderer(this, 56, 42);
|
||||
wing2.mirror = true;
|
||||
wing2.setRotationPoint(-4.5F, 0.0F, 0.0F);
|
||||
wing2.addBox(0.5F, 0.0F, 0.0F, 0, 2, 3, s);
|
||||
setRotateAngle(wing2, 0.08726646259971647F, -0.7853981633974483F, -0.2617993877991494F);
|
||||
wing1_3 = new ModelRenderer(this, 56, 43);
|
||||
wing1_3.setRotationPoint(2.5F, 9.0F, 0.0F);
|
||||
wing1_3.addBox(0.0F, -2.0F, -0.5F, 0, 2, 3, s);
|
||||
setRotateAngle(wing1_3, 0.2617993877991494F, 0.7853981633974483F, 0.2617993877991494F);
|
||||
helm.addChild(fairy);
|
||||
helm.addChild(helm3);
|
||||
bootR.addChild(wing1_2);
|
||||
helm.addChild(helm1);
|
||||
belt.addChild(legL);
|
||||
armR.addChild(armRpauldron);
|
||||
belt.addChild(legR);
|
||||
helm.addChild(helmWing2);
|
||||
bootL.addChild(bootL1);
|
||||
bootR.addChild(bootR1);
|
||||
armLpauldron.addChild(wing2_1);
|
||||
bootR.addChild(wing2_2);
|
||||
helm.addChild(helmWing4);
|
||||
armL.addChild(armLpauldron);
|
||||
armLpauldron.addChild(wing1_1);
|
||||
helm.addChild(helm2);
|
||||
bootL.addChild(wing2_3);
|
||||
armRpauldron.addChild(wing1);
|
||||
body.addChild(body2);
|
||||
helm.addChild(helmWing3);
|
||||
helm.addChild(helmWing1);
|
||||
armRpauldron.addChild(wing2);
|
||||
bootL.addChild(wing1_3);
|
||||
this.textureWidth = 64;
|
||||
this.textureHeight = 128;
|
||||
float s = 0.01F;
|
||||
|
||||
//helm
|
||||
this.helmAnchor = new ModelRenderer(this, 0, 0);
|
||||
this.helmAnchor.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.helmAnchor.addBox(-1.0F, -2.0F, 0.0F, 2, 2, 2, s);
|
||||
this.helm = new ModelRenderer(this, 0, 0);
|
||||
this.helm.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.helm.addBox(-4.5F, -9.0F, -4.5F, 9, 9, 9, s);
|
||||
this.helmFairy = new ModelRenderer(this, 36, 11);
|
||||
this.helmFairy.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.helmFairy.addBox(-2.5F, -10.0F, -5.5F, 5, 5, 5, s);
|
||||
this.helmWing1l = new ModelRenderer(this, 36, 0);
|
||||
this.helmWing1l.mirror = true;
|
||||
this.helmWing1l.setRotationPoint(4.5F, -6.0F, -0.5F);
|
||||
this.helmWing1l.addBox(-1.0F, -5.0F, 0.0F, 1, 5, 6, s);
|
||||
this.setRotateAngle(helmWing1l, 0.2617993877991494F, 0.5235987755982988F, 0.2617993877991494F);
|
||||
this.helmWing2l = new ModelRenderer(this, 50, 0);
|
||||
this.helmWing2l.setRotationPoint(4.5F, -6.0F, -0.5F);
|
||||
this.helmWing2l.addBox(-1.0F, 0.0F, 0.0F, 1, 3, 4, s);
|
||||
this.setRotateAngle(helmWing2l, -0.2617993877991494F, 0.2617993877991494F, -0.2617993877991494F);
|
||||
this.helmWing1r = new ModelRenderer(this, 36, 0);
|
||||
this.helmWing1r.setRotationPoint(-4.5F, -6.0F, -0.5F);
|
||||
this.helmWing1r.addBox(0.0F, -5.0F, 0.0F, 1, 5, 6, s);
|
||||
this.setRotateAngle(helmWing1r, 0.2617993877991494F, -0.5235987755982988F, -0.2617993877991494F);
|
||||
this.helmWing2r = new ModelRenderer(this, 50, 0);
|
||||
this.helmWing2r.mirror = true;
|
||||
this.helmWing2r.setRotationPoint(-4.5F, -6.0F, -0.5F);
|
||||
this.helmWing2r.addBox(0.0F, 0.0F, 0.0F, 1, 3, 4, s);
|
||||
this.setRotateAngle(helmWing2r, -0.2617993877991494F, -0.2617993877991494F, 0.2617993877991494F);
|
||||
|
||||
//body
|
||||
this.bodyAnchor = new ModelRenderer(this, 0, 0);
|
||||
this.bodyAnchor.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.bodyAnchor.addBox(-1.0F, 0.0F, -1.0F, 2, 2, 2, s);
|
||||
this.bodyTop = new ModelRenderer(this, 0, 19);
|
||||
this.bodyTop.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.bodyTop.addBox(-4.5F, 0.0F, -3.0F, 9, 6, 6, s);
|
||||
this.bodyBottom = new ModelRenderer(this, 0, 31);
|
||||
this.bodyBottom.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.bodyBottom.addBox(-3.5F, 5.0F, -2.5F, 7, 3, 5, s);
|
||||
|
||||
//armL
|
||||
this.armLAnchor = new ModelRenderer(this, 0, 0);
|
||||
this.armLAnchor.mirror = true;
|
||||
this.armLAnchor.setRotationPoint(4.0F, 2.0F, 0.0F);
|
||||
this.armLAnchor.addBox(0.0F, -1.0F, -1.0F, 2, 2, 2, s);
|
||||
this.armL = new ModelRenderer(this, 24, 40);
|
||||
this.armL.mirror = true;
|
||||
this.armL.setRotationPoint(0.0F, 0.0F, -0.0F);
|
||||
this.armL.addBox(0.5F, 4.5F, -2.49F, 3, 6, 5, s);
|
||||
this.armLpauldron = new ModelRenderer(this, 0, 40);
|
||||
this.armLpauldron.mirror = true;
|
||||
this.armLpauldron.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.armLpauldron.addBox(-0.5F, -3.0F, -3.0F, 6, 7, 6, s);
|
||||
this.armLwing1 = new ModelRenderer(this, 40, 35);
|
||||
this.armLwing1.setRotationPoint(6.0F, -1.0F, 0.0F);
|
||||
this.armLwing1.addBox(0.0F, -4.0F, 0.0F, 0, 4, 5, s);
|
||||
this.setRotateAngle(armLwing1, 0.2617993877991494F, 0.5235987755982988F, 0.2617993877991494F);
|
||||
this.armLwing2 = new ModelRenderer(this, 40, 40);
|
||||
this.armLwing2.setRotationPoint(6.0F, -1.0F, 0.0F);
|
||||
this.armLwing2.addBox(0.0F, 0.0F, 0.0F, 0, 3, 4, s);
|
||||
this.setRotateAngle(armLwing2, -0.2617993877991494F, 0.2617993877991494F, -0.2617993877991494F);
|
||||
|
||||
//armR
|
||||
this.armRAnchor = new ModelRenderer(this, 0, 0);
|
||||
this.armRAnchor.mirror = true;
|
||||
this.armRAnchor.setRotationPoint(-4.0F, 2.0F, 0.0F);
|
||||
this.armRAnchor.addBox(-2.0F, -1.0F, -1.0F, 2, 2, 2, s);
|
||||
this.armR = new ModelRenderer(this, 24, 40);
|
||||
this.armR.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.armR.addBox(-3.5F, 4.5F, -2.51F, 3, 6, 5, s);
|
||||
this.armRpauldron = new ModelRenderer(this, 0, 40);
|
||||
this.armRpauldron.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.armRpauldron.addBox(-5.5F, -3.0F, -3.0F, 6, 7, 6, s);
|
||||
this.setRotateAngle(armRpauldron, 0.0F, 0.0F, 0.0017453292519943296F);
|
||||
this.armRwing1 = new ModelRenderer(this, 40, 35);
|
||||
this.armRwing1.mirror = true;
|
||||
this.armRwing1.setRotationPoint(-6.5F, -1.0F, 0.0F);
|
||||
this.armRwing1.addBox(0.0F, -4.0F, 0.0F, 0, 4, 5, s);
|
||||
this.setRotateAngle(armRwing1, 0.2617993877991494F, -0.5235987755982988F, -0.2617993877991494F);
|
||||
this.armRwing2 = new ModelRenderer(this, 40, 40);
|
||||
this.armRwing2.mirror = true;
|
||||
this.armRwing2.setRotationPoint(-6.5F, -1.0F, 0.0F);
|
||||
this.armRwing2.addBox(0.0F, 0.0F, 0.0F, 0, 3, 4, s);
|
||||
this.setRotateAngle(armRwing2, -0.2617993877991494F, -0.2617993877991494F, 0.2617993877991494F);
|
||||
|
||||
//pants
|
||||
this.pantsAnchor = new ModelRenderer(this, 0, 0);
|
||||
this.pantsAnchor.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.pantsAnchor.addBox(-1.0F, 0.0F, -1.0F, 2, 2, 2, s);
|
||||
this.belt = new ModelRenderer(this, 0, 53);
|
||||
this.belt.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.belt.addBox(-4.5F, 8.0F, -3.0F, 9, 5, 6, s);
|
||||
this.legL = new ModelRenderer(this, 0, 64);
|
||||
this.legL.mirror = true;
|
||||
this.legL.setRotationPoint(1.9F, 12.0F, 0.0F);
|
||||
this.legL.addBox(-2.39F, 0.0F, -2.49F, 5, 6, 5, s);
|
||||
this.legR = new ModelRenderer(this, 0, 64);
|
||||
this.legR.setRotationPoint(-1.9F, 12.0F, 0.0F);
|
||||
this.legR.addBox(-2.61F, 0.0F, -2.51F, 5, 6, 5, s);
|
||||
|
||||
//boots
|
||||
this.bootL = new ModelRenderer(this, 0, 75);
|
||||
this.bootL.mirror = true;
|
||||
this.bootL.setRotationPoint(1.9F, 12.0F, 0.0F);
|
||||
this.bootL.addBox(-2.39F, 8.5F, -2.49F, 5, 5, 5, s);
|
||||
this.bootLwing1 = new ModelRenderer(this, 40, 40);
|
||||
this.bootLwing1.setRotationPoint(2.5F, 8.5F, 0.0F);
|
||||
this.bootLwing1.addBox(0.0F, -3.0F, 0.0F, 0, 3, 4, s);
|
||||
this.setRotateAngle(bootLwing1, 0.2617993877991494F, 0.5235987755982988F, 0.2617993877991494F);
|
||||
this.bootLwing2 = new ModelRenderer(this, 40, 44);
|
||||
this.bootLwing2.setRotationPoint(2.5F, 8.5F, 0.0F);
|
||||
this.bootLwing2.addBox(0.0F, 0.0F, 0.0F, 0, 2, 3, s);
|
||||
this.setRotateAngle(bootLwing2, -0.2617993877991494F, 0.2617993877991494F, -0.2617993877991494F);
|
||||
this.bootR = new ModelRenderer(this, 0, 75);
|
||||
this.bootR.setRotationPoint(-1.9F, 12.0F, 0.0F);
|
||||
this.bootR.addBox(-2.61F, 8.5F, -2.51F, 5, 5, 5, s);
|
||||
this.bootRwing1 = new ModelRenderer(this, 40, 40);
|
||||
this.bootRwing1.mirror = true;
|
||||
this.bootRwing1.setRotationPoint(-2.6F, 8.5F, 0.0F);
|
||||
this.bootRwing1.addBox(0.0F, -3.0F, 0.0F, 0, 3, 4, s);
|
||||
this.setRotateAngle(bootRwing1, 0.2617993877991494F, -0.5235987755982988F, -0.2617993877991494F);
|
||||
this.bootRwing2 = new ModelRenderer(this, 40, 44);
|
||||
this.bootRwing2.mirror = true;
|
||||
this.bootRwing2.setRotationPoint(-2.5F, 8.5F, 0.0F);
|
||||
this.bootRwing2.addBox(0.0F, 0.0F, 0.0F, 0, 2, 3, s);
|
||||
this.setRotateAngle(bootRwing2, -0.2617993877991494F, -0.2617993877991494F, 0.2617993877991494F);
|
||||
|
||||
//hierarchy
|
||||
this.helmAnchor.addChild(this.helm);
|
||||
this.helm.addChild(this.helmFairy);
|
||||
this.helm.addChild(this.helmWing1l);
|
||||
this.helm.addChild(this.helmWing2l);
|
||||
this.helm.addChild(this.helmWing1r);
|
||||
this.helm.addChild(this.helmWing2r);
|
||||
|
||||
this.bodyAnchor.addChild(this.bodyTop);
|
||||
this.bodyTop.addChild(this.bodyBottom);
|
||||
this.armLAnchor.addChild(this.armL);
|
||||
this.armL.addChild(this.armLpauldron);
|
||||
this.armLpauldron.addChild(this.armLwing1);
|
||||
this.armLpauldron.addChild(this.armLwing2);
|
||||
this.armRAnchor.addChild(this.armR);
|
||||
this.armR.addChild(this.armRpauldron);
|
||||
this.armRpauldron.addChild(this.armRwing1);
|
||||
this.armRpauldron.addChild(this.armRwing2);
|
||||
|
||||
this.pantsAnchor.addChild(this.belt);
|
||||
this.belt.addChild(this.legL);
|
||||
this.belt.addChild(this.legR);;
|
||||
|
||||
this.bootL.addChild(bootLwing1);
|
||||
this.bootL.addChild(bootLwing2);
|
||||
this.bootR.addChild(bootRwing1);
|
||||
this.bootR.addChild(bootRwing2);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void render(@Nonnull Entity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scale) {
|
||||
helm.showModel = slot == EntityEquipmentSlot.HEAD;
|
||||
body.showModel = slot == EntityEquipmentSlot.CHEST;
|
||||
armR.showModel = slot == EntityEquipmentSlot.CHEST;
|
||||
armL.showModel = slot == EntityEquipmentSlot.CHEST;
|
||||
|
||||
helmAnchor.showModel = slot == EntityEquipmentSlot.HEAD;
|
||||
bodyAnchor.showModel = slot == EntityEquipmentSlot.CHEST;
|
||||
armRAnchor.showModel = slot == EntityEquipmentSlot.CHEST;
|
||||
armLAnchor.showModel = slot == EntityEquipmentSlot.CHEST;
|
||||
legR.showModel = slot == EntityEquipmentSlot.LEGS;
|
||||
legL.showModel = slot == EntityEquipmentSlot.LEGS;
|
||||
bootL.showModel = slot == EntityEquipmentSlot.FEET;
|
||||
bootR.showModel = slot == EntityEquipmentSlot.FEET;
|
||||
bipedHeadwear.showModel = false;
|
||||
|
||||
bipedHead = helm;
|
||||
bipedBody = body;
|
||||
bipedRightArm = armR;
|
||||
bipedLeftArm = armL;
|
||||
bipedHead = helmAnchor;
|
||||
bipedBody = bodyAnchor;
|
||||
bipedRightArm = armRAnchor;
|
||||
bipedLeftArm = armLAnchor;
|
||||
if(slot == EntityEquipmentSlot.LEGS) {
|
||||
bipedBody = pantsAnchor;
|
||||
bipedRightLeg = legR;
|
||||
bipedLeftLeg = legL;
|
||||
} else {
|
||||
|
||||
@@ -10,146 +10,186 @@
|
||||
*/
|
||||
package vazkii.botania.client.model.armor;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.inventory.EntityEquipmentSlot;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
public class ModelArmorManasteel extends ModelArmor {
|
||||
|
||||
private final ModelRenderer helmAnchor;
|
||||
private final ModelRenderer helm;
|
||||
public final ModelRenderer body;
|
||||
private final ModelRenderer armR;
|
||||
private final ModelRenderer helmTop;
|
||||
private final ModelRenderer helmCrystal;
|
||||
|
||||
private final ModelRenderer bodyAnchor;
|
||||
private final ModelRenderer bodyTop;
|
||||
private final ModelRenderer bodyBottom;
|
||||
|
||||
private final ModelRenderer armLAnchor;
|
||||
private final ModelRenderer armL;
|
||||
public final ModelRenderer belt;
|
||||
private final ModelRenderer bootR;
|
||||
private final ModelRenderer bootL;
|
||||
private final ModelRenderer helm1;
|
||||
private final ModelRenderer helm2;
|
||||
private final ModelRenderer helm3;
|
||||
private final ModelRenderer helm4;
|
||||
private final ModelRenderer helm5;
|
||||
private final ModelRenderer helm6;
|
||||
private final ModelRenderer helm7;
|
||||
private final ModelRenderer body2;
|
||||
private final ModelRenderer armRpauldron;
|
||||
private final ModelRenderer armLpauldron;
|
||||
private final ModelRenderer legR;
|
||||
private final ModelRenderer legL;
|
||||
|
||||
private final ModelRenderer armLcrystal;
|
||||
|
||||
private final ModelRenderer armRAnchor;
|
||||
private final ModelRenderer armR;
|
||||
private final ModelRenderer armRpauldron;
|
||||
private final ModelRenderer armRcrystal;
|
||||
private final ModelRenderer pantsAnchor;
|
||||
private final ModelRenderer belt;
|
||||
private final ModelRenderer legL;
|
||||
private final ModelRenderer legR;
|
||||
|
||||
private final ModelRenderer bootL;
|
||||
private final ModelRenderer bootLcrystal;
|
||||
private final ModelRenderer bootR;
|
||||
private final ModelRenderer bootRcrystal;
|
||||
|
||||
public ModelArmorManasteel(EntityEquipmentSlot slot) {
|
||||
super(slot);
|
||||
|
||||
textureWidth = 64;
|
||||
textureHeight = 128;
|
||||
float s = 0.6F;
|
||||
armRpauldron = new ModelRenderer(this, 30, 47);
|
||||
armRpauldron.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
armRpauldron.addBox(-4.0F, -2.0F, -2.5F, 4, 4, 5, 0.2F);
|
||||
armL = new ModelRenderer(this, 0, 68);
|
||||
armL.mirror = true;
|
||||
armL.setRotationPoint(5.0F, 2.0F, -0.0F);
|
||||
armL.addBox(1.0F, 3.0F, -2.0F, 2, 6, 4, s);
|
||||
setRotateAngle(armL, 0.0F, 0.0F, -0.17453292519943295F);
|
||||
legR = new ModelRenderer(this, 12, 68);
|
||||
legR.setRotationPoint(-1.9F, 12.0F, 0.0F);
|
||||
legR.addBox(-2.0F, 0.0F, -2.0F, 4, 8, 4, s);
|
||||
setRotateAngle(legR, 0.0F, 0.0F, 0F);
|
||||
helm3 = new ModelRenderer(this, 24, 32);
|
||||
helm3.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
helm3.addBox(-1.0F, -8.5F, -6.5F, 2, 5, 1, s);
|
||||
setRotateAngle(helm3, -0.17453292519943295F, 0.0F, 0.0F);
|
||||
helm7 = new ModelRenderer(this, 24, 32);
|
||||
helm7.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
helm7.addBox(-1.0F, -8.5F, -6.0F, 2, 3, 1, s);
|
||||
setRotateAngle(helm7, -0.3490658503988659F, 0.0F, 0.0F);
|
||||
bootL = new ModelRenderer(this, 28, 68);
|
||||
bootL.mirror = true;
|
||||
bootL.setRotationPoint(2.0F, 12.0F, 0.0F);
|
||||
bootL.addBox(-2.0F, 8.0F, -3.0F, 4, 4, 5, s);
|
||||
setRotateAngle(bootL, 0.0F, 0.0F, 0F);
|
||||
helm4 = new ModelRenderer(this, 0, 39);
|
||||
helm4.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
helm4.addBox(-4.0F, -8.0F, -0.5F, 1, 3, 5, s);
|
||||
bootR = new ModelRenderer(this, 28, 68);
|
||||
bootR.setRotationPoint(-2.0F, 12.0F, 0.0F);
|
||||
bootR.addBox(-2.0F, 8.0F, -3.0F, 4, 4, 5, s);
|
||||
setRotateAngle(bootR, 0.0F, 0.0F, 0F);
|
||||
legL = new ModelRenderer(this, 12, 68);
|
||||
legL.mirror = true;
|
||||
legL.setRotationPoint(1.9F, 12.0F, 0.0F);
|
||||
legL.addBox(-2.0F, 0.0F, -2.0F, 4, 8, 4, s);
|
||||
setRotateAngle(legL, 0.0F, 0.0F, 0F);
|
||||
armR = new ModelRenderer(this, 0, 68);
|
||||
armR.setRotationPoint(-5.0F, 2.0F, 0.0F);
|
||||
armR.addBox(-3.0F, 3.0F, -2.0F, 2, 6, 4, s);
|
||||
setRotateAngle(armR, 0.0F, 0.0F, 0.17453292519943295F);
|
||||
helm1 = new ModelRenderer(this, 12, 39);
|
||||
helm1.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
helm1.addBox(-4.0F, -5.0F, -4.5F, 1, 3, 4, s);
|
||||
helm2 = new ModelRenderer(this, 12, 39);
|
||||
helm2.mirror = true;
|
||||
helm2.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
helm2.addBox(3.0F, -5.0F, -4.5F, 1, 3, 4, s);
|
||||
body2 = new ModelRenderer(this, 0, 59);
|
||||
body2.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
body2.addBox(-4.0F, 6.0F, -2.5F, 8, 4, 5, s);
|
||||
setRotateAngle(body2, -0.08726646259971647F, 0.0F, 0.0F);
|
||||
body = new ModelRenderer(this, 0, 47);
|
||||
body.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
body.addBox(-4.5F, 0.0F, -3.5F, 9, 6, 6, s);
|
||||
setRotateAngle(body, 0.08726646259971647F, 0.0F, 0.0F);
|
||||
helm6 = new ModelRenderer(this, 24, 32);
|
||||
helm6.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
helm6.addBox(-1.0F, -8.5F, -5.5F, 2, 3, 1, s);
|
||||
setRotateAngle(helm6, -0.5235987755982988F, 0.0F, 0.0F);
|
||||
belt = new ModelRenderer(this, 26, 59);
|
||||
belt.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
belt.addBox(-4.5F, 9.5F, -3.0F, 9, 3, 6, s);
|
||||
helm = new ModelRenderer(this, 0, 32);
|
||||
helm.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
helm.addBox(-4.0F, -8.0F, -4.5F, 8, 3, 4, s);
|
||||
setRotateAngle(helm, 0.08726646259971647F, 0.0F, 0.0F);
|
||||
armLpauldron = new ModelRenderer(this, 30, 47);
|
||||
armLpauldron.mirror = true;
|
||||
armLpauldron.setRotationPoint(0.0F, 0.0F, -0.0F);
|
||||
armLpauldron.addBox(0.0F, -2.0F, -2.5F, 4, 4, 5, s);
|
||||
helm5 = new ModelRenderer(this, 0, 39);
|
||||
helm5.mirror = true;
|
||||
helm5.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
helm5.addBox(3.0F, -8.0F, -0.5F, 1, 3, 5, s);
|
||||
|
||||
helm.addChild(helm3);
|
||||
helm.addChild(helm7);
|
||||
helm.addChild(helm4);
|
||||
helm.addChild(helm6);
|
||||
helm.addChild(helm1);
|
||||
helm.addChild(helm2);
|
||||
helm.addChild(helm5);
|
||||
body.addChild(body2);
|
||||
armL.addChild(armLpauldron);
|
||||
armR.addChild(armRpauldron);
|
||||
belt.addChild(legR);
|
||||
belt.addChild(legL);
|
||||
this.textureWidth = 64;
|
||||
this.textureHeight = 128;
|
||||
float s = 0.01F;
|
||||
|
||||
//helm
|
||||
this.helmAnchor = new ModelRenderer(this, 0, 0);
|
||||
this.helmAnchor.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.helmAnchor.addBox(-1.0F, -2.0F, 0.0F, 2, 2, 2, s);
|
||||
this.helm = new ModelRenderer(this, 0, 0);
|
||||
this.helm.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.helm.addBox(-4.5F, -8.5F, -4.5F, 9, 9, 9, s);
|
||||
this.helmTop = new ModelRenderer(this, 36, 6);
|
||||
this.helmTop.setRotationPoint(0.0F, -8.5F, 3.5F);
|
||||
this.helmTop.addBox(-1.5F, 0.0F, -7.0F, 3, 3, 7, s);
|
||||
this.setRotateAngle(helmTop, -0.2617993877991494F, 0.0F, 0.0F);
|
||||
this.helmCrystal = new ModelRenderer(this, 36, 0);
|
||||
this.helmCrystal.setRotationPoint(0.0F, -7.5F, -4.5F);
|
||||
this.helmCrystal.addBox(-1.5F, -4.0F, -1.0F, 3, 5, 1, s);
|
||||
this.setRotateAngle(helmCrystal, 0.08726646259971647F, 0.0F, 0.0F);
|
||||
|
||||
//body
|
||||
this.bodyAnchor = new ModelRenderer(this, 0, 0);
|
||||
this.bodyAnchor.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.bodyAnchor.addBox(-1.0F, 0.0F, -1.0F, 2, 2, 2, s);
|
||||
this.bodyTop = new ModelRenderer(this, 0, 18);
|
||||
this.bodyTop.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.bodyTop.addBox(-4.5F, -0.5F, -3.0F, 9, 6, 6, s);
|
||||
this.setRotateAngle(bodyTop, 0.0F, 0.0F, 0.0F);
|
||||
this.bodyBottom = new ModelRenderer(this, 0, 30);
|
||||
this.bodyBottom.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.bodyBottom.addBox(-2.5F, 5.5F, -2.5F, 5, 3, 5, 0.0F);
|
||||
|
||||
//armL
|
||||
this.armLAnchor = new ModelRenderer(this, 0, 0);
|
||||
this.armLAnchor.mirror = true;
|
||||
this.armLAnchor.setRotationPoint(4.0F, 2.0F, 0.0F);
|
||||
this.armLAnchor.addBox(0.0F, -1.0F, -1.0F, 2, 2, 2, s);
|
||||
this.armL = new ModelRenderer(this, 22, 40);
|
||||
this.armL.mirror = true;
|
||||
this.armL.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.armL.addBox(1.5F, 2.0F, -2.49F, 2, 6, 5, s);
|
||||
this.armLpauldron = new ModelRenderer(this, 0, 40);
|
||||
this.armLpauldron.mirror = true;
|
||||
this.armLpauldron.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.armLpauldron.addBox(-0.5F, -3.0F, -3.0F, 5, 4, 6, s);
|
||||
this.armLcrystal = new ModelRenderer(this, 36, 40);
|
||||
this.armLcrystal.mirror = true;
|
||||
this.armLcrystal.setRotationPoint(2.0F, -2.5F, 0.0F);
|
||||
this.armLcrystal.addBox(-0.5F, -2.5F, -1.5F, 2, 3, 3, s);
|
||||
this.setRotateAngle(armLcrystal, 0.0F, 0.0F, -0.08726646259971647F);
|
||||
|
||||
//armR
|
||||
this.armRAnchor = new ModelRenderer(this, 0, 0);
|
||||
this.armRAnchor.mirror = true;
|
||||
this.armRAnchor.setRotationPoint(-4.0F, 2.0F, 0.0F);
|
||||
this.armRAnchor.addBox(-2.0F, -1.0F, -1.0F, 2, 2, 2, s);
|
||||
this.armR = new ModelRenderer(this, 22, 40);
|
||||
this.armR.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.armR.addBox(-3.5F, 2.0F, -2.51F, 2, 6, 5, s);
|
||||
this.armRpauldron = new ModelRenderer(this, 0, 40);
|
||||
this.armRpauldron.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.armRpauldron.addBox(-4.5F, -3.0F, -3.0F, 5, 4, 6, s);
|
||||
this.armRcrystal = new ModelRenderer(this, 36, 40);
|
||||
this.armRcrystal.setRotationPoint(-2.0F, -2.5F, 0.0F);
|
||||
this.armRcrystal.addBox(-1.5F, -2.5F, -1.5F, 2, 3, 3, s);
|
||||
this.setRotateAngle(armRcrystal, 0.0F, 0.0F, 0.08726646259971647F);
|
||||
|
||||
//pants
|
||||
this.pantsAnchor = new ModelRenderer(this, 0, 0);
|
||||
this.pantsAnchor.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.pantsAnchor.addBox(-1.0F, 0.0F, -1.0F, 2, 2, 2, s);
|
||||
this.belt = new ModelRenderer(this, 0, 51);
|
||||
this.belt.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.belt.addBox(-4.5F, 9.0F, -3.0F, 9, 3, 6, s);
|
||||
this.legL = new ModelRenderer(this, 0, 60);
|
||||
this.legL.mirror = true;
|
||||
this.legL.setRotationPoint(1.9F, 12.0F, 0.0F);
|
||||
this.legL.addBox(-0.39F, 0.0F, -2.49F, 3, 6, 5, s);
|
||||
this.legR = new ModelRenderer(this, 0, 60);
|
||||
this.legR.setRotationPoint(-1.9F, 12.0F, 0.0F);
|
||||
this.legR.addBox(-2.61F, 0.0F, -2.51F, 3, 6, 5, s);
|
||||
|
||||
//boots
|
||||
this.bootL = new ModelRenderer(this, 0, 71);
|
||||
this.bootL.mirror = true;
|
||||
this.bootL.setRotationPoint(1.9F, 12.0F, 0.0F);
|
||||
this.bootL.addBox(-2.39F, 8.5F, -2.49F, 5, 4, 5, s);
|
||||
this.bootLcrystal = new ModelRenderer(this, 36, 46);
|
||||
this.bootLcrystal.mirror = true;
|
||||
this.bootLcrystal.setRotationPoint(2.5F, 9.0F, 2.0F);
|
||||
this.bootLcrystal.addBox(-1.0F, -2.0F, -1.5F, 2, 3, 3, s);
|
||||
this.setRotateAngle(bootLcrystal, 0.0F, 0.0F, 0.08726646259971647F);
|
||||
this.bootR = new ModelRenderer(this, 0, 71);
|
||||
this.bootR.setRotationPoint(-2.0F, 12.0F, 0.0F);
|
||||
this.bootR.addBox(-2.5F, 8.5F, -2.51F, 5, 4, 5, s);
|
||||
this.bootRcrystal = new ModelRenderer(this, 36, 46);
|
||||
this.bootRcrystal.setRotationPoint(-2.5F, 9.0F, 2.0F);
|
||||
this.bootRcrystal.addBox(-1.0F, -2.0F, -1.5F, 2, 3, 3, s);
|
||||
this.setRotateAngle(bootRcrystal, 0.0F, 0.0F, -0.08726646259971647F);
|
||||
|
||||
//hierarchy
|
||||
this.helmAnchor.addChild(this.helm);
|
||||
this.helm.addChild(this.helmTop);
|
||||
this.helm.addChild(this.helmCrystal);
|
||||
|
||||
this.bodyAnchor.addChild(this.bodyTop);
|
||||
this.bodyTop.addChild(this.bodyBottom);
|
||||
this.armLAnchor.addChild(this.armL);
|
||||
this.armL.addChild(this.armLpauldron);
|
||||
this.armLpauldron.addChild(this.armLcrystal);
|
||||
this.armRAnchor.addChild(this.armR);
|
||||
this.armR.addChild(this.armRpauldron);
|
||||
this.armRpauldron.addChild(this.armRcrystal);
|
||||
|
||||
this.pantsAnchor.addChild(this.belt);
|
||||
this.belt.addChild(this.legL);
|
||||
this.belt.addChild(this.legR);;
|
||||
|
||||
this.bootL.addChild(bootLcrystal);
|
||||
this.bootR.addChild(bootRcrystal);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void render(@Nonnull Entity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scale) {
|
||||
helm.showModel = slot == EntityEquipmentSlot.HEAD;
|
||||
body.showModel = slot == EntityEquipmentSlot.CHEST;
|
||||
armR.showModel = slot == EntityEquipmentSlot.CHEST;
|
||||
armL.showModel = slot == EntityEquipmentSlot.CHEST;
|
||||
|
||||
helmAnchor.showModel = slot == EntityEquipmentSlot.HEAD;
|
||||
bodyAnchor.showModel = slot == EntityEquipmentSlot.CHEST;
|
||||
armRAnchor.showModel = slot == EntityEquipmentSlot.CHEST;
|
||||
armLAnchor.showModel = slot == EntityEquipmentSlot.CHEST;
|
||||
legR.showModel = slot == EntityEquipmentSlot.LEGS;
|
||||
legL.showModel = slot == EntityEquipmentSlot.LEGS;
|
||||
bootL.showModel = slot == EntityEquipmentSlot.FEET;
|
||||
bootR.showModel = slot == EntityEquipmentSlot.FEET;
|
||||
bipedHeadwear.showModel = false;
|
||||
|
||||
bipedHead = helm;
|
||||
bipedBody = body;
|
||||
bipedRightArm = armR;
|
||||
bipedLeftArm = armL;
|
||||
bipedHead = helmAnchor;
|
||||
bipedBody = bodyAnchor;
|
||||
bipedRightArm = armRAnchor;
|
||||
bipedLeftArm = armLAnchor;
|
||||
if(slot == EntityEquipmentSlot.LEGS) {
|
||||
bipedBody = pantsAnchor;
|
||||
bipedRightLeg = legR;
|
||||
bipedLeftLeg = legL;
|
||||
} else {
|
||||
|
||||
@@ -10,146 +10,159 @@
|
||||
*/
|
||||
package vazkii.botania.client.model.armor;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.inventory.EntityEquipmentSlot;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
public class ModelArmorManaweave extends ModelArmor {
|
||||
|
||||
private final ModelRenderer helmAnchor;
|
||||
private final ModelRenderer helm;
|
||||
public final ModelRenderer body;
|
||||
private final ModelRenderer armR;
|
||||
private final ModelRenderer armL;
|
||||
private final ModelRenderer legR;
|
||||
private final ModelRenderer legL;
|
||||
private final ModelRenderer bootR;
|
||||
private final ModelRenderer bootL;
|
||||
private final ModelRenderer helm2;
|
||||
private final ModelRenderer helm3;
|
||||
private final ModelRenderer helm4;
|
||||
private final ModelRenderer helmSeam1;
|
||||
private final ModelRenderer helmSeam2;
|
||||
private final ModelRenderer helmSeam3;
|
||||
private final ModelRenderer helmSeam4;
|
||||
private final ModelRenderer body2;
|
||||
private final ModelRenderer armRpauldron;
|
||||
private final ModelRenderer armLpauldron;
|
||||
private final ModelRenderer skirtR;
|
||||
private final ModelRenderer skirtL;
|
||||
|
||||
private final ModelRenderer bodyAnchor;
|
||||
private final ModelRenderer bodyTop;
|
||||
private final ModelRenderer bodyBottom;
|
||||
|
||||
private final ModelRenderer armLAnchor;
|
||||
private final ModelRenderer armL;
|
||||
private final ModelRenderer armLpauldron;
|
||||
private final ModelRenderer armRAnchor;
|
||||
private final ModelRenderer armR;
|
||||
private final ModelRenderer armRpauldron;
|
||||
|
||||
private final ModelRenderer pantsAnchor;
|
||||
private final ModelRenderer legL;
|
||||
private final ModelRenderer skirtL;
|
||||
private final ModelRenderer legR;
|
||||
private final ModelRenderer skirtR;
|
||||
|
||||
private final ModelRenderer bootL;
|
||||
private final ModelRenderer bootR;
|
||||
|
||||
public ModelArmorManaweave(EntityEquipmentSlot slot) {
|
||||
super(slot);
|
||||
|
||||
textureWidth = 64;
|
||||
textureHeight = 128;
|
||||
float s = 0.6F;
|
||||
helmSeam3 = new ModelRenderer(this, 26, 61);
|
||||
helmSeam3.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
helmSeam3.addBox(-0.5F, -9.5F, 5.0F, 1, 11, 1, s);
|
||||
helmSeam4 = new ModelRenderer(this, 39, 64);
|
||||
helmSeam4.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
helmSeam4.addBox(-0.5F, 0.5F, -1.0F, 1, 1, 6, s);
|
||||
skirtL = new ModelRenderer(this, 0, 83);
|
||||
skirtL.mirror = true;
|
||||
skirtL.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
skirtL.addBox(-2.0F, -2.0F, -3.5F, 5, 13, 7, s);
|
||||
setRotateAngle(skirtL, 0.0F, -0.17453292519943295F, -0.2617993877991494F);
|
||||
armR = new ModelRenderer(this, 24, 83);
|
||||
armR.setRotationPoint(-5.0F, 2.0F, 0.0F);
|
||||
armR.addBox(-3.0F, -1.5F, -2.5F, 4, 10, 5, s);
|
||||
setRotateAngle(armR, 0.0F, 0.0F, 0F);
|
||||
armL = new ModelRenderer(this, 24, 83);
|
||||
armL.mirror = true;
|
||||
armL.setRotationPoint(5.0F, 2.0F, -0.0F);
|
||||
armL.addBox(-1.0F, -1.5F, -2.5F, 4, 10, 5, s);
|
||||
setRotateAngle(armL, 0.0F, 0.0F, 0F);
|
||||
bootR = new ModelRenderer(this, 0, 103);
|
||||
bootR.setRotationPoint(-2.0F, 12.0F, 0.0F);
|
||||
bootR.addBox(-2.0F, 8.0F, -3.0F, 4, 4, 5, s);
|
||||
setRotateAngle(bootR, 0.0F, 0.0F, 0F);
|
||||
legR = new ModelRenderer(this, 42, 81);
|
||||
legR.setRotationPoint(-2.0F, 12.0F, 0.0F);
|
||||
legR.addBox(-2.0F, 0.0F, -2.0F, 4, 6, 4, s);
|
||||
setRotateAngle(legR, 0.0F, 0.0F, 0F);
|
||||
helm2 = new ModelRenderer(this, 38, 42);
|
||||
helm2.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
helm2.addBox(-4.49F, -4.0F, -2.5F, 1, 5, 8, s);
|
||||
skirtR = new ModelRenderer(this, 0, 83);
|
||||
skirtR.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
skirtR.addBox(-3.0F, -2.0F, -3.5F, 5, 13, 7, s);
|
||||
setRotateAngle(skirtR, 0.0F, 0.17453292519943295F, 0.2617993877991494F);
|
||||
armRpauldron = new ModelRenderer(this, 0, 72);
|
||||
armRpauldron.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
armRpauldron.addBox(-4.0F, -2.0F, -3.0F, 3, 5, 6, s);
|
||||
setRotateAngle(armRpauldron, 0.0F, 0.0F, 0F);
|
||||
bootL = new ModelRenderer(this, 0, 103);
|
||||
bootL.setRotationPoint(2.0F, 12.0F, 0.0F);
|
||||
bootL.addBox(-2.0F, 8.0F, -3.0F, 4, 4, 5, s);
|
||||
setRotateAngle(bootL, 0.0F, 0.0F, 0F);
|
||||
helmSeam1 = new ModelRenderer(this, 30, 61);
|
||||
helmSeam1.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
helmSeam1.addBox(-0.5F, -10.5F, -5.0F, 1, 7, 2, s);
|
||||
helm = new ModelRenderer(this, 0, 32);
|
||||
helm.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
helm.addBox(-4.5F, -10.0F, -4.5F, 9, 6, 10, s);
|
||||
setRotateAngle(helm, 0F, 0.0F, 0.0F);
|
||||
armLpauldron = new ModelRenderer(this, 0, 72);
|
||||
armLpauldron.mirror = true;
|
||||
armLpauldron.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
armLpauldron.addBox(1.0F, -2.0F, -3.0F, 3, 5, 6, s);
|
||||
setRotateAngle(armLpauldron, 0.0F, 0.0F, 0F);
|
||||
helm4 = new ModelRenderer(this, 38, 32);
|
||||
helm4.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
helm4.addBox(-3.5F, -4.0F, 0.49F, 7, 5, 5, s);
|
||||
helmSeam2 = new ModelRenderer(this, 36, 61);
|
||||
helmSeam2.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
helmSeam2.addBox(-0.5F, -10.5F, -3.0F, 1, 1, 9, s);
|
||||
legL = new ModelRenderer(this, 42, 81);
|
||||
legL.mirror = true;
|
||||
legL.setRotationPoint(2.0F, 12.0F, 0.0F);
|
||||
legL.addBox(-2.0F, 0.0F, -2.0F, 4, 6, 4, s);
|
||||
setRotateAngle(legL, 0.0F, 0.0F, 0F);
|
||||
body2 = new ModelRenderer(this, 0, 61);
|
||||
body2.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
body2.addBox(-4.0F, 6.0F, -2.5F, 8, 6, 5, s);
|
||||
body = new ModelRenderer(this, 0, 48);
|
||||
body.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
body.addBox(-4.5F, 0.0F, -3.0F, 9, 7, 6, s);
|
||||
helm3 = new ModelRenderer(this, 38, 42);
|
||||
helm3.mirror = true;
|
||||
helm3.setRotationPoint(0.0F, 0.0F, 0F);
|
||||
helm3.addBox(3.49F, -4.0F, -2.5F, 1, 5, 8, s);
|
||||
helm.addChild(helmSeam3);
|
||||
helm.addChild(helmSeam4);
|
||||
legL.addChild(skirtL);
|
||||
helm.addChild(helm2);
|
||||
legR.addChild(skirtR);
|
||||
armR.addChild(armRpauldron);
|
||||
helm.addChild(helmSeam1);
|
||||
armL.addChild(armLpauldron);
|
||||
helm.addChild(helm4);
|
||||
helm.addChild(helmSeam2);
|
||||
body.addChild(body2);
|
||||
helm.addChild(helm3);
|
||||
float s = 0.01F;
|
||||
|
||||
//helm
|
||||
this.helmAnchor = new ModelRenderer(this, 0, 0);
|
||||
this.helmAnchor.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.helmAnchor.addBox(-1.0F, -2.0F, 0.0F, 2, 2, 2, s);
|
||||
this.helm = new ModelRenderer(this, 0, 0);
|
||||
this.helm.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.helm.addBox(-4.5F, -9.5F, -4.0F, 9, 11, 10, s);
|
||||
this.setRotateAngle(helm, 0.17453292519943295F, 0.0F, 0.0F);
|
||||
|
||||
//body
|
||||
this.bodyAnchor = new ModelRenderer(this, 0, 0);
|
||||
this.bodyAnchor.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.bodyAnchor.addBox(-1.0F, 0.0F, -1.0F, 2, 2, 2, s);
|
||||
this.bodyTop = new ModelRenderer(this, 0, 21);
|
||||
this.bodyTop.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.bodyTop.addBox(-4.5F, -0.5F, -3.0F, 9, 7, 6, s);
|
||||
this.setRotateAngle(bodyTop, 0.0F, 0.0F, 0.0F);
|
||||
this.bodyBottom = new ModelRenderer(this, 0, 34);
|
||||
this.bodyBottom.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.bodyBottom.addBox(-4.5F, 6.5F, -2.5F, 9, 5, 5, s);
|
||||
this.setRotateAngle(bodyBottom, -0F, 0.0F, 0.0F);
|
||||
|
||||
//armL
|
||||
this.armLAnchor = new ModelRenderer(this, 0, 0);
|
||||
this.armLAnchor.mirror = true;
|
||||
this.armLAnchor.setRotationPoint(4.0F, 2.0F, 0.0F);
|
||||
this.armLAnchor.addBox(0.0F, -1.0F, -1.0F, 2, 2, 2, s);
|
||||
this.armL = new ModelRenderer(this, 0, 44);
|
||||
this.armL.mirror = true;
|
||||
this.armL.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.armL.addBox(-1.5F, -2.5F, -2.49F, 5, 10, 5, s);
|
||||
this.armLpauldron = new ModelRenderer(this, 20, 44);
|
||||
this.armLpauldron.mirror = true;
|
||||
this.armLpauldron.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.armLpauldron.addBox(-1.0F, -3.0F, -3.0F, 6, 5, 6, s);
|
||||
this.setRotateAngle(armLpauldron, 0.0F, 0.0F, -0.08726646259971647F);
|
||||
|
||||
//armR
|
||||
this.armRAnchor = new ModelRenderer(this, 0, 0);
|
||||
this.armRAnchor.mirror = true;
|
||||
this.armRAnchor.setRotationPoint(-4.0F, 2.0F, 0.0F);
|
||||
this.armRAnchor.addBox(-2.0F, -1.0F, -1.0F, 2, 2, 2, s);
|
||||
this.armR = new ModelRenderer(this, 0, 44);
|
||||
this.armR.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.armR.addBox(-3.5F, -2.5F, -2.51F, 5, 10, 5, s);
|
||||
this.armRpauldron = new ModelRenderer(this, 20, 44);
|
||||
this.armRpauldron.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.armRpauldron.addBox(-5.0F, -3.0F, -3.0F, 6, 5, 6, s);
|
||||
this.setRotateAngle(armRpauldron, 0.0F, 0.0F, 0.08726646259971647F);
|
||||
|
||||
//pants
|
||||
this.pantsAnchor = new ModelRenderer(this, 0, 0);
|
||||
this.pantsAnchor.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.pantsAnchor.addBox(-1.0F, 0.0F, -1.0F, 2, 2, 2, s);
|
||||
this.legL = new ModelRenderer(this, 0, 78);
|
||||
this.legL.mirror = true;
|
||||
this.legL.setRotationPoint(1.9F, 12.0F, 0.0F);
|
||||
this.legL.addBox(-2.39F, -0.5F, -2.49F, 5, 6, 5, s);
|
||||
this.skirtL = new ModelRenderer(this, 0, 59);
|
||||
this.skirtL.mirror = true;
|
||||
this.skirtL.setRotationPoint(-0.5F, -2.0F, -2.5F);
|
||||
this.skirtL.addBox(-1.0F, 0.0F, -0.5F, 5, 13, 6, s);
|
||||
this.setRotateAngle(skirtL, 0.0F, -0.17453292519943295F, -0.2617993877991494F);
|
||||
this.legR = new ModelRenderer(this, 0, 78);
|
||||
this.legR.setRotationPoint(-1.9F, 12.0F, 0.0F);
|
||||
this.legR.addBox(-2.61F, 0.0F, -2.51F, 5, 6, 5, s);
|
||||
this.skirtR = new ModelRenderer(this, 0, 59);
|
||||
this.skirtR.setRotationPoint(0.5F, -2.0F, -2.5F);
|
||||
this.skirtR.addBox(-4.0F, 0.0F, -0.5F, 5, 13, 6, s);
|
||||
this.setRotateAngle(skirtR, 0.0F, 0.17453292519943295F, 0.2617993877991494F);
|
||||
|
||||
//boot
|
||||
this.bootL = new ModelRenderer(this, 0, 89);
|
||||
this.bootL.mirror = true;
|
||||
this.bootL.setRotationPoint(1.9F, 12.0F, 0.0F);
|
||||
this.bootL.addBox(-2.39F, 8.5F, -2.49F, 5, 4, 5, s);
|
||||
this.bootR = new ModelRenderer(this, 0, 89);
|
||||
this.bootR.setRotationPoint(-1.9F, 12.0F, 0.0F);
|
||||
this.bootR.addBox(-2.61F, 8.5F, -2.51F, 5, 4, 5, s);
|
||||
|
||||
//hierarchy
|
||||
this.helmAnchor.addChild(this.helm);
|
||||
|
||||
this.bodyAnchor.addChild(this.bodyTop);
|
||||
this.bodyTop.addChild(this.bodyBottom);
|
||||
|
||||
this.armLAnchor.addChild(this.armL);
|
||||
this.armL.addChild(this.armLpauldron);
|
||||
|
||||
this.armRAnchor.addChild(this.armR);
|
||||
this.armR.addChild(this.armRpauldron);
|
||||
|
||||
this.pantsAnchor.addChild(this.legL);
|
||||
this.pantsAnchor.addChild(this.legR);
|
||||
this.legL.addChild(this.skirtL);
|
||||
this.legR.addChild(this.skirtR);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void render(@Nonnull Entity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scale) {
|
||||
helm.showModel = slot == EntityEquipmentSlot.HEAD;
|
||||
body.showModel = slot == EntityEquipmentSlot.CHEST;
|
||||
armR.showModel = slot == EntityEquipmentSlot.CHEST;
|
||||
armL.showModel = slot == EntityEquipmentSlot.CHEST;
|
||||
|
||||
helmAnchor.showModel = slot == EntityEquipmentSlot.HEAD;
|
||||
bodyAnchor.showModel = slot == EntityEquipmentSlot.CHEST;
|
||||
armRAnchor.showModel = slot == EntityEquipmentSlot.CHEST;
|
||||
armLAnchor.showModel = slot == EntityEquipmentSlot.CHEST;
|
||||
legR.showModel = slot == EntityEquipmentSlot.LEGS;
|
||||
legL.showModel = slot == EntityEquipmentSlot.LEGS;
|
||||
bootL.showModel = slot == EntityEquipmentSlot.FEET;
|
||||
bootR.showModel = slot == EntityEquipmentSlot.FEET;
|
||||
bipedHeadwear.showModel = false;
|
||||
|
||||
bipedHead = helm;
|
||||
bipedBody = body;
|
||||
bipedRightArm = armR;
|
||||
bipedLeftArm = armL;
|
||||
bipedHead = helmAnchor;
|
||||
bipedBody = bodyAnchor;
|
||||
bipedRightArm = armRAnchor;
|
||||
bipedLeftArm = armLAnchor;
|
||||
if(slot == EntityEquipmentSlot.LEGS) {
|
||||
bipedRightLeg = legR;
|
||||
bipedLeftLeg = legL;
|
||||
|
||||
@@ -10,238 +10,283 @@
|
||||
*/
|
||||
package vazkii.botania.client.model.armor;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.inventory.EntityEquipmentSlot;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
public class ModelArmorTerrasteel extends ModelArmor {
|
||||
|
||||
private final ModelRenderer helmAnchor;
|
||||
private final ModelRenderer helm;
|
||||
public final ModelRenderer body;
|
||||
private final ModelRenderer armr;
|
||||
private final ModelRenderer helmFront;
|
||||
private final ModelRenderer helmLeaf1l;
|
||||
private final ModelRenderer helmLeaf2l;
|
||||
private final ModelRenderer helmLeaf3l;
|
||||
private final ModelRenderer helmLeaf1r;
|
||||
private final ModelRenderer helmLeaf2r;
|
||||
private final ModelRenderer helmLeaf3r;
|
||||
private final ModelRenderer helmbranch1l;
|
||||
private final ModelRenderer helmbranch2l;
|
||||
private final ModelRenderer helmbranch1r;
|
||||
private final ModelRenderer helmbranch2r;
|
||||
|
||||
private final ModelRenderer bodyAnchor;
|
||||
private final ModelRenderer bodyTop;
|
||||
private final ModelRenderer bodyBottom;
|
||||
|
||||
private final ModelRenderer armLAnchor;
|
||||
private final ModelRenderer armL;
|
||||
public final ModelRenderer belt;
|
||||
private final ModelRenderer bootR;
|
||||
private final ModelRenderer bootL;
|
||||
private final ModelRenderer helm2;
|
||||
private final ModelRenderer helm3;
|
||||
private final ModelRenderer helm4;
|
||||
private final ModelRenderer helmLeaf1;
|
||||
private final ModelRenderer helmLeaf2;
|
||||
private final ModelRenderer helmLeaf3;
|
||||
private final ModelRenderer helmLeaf4;
|
||||
private final ModelRenderer helmLeaf5;
|
||||
private final ModelRenderer helmLeaf6;
|
||||
private final ModelRenderer helmbranch1;
|
||||
private final ModelRenderer helmbranch2;
|
||||
private final ModelRenderer helmbranch3;
|
||||
private final ModelRenderer helmbranch4;
|
||||
private final ModelRenderer body2;
|
||||
private final ModelRenderer armRpauldron;
|
||||
private final ModelRenderer armRbranch1;
|
||||
private final ModelRenderer armRbranch2;
|
||||
private final ModelRenderer armLpauldron;
|
||||
private final ModelRenderer armLbranch1;
|
||||
private final ModelRenderer armLbranch2;
|
||||
private final ModelRenderer legR;
|
||||
|
||||
private final ModelRenderer armRAnchor;
|
||||
private final ModelRenderer armR;
|
||||
private final ModelRenderer armRpauldron;
|
||||
private final ModelRenderer armRbranch1;
|
||||
private final ModelRenderer armRbranch2;
|
||||
|
||||
private final ModelRenderer pantsAnchor;
|
||||
private final ModelRenderer belt;
|
||||
private final ModelRenderer legL;
|
||||
private final ModelRenderer bootR1;
|
||||
private final ModelRenderer bootRbranch;
|
||||
private final ModelRenderer bootL2;
|
||||
private final ModelRenderer bootLbranch;
|
||||
|
||||
private final ModelRenderer legR;
|
||||
|
||||
private final ModelRenderer bootL;
|
||||
private final ModelRenderer bootLtop;
|
||||
private final ModelRenderer bootLbranch1;
|
||||
private final ModelRenderer bootLbranch2;
|
||||
|
||||
private final ModelRenderer bootR;
|
||||
private final ModelRenderer bootRtop;
|
||||
private final ModelRenderer bootRbranch1;
|
||||
private final ModelRenderer bootRbranch2;
|
||||
|
||||
public ModelArmorTerrasteel(EntityEquipmentSlot slot) {
|
||||
super(slot);
|
||||
|
||||
textureWidth = 64;
|
||||
textureWidth = 128;
|
||||
textureHeight = 128;
|
||||
float s = 0.6F;
|
||||
armr = new ModelRenderer(this, 0, 77);
|
||||
armr.setRotationPoint(-5.0F, 2.0F, -0.0F);
|
||||
armr.addBox(-3.0F, 3.0F, -2.0F, 4, 7, 4, s);
|
||||
setRotateAngle(armr, 0.0F, 0.0F, 0F);
|
||||
body = new ModelRenderer(this, 0, 44);
|
||||
body.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
body.addBox(-4.5F, 0.0F, -3.5F, 9, 6, 6, s);
|
||||
setRotateAngle(body, 0F, 0.0F, 0.0F);
|
||||
helm4 = new ModelRenderer(this, 56, 32);
|
||||
helm4.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
helm4.addBox(-1.0F, -7.5F, -6.5F, 2, 6, 2, s);
|
||||
setRotateAngle(helm4, 0F, 0.0F, 0.0F);
|
||||
bootR1 = new ModelRenderer(this, 32, 77);
|
||||
bootR1.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
bootR1.addBox(-2.0F, 6.0F, -2.0F, 4, 2, 4, s);
|
||||
helmbranch4 = new ModelRenderer(this, 34, 43);
|
||||
helmbranch4.mirror = true;
|
||||
helmbranch4.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
helmbranch4.addBox(-2.0F, -8.0F, -4.0F, 1, 2, 7, s);
|
||||
setRotateAngle(helmbranch4, 0.2617993877991494F, 0.0F, 1.0471975511965976F);
|
||||
bootL = new ModelRenderer(this, 32, 83);
|
||||
bootL.mirror = true;
|
||||
bootL.setRotationPoint(1.9F, 12.0F, 0.0F);
|
||||
bootL.addBox(-2.0F, 8.0F, -3.0F, 4, 4, 5, s);
|
||||
setRotateAngle(bootL, 0.0F, 0.0F, 0F);
|
||||
bootR = new ModelRenderer(this, 32, 83);
|
||||
bootR.setRotationPoint(-1.9F, 12.0F, 0.1F);
|
||||
bootR.addBox(-2.0F, 8.0F, -3.0F, 4, 4, 5, s);
|
||||
setRotateAngle(bootR, 0.0F, 0.0F, 0F);
|
||||
helmLeaf5 = new ModelRenderer(this, 50, 32);
|
||||
helmLeaf5.mirror = true;
|
||||
helmLeaf5.setRotationPoint(0.0F, 0.2F, 0.0F);
|
||||
helmLeaf5.addBox(-1.0F, -11.0F, -4.5F, 2, 5, 1, s);
|
||||
setRotateAngle(helmLeaf5, -0.5235987755982988F, -0.5235987755982988F, 0.5235987755982988F);
|
||||
bootLbranch = new ModelRenderer(this, 48, 77);
|
||||
bootLbranch.mirror = true;
|
||||
bootLbranch.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
bootLbranch.addBox(8.0F, 1.0F, -2.0F, 1, 2, 5, s);
|
||||
setRotateAngle(bootLbranch, 0.2617993877991494F, 0.0F, 1.0471975511965976F);
|
||||
helmLeaf4 = new ModelRenderer(this, 50, 32);
|
||||
helmLeaf4.mirror = true;
|
||||
helmLeaf4.setRotationPoint(0.0F, 0.2F, 0.0F);
|
||||
helmLeaf4.addBox(-1.5F, -9.0F, -6.0F, 2, 3, 1, s);
|
||||
setRotateAngle(helmLeaf4, -0.2617993877991494F, -0.2617993877991494F, 0.5235987755982988F);
|
||||
helmLeaf2 = new ModelRenderer(this, 50, 32);
|
||||
helmLeaf2.setRotationPoint(0.0F, 0.2F, 0.0F);
|
||||
helmLeaf2.addBox(-1.0F, -11.0F, -4.5F, 2, 5, 1, s);
|
||||
setRotateAngle(helmLeaf2, -0.5235987755982988F, 0.5235987755982988F, -0.5235987755982988F);
|
||||
helm = new ModelRenderer(this, 0, 32);
|
||||
helm.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
helm.addBox(-4.0F, -8.0F, -4.5F, 8, 3, 9, s);
|
||||
setRotateAngle(helm, 0.08726646259971647F, 0.0F, 0.0F);
|
||||
helm2 = new ModelRenderer(this, 34, 32);
|
||||
helm2.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
helm2.addBox(-4.0F, -5.0F, -4.5F, 2, 5, 6, s);
|
||||
helm3 = new ModelRenderer(this, 34, 32);
|
||||
helm3.mirror = true;
|
||||
helm3.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
helm3.addBox(2.0F, -5.0F, -4.5F, 2, 5, 6, s);
|
||||
helmbranch1 = new ModelRenderer(this, 34, 43);
|
||||
helmbranch1.mirror = true;
|
||||
helmbranch1.setRotationPoint(0.0F, 0.0F, 0F);
|
||||
helmbranch1.addBox(-2.0F, -10.0F, -1.0F, 1, 2, 7, s);
|
||||
setRotateAngle(helmbranch1, 0.5235987755982988F, 0.0F, -0.08726646259971647F);
|
||||
bootL2 = new ModelRenderer(this, 32, 77);
|
||||
bootL2.mirror = true;
|
||||
bootL2.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
bootL2.addBox(-2.0F, 6.0F, -2.0F, 4, 2, 4, s);
|
||||
helmbranch2 = new ModelRenderer(this, 34, 43);
|
||||
helmbranch2.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
helmbranch2.addBox(1.0F, -10.0F, -1.0F, 1, 2, 7, s);
|
||||
setRotateAngle(helmbranch2, 0.5235987755982988F, 0.0F, 0.08726646259971647F);
|
||||
legR = new ModelRenderer(this, 16, 77);
|
||||
legR.setRotationPoint(-1.9F, 12.0F, 0.0F);
|
||||
legR.addBox(-2.0F, 0.0F, -2.0F, 4, 6, 4, s);
|
||||
setRotateAngle(legR, 0.0F, 0.0F, 0F);
|
||||
helmLeaf6 = new ModelRenderer(this, 50, 32);
|
||||
helmLeaf6.mirror = true;
|
||||
helmLeaf6.setRotationPoint(0.0F, 0.2F, 0.0F);
|
||||
helmLeaf6.addBox(-0.5F, -13.0F, -3.0F, 2, 7, 1, s);
|
||||
setRotateAngle(helmLeaf6, -0.7853981633974483F, -0.7853981633974483F, 0.7853981633974483F);
|
||||
armLbranch1 = new ModelRenderer(this, 51, 44);
|
||||
armLbranch1.mirror = true;
|
||||
armLbranch1.setRotationPoint(0.0F, 0.0F, -0.0F);
|
||||
armLbranch1.addBox(2.5F, -5.0F, -1.0F, 1, 5, 2, s);
|
||||
setRotateAngle(armLbranch1, 0.0F, 0.0F, 0.7853981633974483F);
|
||||
bootRbranch = new ModelRenderer(this, 48, 77);
|
||||
bootRbranch.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
bootRbranch.addBox(-9.0F, 1.0F, -2.0F, 1, 2, 5, s);
|
||||
setRotateAngle(bootRbranch, 0.2617993877991494F, 0.0F, -1.0471975511965976F);
|
||||
armRbranch2 = new ModelRenderer(this, 50, 43);
|
||||
armRbranch2.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
armRbranch2.addBox(-1.5F, -5.0F, -1.5F, 1, 5, 3, s);
|
||||
setRotateAngle(armRbranch2, 0.0F, 0.0F, -0.5235987755982988F);
|
||||
helmLeaf3 = new ModelRenderer(this, 50, 32);
|
||||
helmLeaf3.setRotationPoint(0.0F, 0.2F, 0.0F);
|
||||
helmLeaf3.addBox(-1.5F, -13.0F, -3.0F, 2, 7, 1, s);
|
||||
setRotateAngle(helmLeaf3, -0.7853981633974483F, 0.7853981633974483F, -0.7853981633974483F);
|
||||
armRpauldron = new ModelRenderer(this, 0, 66);
|
||||
armRpauldron.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
armRpauldron.addBox(-4.0F, -2.0F, -3.0F, 5, 5, 6, s);
|
||||
armLbranch2 = new ModelRenderer(this, 50, 43);
|
||||
armLbranch2.mirror = true;
|
||||
armLbranch2.setRotationPoint(0.0F, 0.0F, -0.0F);
|
||||
armLbranch2.addBox(0.5F, -5.0F, -1.5F, 1, 5, 3, s);
|
||||
setRotateAngle(armLbranch2, 0.0F, 0.0F, 0.5235987755982988F);
|
||||
armL = new ModelRenderer(this, 0, 77);
|
||||
armL.mirror = true;
|
||||
armL.setRotationPoint(5.0F, 2.0F, -0.0F);
|
||||
armL.addBox(-1.0F, 3.0F, -2.0F, 4, 7, 4, s);
|
||||
setRotateAngle(armL, 0.0F, 0.0F, 0F);
|
||||
body2 = new ModelRenderer(this, 0, 57);
|
||||
body2.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
body2.addBox(-4.0F, 6.0F, -2.5F, 8, 4, 5, s);
|
||||
setRotateAngle(body2, -0.08726646259971647F, 0.0F, 0.0F);
|
||||
helmbranch3 = new ModelRenderer(this, 34, 43);
|
||||
helmbranch3.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
helmbranch3.addBox(1.0F, -8.0F, -4.0F, 1, 2, 7, s);
|
||||
setRotateAngle(helmbranch3, 0.2617993877991494F, 0.0F, -1.0471975511965976F);
|
||||
armRbranch1 = new ModelRenderer(this, 51, 44);
|
||||
armRbranch1.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
armRbranch1.addBox(-3.5F, -5.0F, -1.0F, 1, 5, 2, s);
|
||||
setRotateAngle(armRbranch1, 0.0F, 0.0F, -0.7853981633974483F);
|
||||
belt = new ModelRenderer(this, 22, 66);
|
||||
belt.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
belt.addBox(-4.5F, 9.5F, -3.0F, 9, 3, 6, s);
|
||||
helmLeaf1 = new ModelRenderer(this, 50, 32);
|
||||
helmLeaf1.setRotationPoint(0.0F, 0.2F, 0.0F);
|
||||
helmLeaf1.addBox(-0.5F, -9.0F, -6.0F, 2, 3, 1, s);
|
||||
setRotateAngle(helmLeaf1, -0.2617993877991494F, 0.2617993877991494F, -0.5235987755982988F);
|
||||
armLpauldron = new ModelRenderer(this, 0, 66);
|
||||
armLpauldron.mirror = true;
|
||||
armLpauldron.setRotationPoint(0.0F, 0.0F, -0.0F);
|
||||
armLpauldron.addBox(-1.0F, -2.0F, -3.0F, 5, 5, 6, s);
|
||||
legL = new ModelRenderer(this, 16, 77);
|
||||
legL.mirror = true;
|
||||
legL.setRotationPoint(1.9F, 12.0F, 0.0F);
|
||||
legL.addBox(-2.0F, 0.0F, -2.0F, 4, 6, 4, s);
|
||||
setRotateAngle(legL, 0.0F, 0.0F, 0F);
|
||||
|
||||
helm.addChild(helm4);
|
||||
bootR.addChild(bootR1);
|
||||
helm.addChild(helmbranch4);
|
||||
helm.addChild(helmLeaf5);
|
||||
bootL.addChild(bootLbranch);
|
||||
helm.addChild(helmLeaf4);
|
||||
helm.addChild(helmLeaf2);
|
||||
helm.addChild(helm2);
|
||||
helm.addChild(helm3);
|
||||
helm.addChild(helmbranch1);
|
||||
bootL.addChild(bootL2);
|
||||
helm.addChild(helmbranch2);
|
||||
belt.addChild(legR);
|
||||
helm.addChild(helmLeaf6);
|
||||
armLpauldron.addChild(armLbranch1);
|
||||
bootR.addChild(bootRbranch);
|
||||
armRpauldron.addChild(armRbranch2);
|
||||
helm.addChild(helmLeaf3);
|
||||
armr.addChild(armRpauldron);
|
||||
armLpauldron.addChild(armLbranch2);
|
||||
body.addChild(body2);
|
||||
helm.addChild(helmbranch3);
|
||||
armRpauldron.addChild(armRbranch1);
|
||||
helm.addChild(helmLeaf1);
|
||||
armL.addChild(armLpauldron);
|
||||
belt.addChild(legL);
|
||||
float s = 0.01F;
|
||||
|
||||
//helm
|
||||
this.helmAnchor = new ModelRenderer(this, 0, 0);
|
||||
this.helmAnchor.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.helmAnchor.addBox(-1.0F, -2.0F, 0.0F, 2, 2, 2, s);
|
||||
this.helm = new ModelRenderer(this, 0, 0);
|
||||
this.helm.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.helm.addBox(-4.5F, -9.0F, -4.5F, 9, 11, 9, s);
|
||||
this.helmFront = new ModelRenderer(this, 36, 0);
|
||||
this.helmFront.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.helmFront.addBox(-1.5F, -10.0F, -5.5F, 3, 8, 7, s);
|
||||
this.helmLeaf1l = new ModelRenderer(this, 56, 14);
|
||||
this.helmLeaf1l.mirror = true;
|
||||
this.helmLeaf1l.setRotationPoint(4.5F, -6.0F, -2.5F);
|
||||
this.helmLeaf1l.addBox(0.0F, -3.0F, -1.0F, 2, 3, 1, s);
|
||||
this.setRotateAngle(helmLeaf1l, -0.2617993877991494F, -0.2617993877991494F, 0.5235987755982988F);
|
||||
this.helmLeaf2l = new ModelRenderer(this, 56, 8);
|
||||
this.helmLeaf2l.mirror = true;
|
||||
this.helmLeaf2l.setRotationPoint(4.5F, -6.0F, -0.5F);
|
||||
this.helmLeaf2l.addBox(0.0F, -5.0F, -1.0F, 2, 5, 1, s);
|
||||
this.setRotateAngle(helmLeaf2l, -0.5235987755982988F, -0.5235987755982988F, 0.7853981633974483F);
|
||||
this.helmLeaf3l = new ModelRenderer(this, 56, 0);
|
||||
this.helmLeaf3l.mirror = true;
|
||||
this.helmLeaf3l.setRotationPoint(4.5F, -6.0F, 2.5F);
|
||||
this.helmLeaf3l.addBox(0.0F, -7.0F, -1.0F, 2, 7, 1, s);
|
||||
this.setRotateAngle(helmLeaf3l, -0.7853981633974483F, -0.7853981633974483F, 0.7853981633974483F);
|
||||
this.helmLeaf1r = new ModelRenderer(this, 56, 14);
|
||||
this.helmLeaf1r.setRotationPoint(-4.5F, -6.0F, -2.5F);
|
||||
this.helmLeaf1r.addBox(-2.0F, -3.0F, -1.0F, 2, 3, 1, s);
|
||||
this.setRotateAngle(helmLeaf1r, -0.2617993877991494F, 0.2617993877991494F, -0.5235987755982988F);
|
||||
this.helmLeaf2r = new ModelRenderer(this, 56, 8);
|
||||
this.helmLeaf2r.setRotationPoint(-4.5F, -6.0F, -0.5F);
|
||||
this.helmLeaf2r.addBox(-2.0F, -5.0F, -1.0F, 2, 5, 1, s);
|
||||
this.setRotateAngle(helmLeaf2r, -0.5235987755982988F, 0.5235987755982988F, -0.7853981633974483F);
|
||||
this.helmLeaf3r = new ModelRenderer(this, 56, 0);
|
||||
this.helmLeaf3r.setRotationPoint(-4.5F, -6.0F, 2.5F);
|
||||
this.helmLeaf3r.addBox(-2.0F, -7.0F, -1.0F, 2, 7, 1, s);
|
||||
this.setRotateAngle(helmLeaf3r, -0.7853981633974483F, 0.7853981633974483F, -0.7853981633974483F);
|
||||
this.helmbranch1l = new ModelRenderer(this, 36, 15);
|
||||
this.helmbranch1l.mirror = true;
|
||||
this.helmbranch1l.setRotationPoint(2.5F, -9.0F, -3.5F);
|
||||
this.helmbranch1l.addBox(-1.0F, -1.0F, 0.0F, 2, 2, 7, s);
|
||||
this.setRotateAngle(helmbranch1l, 0.5235987755982988F, 0.2617993877991494F, 0.0F);
|
||||
this.helmbranch2l = new ModelRenderer(this, 36, 15);
|
||||
this.helmbranch2l.mirror = true;
|
||||
this.helmbranch2l.setRotationPoint(4.5F, -3.0F, -2.5F);
|
||||
this.helmbranch2l.addBox(-1.0F, -1.0F, 0.0F, 2, 2, 7, s);
|
||||
this.setRotateAngle(helmbranch2l, 0.08726646259971647F, 0.2617993877991494F, 0.0F);
|
||||
this.helmbranch1r = new ModelRenderer(this, 36, 15);
|
||||
this.helmbranch1r.setRotationPoint(-2.5F, -9.0F, -3.5F);
|
||||
this.helmbranch1r.addBox(-1.0F, -1.0F, 0.0F, 2, 2, 7, s);
|
||||
this.setRotateAngle(helmbranch1r, 0.5235987755982988F, -0.2617993877991494F, 0.0F);
|
||||
this.helmbranch2r = new ModelRenderer(this, 36, 15);
|
||||
this.helmbranch2r.setRotationPoint(-4.5F, -3.0F, -2.5F);
|
||||
this.helmbranch2r.addBox(-1.0F, -1.0F, 0.0F, 2, 2, 7, s);
|
||||
this.setRotateAngle(helmbranch2r, 0.08726646259971647F, -0.2617993877991494F, 0.0F);
|
||||
|
||||
//body
|
||||
this.bodyAnchor = new ModelRenderer(this, 0, 0);
|
||||
this.bodyAnchor.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.bodyAnchor.addBox(-1.0F, 0.0F, -1.0F, 2, 2, 2, s);
|
||||
this.bodyTop = new ModelRenderer(this, 0, 20);
|
||||
this.bodyTop.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.bodyTop.addBox(-5.5F, 0.0F, -3.0F, 11, 6, 6, s);
|
||||
this.bodyBottom = new ModelRenderer(this, 0, 32);
|
||||
this.bodyBottom.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.bodyBottom.addBox(-4.5F, 5.0F, -2.5F, 9, 3, 5, s);
|
||||
|
||||
//armL
|
||||
this.armLAnchor = new ModelRenderer(this, 0, 0);
|
||||
this.armLAnchor.mirror = true;
|
||||
this.armLAnchor.setRotationPoint(4.0F, 2.0F, 0.0F);
|
||||
this.armLAnchor.addBox(0.0F, -1.0F, -1.0F, 2, 2, 2, s);
|
||||
this.armL = new ModelRenderer(this, 0, 52);
|
||||
this.armL.mirror = true;
|
||||
this.armL.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.armL.addBox(-1.5F, 3.0F, -2.49F, 5, 8, 5, s);
|
||||
this.armLpauldron = new ModelRenderer(this, 0, 40);
|
||||
this.armLpauldron.mirror = true;
|
||||
this.armLpauldron.setRotationPoint(1.5F, 0.0F, 0.0F);
|
||||
this.armLpauldron.addBox(-1.0F, -3.0F, -3.0F, 6, 6, 6, s);
|
||||
this.armLbranch1 = new ModelRenderer(this, 36, 15);
|
||||
this.armLbranch1.mirror = true;
|
||||
this.armLbranch1.setRotationPoint(4.0F, -3.0F, -1.0F);
|
||||
this.armLbranch1.addBox(-1.0F, -1.0F, 0.0F, 2, 2, 7, s);
|
||||
this.setRotateAngle(armLbranch1, 0.5235987755982988F, 0.5235987755982988F, 0.0F);
|
||||
this.armLbranch2 = new ModelRenderer(this, 36, 24);
|
||||
this.armLbranch2.mirror = true;
|
||||
this.armLbranch2.setRotationPoint(5.0F, -2.0F, 0.0F);
|
||||
this.armLbranch2.addBox(-1.0F, 0.0F, 0.0F, 2, 2, 5, s);
|
||||
this.setRotateAngle(armLbranch2, 0.08726646259971647F, 0.7853981633974483F, 0.0F);
|
||||
|
||||
//armR
|
||||
this.armRAnchor = new ModelRenderer(this, 0, 0);
|
||||
this.armRAnchor.mirror = true;
|
||||
this.armRAnchor.setRotationPoint(-4.0F, 2.0F, 0.0F);
|
||||
this.armRAnchor.addBox(-2.0F, -1.0F, -1.0F, 2, 2, 2, s);
|
||||
this.armR = new ModelRenderer(this, 0, 52);
|
||||
this.armR.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.armR.addBox(-3.5F, 3.0F, -2.51F, 5, 8, 5, s);
|
||||
this.armRpauldron = new ModelRenderer(this, 0, 40);
|
||||
this.armRpauldron.setRotationPoint(-1.5F, 0.0F, 0.0F);
|
||||
this.armRpauldron.addBox(-5.0F, -3.0F, -3.0F, 6, 6, 6, s);
|
||||
this.armRbranch1 = new ModelRenderer(this, 36, 15);
|
||||
this.armRbranch1.setRotationPoint(-4.0F, -3.0F, -1.0F);
|
||||
this.armRbranch1.addBox(-1.0F, -1.0F, 0.0F, 2, 2, 7, s);
|
||||
this.setRotateAngle(armRbranch1, 0.5235987755982988F, -0.5235987755982988F, 0.0F);
|
||||
this.armRbranch2 = new ModelRenderer(this, 36, 24);
|
||||
this.armRbranch2.setRotationPoint(-5.0F, -2.0F, 0.0F);
|
||||
this.armRbranch2.addBox(-1.0F, 0.0F, 0.0F, 2, 2, 5, s);
|
||||
this.setRotateAngle(armRbranch2, 0.08726646259971647F, -0.7853981633974483F, 0.0F);
|
||||
|
||||
//pants
|
||||
this.pantsAnchor = new ModelRenderer(this, 0, 0);
|
||||
this.pantsAnchor.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.pantsAnchor.addBox(-1.0F, 0.0F, -1.0F, 2, 2, 2, s);
|
||||
this.belt = new ModelRenderer(this, 0, 65);
|
||||
this.belt.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.belt.addBox(-4.5F, 8.0F, -3.0F, 9, 5, 6, s);
|
||||
this.legL = new ModelRenderer(this, 0, 76);
|
||||
this.legL.mirror = true;
|
||||
this.legL.setRotationPoint(1.9F, 12.0F, 0.0F);
|
||||
this.legL.addBox(-2.39F, -0.01F, -2.49F, 5, 6, 5, s);
|
||||
this.legR = new ModelRenderer(this, 0, 76);
|
||||
this.legR.setRotationPoint(-1.9F, 12.0F, 0.0F);
|
||||
this.legR.addBox(-2.61F, -0.01F, -2.51F, 5, 6, 5, s);
|
||||
|
||||
//boots
|
||||
this.bootL = new ModelRenderer(this, 0, 94);
|
||||
this.bootL.mirror = true;
|
||||
this.bootL.setRotationPoint(1.9F, 12.0F, 0.0F);
|
||||
this.bootL.addBox(-2.39F, 8.5F, -2.49F, 5, 4, 5, s);
|
||||
this.bootLtop = new ModelRenderer(this, 0, 87);
|
||||
this.bootLtop.mirror = true;
|
||||
this.bootLtop.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.bootLtop.addBox(-2.39F, 6.0F, -2.49F, 6, 2, 5, s);
|
||||
this.bootLbranch1 = new ModelRenderer(this, 36, 15);
|
||||
this.bootLbranch1.mirror = true;
|
||||
this.bootLbranch1.setRotationPoint(3.5F, 6.0F, 0.0F);
|
||||
this.bootLbranch1.addBox(-1.0F, -1.0F, 0.0F, 2, 2, 7,s);
|
||||
this.setRotateAngle(bootLbranch1, 0.2617993877991494F, 0.2617993877991494F, -0.08726646259971647F);
|
||||
this.bootLbranch2 = new ModelRenderer(this, 36, 24);
|
||||
this.bootLbranch2.mirror = true;
|
||||
this.bootLbranch2.setRotationPoint(2.5F, 9.0F, 0.0F);
|
||||
this.bootLbranch2.addBox(-1.0F, -1.0F, 0.0F, 2, 2, 5, s);
|
||||
this.setRotateAngle(bootLbranch2, 0.08726646259971647F, 0.7853981633974483F, 0.0F);
|
||||
this.bootR = new ModelRenderer(this, 0, 94);
|
||||
this.bootR.setRotationPoint(-1.9F, 12.0F, 0.0F);
|
||||
this.bootR.addBox(-2.61F, 8.5F, -2.51F, 5, 4, 5, s);
|
||||
this.bootRtop = new ModelRenderer(this, 0, 87);
|
||||
this.bootRtop.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
this.bootRtop.addBox(-3.61F, 6.0F, -2.51F, 6, 2, 5, s);
|
||||
this.bootRbranch1 = new ModelRenderer(this, 36, 15);
|
||||
this.bootRbranch1.setRotationPoint(-3.5F, 6.0F, 0.0F);
|
||||
this.bootRbranch1.addBox(-1.0F, -1.0F, 0.0F, 2, 2, 7, s);
|
||||
this.setRotateAngle(bootRbranch1, 0.2617993877991494F, -0.2617993877991494F, 0.08726646259971647F);
|
||||
this.bootRbranch2 = new ModelRenderer(this, 36, 24);
|
||||
this.bootRbranch2.setRotationPoint(-2.5F, 9.0F, 0.5F);
|
||||
this.bootRbranch2.addBox(-1.0F, -1.0F, 0.0F, 2, 2, 5, s);
|
||||
this.setRotateAngle(bootRbranch2, 0.08726646259971647F, -0.7853981633974483F, 0.0F);
|
||||
|
||||
//hierarchy
|
||||
this.helmAnchor.addChild(this.helm);
|
||||
this.helm.addChild(this.helmFront);
|
||||
this.helm.addChild(this.helmLeaf1l);
|
||||
this.helm.addChild(this.helmLeaf2l);
|
||||
this.helm.addChild(this.helmLeaf3l);
|
||||
this.helm.addChild(this.helmLeaf1r);
|
||||
this.helm.addChild(this.helmLeaf2r);
|
||||
this.helm.addChild(this.helmLeaf3r);
|
||||
this.helm.addChild(this.helmbranch1l);
|
||||
this.helm.addChild(this.helmbranch2l);
|
||||
this.helm.addChild(this.helmbranch1r);
|
||||
this.helm.addChild(this.helmbranch2r);
|
||||
|
||||
this.bodyAnchor.addChild(this.bodyTop);
|
||||
this.bodyTop.addChild(this.bodyBottom);
|
||||
this.armLAnchor.addChild(this.armL);
|
||||
this.armL.addChild(this.armLpauldron);
|
||||
this.armLpauldron.addChild(this.armLbranch1);
|
||||
this.armLpauldron.addChild(this.armLbranch2);
|
||||
this.armRAnchor.addChild(this.armR);
|
||||
this.armR.addChild(this.armRpauldron);
|
||||
this.armRpauldron.addChild(this.armRbranch1);
|
||||
this.armRpauldron.addChild(this.armRbranch2);
|
||||
|
||||
this.pantsAnchor.addChild(this.belt);
|
||||
this.belt.addChild(this.legL);
|
||||
this.belt.addChild(this.legR);
|
||||
|
||||
this.bootL.addChild(bootLtop);
|
||||
this.bootLtop.addChild(bootLbranch1);
|
||||
this.bootLtop.addChild(bootLbranch2);
|
||||
this.bootR.addChild(bootRtop);
|
||||
this.bootRtop.addChild(bootRbranch1);
|
||||
this.bootRtop.addChild(bootRbranch2);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void render(@Nonnull Entity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scale) {
|
||||
helm.showModel = slot == EntityEquipmentSlot.HEAD;
|
||||
body.showModel = slot == EntityEquipmentSlot.CHEST;
|
||||
armr.showModel = slot == EntityEquipmentSlot.CHEST;
|
||||
armL.showModel = slot == EntityEquipmentSlot.CHEST;
|
||||
|
||||
helmAnchor.showModel = slot == EntityEquipmentSlot.HEAD;
|
||||
bodyAnchor.showModel = slot == EntityEquipmentSlot.CHEST;
|
||||
armLAnchor.showModel = slot == EntityEquipmentSlot.CHEST;
|
||||
armRAnchor.showModel = slot == EntityEquipmentSlot.CHEST;
|
||||
legR.showModel = slot == EntityEquipmentSlot.LEGS;
|
||||
legL.showModel = slot == EntityEquipmentSlot.LEGS;
|
||||
bootL.showModel = slot == EntityEquipmentSlot.FEET;
|
||||
bootR.showModel = slot == EntityEquipmentSlot.FEET;
|
||||
|
||||
bipedHeadwear.showModel = false;
|
||||
|
||||
bipedHead = helm;
|
||||
bipedBody = body;
|
||||
bipedRightArm = armr;
|
||||
bipedLeftArm = armL;
|
||||
bipedHead = helmAnchor;
|
||||
bipedBody = bodyAnchor;
|
||||
bipedRightArm = armRAnchor;
|
||||
bipedLeftArm = armLAnchor;
|
||||
if(slot == EntityEquipmentSlot.LEGS) {
|
||||
bipedBody = pantsAnchor;
|
||||
bipedRightLeg = legR;
|
||||
bipedLeftLeg = legL;
|
||||
} else {
|
||||
|
||||
@@ -56,17 +56,17 @@ public class RenderTilePylon extends TileEntitySpecialRenderer<TilePylon> {
|
||||
default:
|
||||
case MANA: {
|
||||
modelPath = MANA_MODEL_PATH;
|
||||
textures = ImmutableMap.of("#pylon", "botania:model/pylon");
|
||||
textures = ImmutableMap.of("#pylon", "botania:model/pylon_0");
|
||||
break;
|
||||
}
|
||||
case NATURA: {
|
||||
modelPath = NATURA_MODEL_PATH;
|
||||
textures = ImmutableMap.of("#pylon", "botania:model/pylon1");
|
||||
textures = ImmutableMap.of("#pylon", "botania:model/pylon_1");
|
||||
break;
|
||||
}
|
||||
case GAIA: {
|
||||
modelPath = GAIA_MODEL_PATH;
|
||||
textures = ImmutableMap.of("#pylon", "botania:model/pylon2");
|
||||
textures = ImmutableMap.of("#pylon", "botania:model/pylon_2");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,13 +27,13 @@ public class RenderTileSparkChanger extends TileEntitySpecialRenderer<TileSparkC
|
||||
GlStateManager.pushMatrix();
|
||||
GlStateManager.translate(d0, d1, d2);
|
||||
GlStateManager.rotate(90F, 1F, 0F, 0F);
|
||||
GlStateManager.translate(0.8F, 0.2F, -0.22F);
|
||||
GlStateManager.translate(1.0F, -0.125F, -0.25F);
|
||||
GlStateManager.color(1F, 1F, 1F, 1F);
|
||||
ItemStack stack = tileentity.getItemHandler().getStackInSlot(0);
|
||||
if(!stack.isEmpty()) {
|
||||
GlStateManager.pushMatrix();
|
||||
Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.LOCATION_BLOCKS_TEXTURE);
|
||||
float s = 0.6F;
|
||||
float s = 1.0F;
|
||||
GlStateManager.scale(s, s, s);
|
||||
GlStateManager.rotate(180F, 0F, 1F, 0F);
|
||||
GlStateManager.translate(0.5, 0.5, 0);
|
||||
|
||||
@@ -10,6 +10,11 @@
|
||||
*/
|
||||
package vazkii.botania.client.render.tile;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.util.Random;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
import net.minecraft.block.BlockCarpet;
|
||||
import net.minecraft.block.state.IBlockState;
|
||||
import net.minecraft.client.Minecraft;
|
||||
@@ -28,19 +33,17 @@ import vazkii.botania.client.model.ModelSpreader;
|
||||
import vazkii.botania.common.block.ModBlocks;
|
||||
import vazkii.botania.common.block.tile.mana.TileSpreader;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
import java.awt.Color;
|
||||
import java.util.Random;
|
||||
|
||||
public class RenderTileSpreader extends TileEntitySpecialRenderer<TileSpreader> {
|
||||
|
||||
private static final ResourceLocation texture = new ResourceLocation(LibResources.MODEL_SPREADER);
|
||||
private static final ResourceLocation textureRs = new ResourceLocation(LibResources.MODEL_SPREADER_REDSTONE);
|
||||
private static final ResourceLocation textureDw = new ResourceLocation(LibResources.MODEL_SPREADER_DREAMWOOD);
|
||||
|
||||
private static final ResourceLocation textureG = new ResourceLocation(LibResources.MODEL_SPREADER_GAIA);
|
||||
|
||||
private static final ResourceLocation textureHalloween = new ResourceLocation(LibResources.MODEL_SPREADER_HALLOWEEN);
|
||||
private static final ResourceLocation textureRsHalloween = new ResourceLocation(LibResources.MODEL_SPREADER_REDSTONE_HALLOWEEN);
|
||||
private static final ResourceLocation textureDwHalloween = new ResourceLocation(LibResources.MODEL_SPREADER_DREAMWOOD_HALLOWEEN);
|
||||
private static final ResourceLocation textureGHalloween = new ResourceLocation(LibResources.MODEL_SPREADER_GAIA_HALLOWEEN);
|
||||
|
||||
private static final ModelSpreader model = new ModelSpreader();
|
||||
|
||||
@@ -49,7 +52,7 @@ public class RenderTileSpreader extends TileEntitySpecialRenderer<TileSpreader>
|
||||
if(!spreader.getWorld().isBlockLoaded(spreader.getPos(), false)
|
||||
|| spreader.getWorld().getBlockState(spreader.getPos()).getBlock() != ModBlocks.spreader)
|
||||
return;
|
||||
|
||||
|
||||
GlStateManager.pushMatrix();
|
||||
GlStateManager.enableRescaleNormal();
|
||||
GlStateManager.color(1F, 1F, 1F, 1F);
|
||||
@@ -61,9 +64,9 @@ public class RenderTileSpreader extends TileEntitySpecialRenderer<TileSpreader>
|
||||
GlStateManager.rotate(spreader.rotationY, 1F, 0F, 0F);
|
||||
GlStateManager.translate(0F, 1F, 0F);
|
||||
|
||||
ResourceLocation r = spreader.isRedstone() ? textureRs : spreader.isDreamwood() ? textureDw : texture;
|
||||
ResourceLocation r = spreader.isRedstone() ? textureRs : spreader.isDreamwood() ? textureDw : spreader.isULTRA_SPREADER() ? textureG : texture;
|
||||
if(ClientProxy.dootDoot)
|
||||
r = spreader.isRedstone() ? textureRsHalloween : spreader.isDreamwood() ? textureDwHalloween : textureHalloween;
|
||||
r = spreader.isRedstone() ? textureRsHalloween : spreader.isDreamwood() ? textureDwHalloween : spreader.isULTRA_SPREADER() ? textureGHalloween : textureHalloween;
|
||||
|
||||
Minecraft.getMinecraft().renderEngine.bindTexture(r);
|
||||
GlStateManager.scale(1F, -1F, -1F);
|
||||
|
||||
@@ -16,7 +16,9 @@ import net.minecraft.block.state.IBlockState;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.math.AxisAlignedBB;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
import vazkii.botania.api.lexicon.ILexiconable;
|
||||
import vazkii.botania.api.lexicon.LexiconEntry;
|
||||
@@ -29,12 +31,30 @@ import javax.annotation.Nonnull;
|
||||
|
||||
public class BlockDistributor extends BlockMod implements ILexiconable {
|
||||
|
||||
private static final AxisAlignedBB AABB = new AxisAlignedBB(0.25, 0.0, 0.25, 0.75, 1.0, 0.75);
|
||||
|
||||
public BlockDistributor() {
|
||||
super(Material.ROCK, LibBlockNames.DISTRIBUTOR);
|
||||
setHardness(2.0F);
|
||||
setResistance(10.0F);
|
||||
setSoundType(SoundType.STONE);
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess world, BlockPos pos) {
|
||||
return AABB;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isOpaqueCube(IBlockState state) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isFullCube(IBlockState state) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasTileEntity(IBlockState state) {
|
||||
|
||||
@@ -51,7 +51,7 @@ import java.util.List;
|
||||
|
||||
public class BlockForestDrum extends BlockMod implements IManaTrigger, ILexiconable {
|
||||
|
||||
private static final AxisAlignedBB AABB = new AxisAlignedBB(3/16.0, 0, 3/16.0, 13/16.0, 14/16.0, 13/16.0);
|
||||
private static final AxisAlignedBB AABB = new AxisAlignedBB(3/16.0, 1/16.0, 3/16.0, 13/16.0, 15/16.0, 13/16.0);
|
||||
|
||||
public BlockForestDrum() {
|
||||
super(Material.WOOD, LibBlockNames.FOREST_DRUM);
|
||||
|
||||
@@ -458,7 +458,7 @@ public class TileSpreader extends TileSimpleInventory implements IManaCollector,
|
||||
public boolean isDreamwood() {
|
||||
updateContainingBlockInfo();
|
||||
int variant = getBlockMetadata();
|
||||
return world == null ? staticDreamwood : variant == SpreaderVariant.ELVEN.ordinal() || variant == SpreaderVariant.GAIA.ordinal();
|
||||
return world == null ? staticDreamwood : variant == SpreaderVariant.ELVEN.ordinal();
|
||||
}
|
||||
|
||||
public boolean isULTRA_SPREADER() {
|
||||
|
||||
Reference in new issue
Block a user