mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
Update modifiers, start travellers gear
This commit is contained in:
1 parent
0230307f0a
commit
c525493545
96 files changed
+2827
-1573
No files matched your search
@@ -0,0 +1,41 @@
|
||||
package tconstruct.armor.model;
|
||||
|
||||
import net.minecraft.client.model.ModelBiped;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
|
||||
public class HiddenPlayerModel extends ModelBiped
|
||||
{
|
||||
public HiddenPlayerModel(float size, int slot)
|
||||
{
|
||||
super(size, 0, 64, 32);
|
||||
|
||||
if (slot != 0) //Head
|
||||
{
|
||||
this.bipedHead.isHidden = true;
|
||||
this.bipedHeadwear.isHidden = true;
|
||||
}
|
||||
if (slot != 1 && slot != 5) //Chest, belt
|
||||
{
|
||||
this.bipedBody.isHidden = true;
|
||||
}
|
||||
if (slot != 2 && slot != 3) //Legs, shoes
|
||||
{
|
||||
this.bipedRightLeg.isHidden = true;
|
||||
this.bipedLeftLeg.isHidden = true;
|
||||
}
|
||||
if (slot != 4) //Gloves
|
||||
{
|
||||
this.bipedRightArm.isHidden = true;
|
||||
this.bipedLeftArm.isHidden = true;
|
||||
}
|
||||
if (slot != 6) //Ears
|
||||
{
|
||||
this.bipedEars.isHidden = true;
|
||||
}
|
||||
if (slot != 7) //Cloak
|
||||
{
|
||||
this.bipedCloak.isHidden = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user