当前位置: 首页>>代码示例>>Java>>正文


Java ModelRenderer.setRotationPoint方法代码示例

本文整理汇总了Java中net.minecraft.client.model.ModelRenderer.setRotationPoint方法的典型用法代码示例。如果您正苦于以下问题:Java ModelRenderer.setRotationPoint方法的具体用法?Java ModelRenderer.setRotationPoint怎么用?Java ModelRenderer.setRotationPoint使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.minecraft.client.model.ModelRenderer的用法示例。


在下文中一共展示了ModelRenderer.setRotationPoint方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: ModelPressureRegulator

import net.minecraft.client.model.ModelRenderer; //导入方法依赖的package包/类
public ModelPressureRegulator(ModuleRegulatorTube module) {
    textureWidth = 64;
    textureHeight = 32;

    shape1 = new ModelRenderer(this, 0, 0);
    shape1.addBox(0F, 0F, 0F, 7, 7, 7);
    shape1.setRotationPoint(-3.5F, 12.5F, -3F);
    shape1.setTextureSize(64, 32);
    shape1.mirror = true;
    setRotation(shape1, 0F, 0F, 0F);
    valve = new ModelRenderer(this, 0, 16);
    valve.addBox(0F, 0F, 0F, 4, 4, 4);
    valve.setRotationPoint(-2F, 14F, 4F);
    valve.setTextureSize(64, 32);
    valve.mirror = true;
    setRotation(valve, 0F, 0F, 0F);
}
 
开发者ID:TeamPneumatic,项目名称:pnc-repressurized,代码行数:18,代码来源:ModelPressureRegulator.java

示例2: ModelCharging

import net.minecraft.client.model.ModelRenderer; //导入方法依赖的package包/类
public ModelCharging(ModuleCharging charging) {
    textureWidth = 64;
    textureHeight = 32;

    shape1 = new ModelRenderer(this, 22, 0);
    shape1.addBox(0F, 0F, 0F, 2, 2, 2);
    shape1.setRotationPoint(1F, 15F, 8F);
    shape1.setTextureSize(64, 32);
    shape1.mirror = true;
    setRotation(shape1, 0F, 3.141593F, 0F);
    shape2 = new ModelRenderer(this, 12, 0);
    shape2.addBox(0F, 0F, 0F, 3, 3, 2);
    shape2.setRotationPoint(1.5F, 14.5F, 6F);
    shape2.setTextureSize(64, 32);
    shape2.mirror = true;
    setRotation(shape2, 0F, 3.141593F, 0F);
    shape3 = new ModelRenderer(this, 0, 0);
    shape3.addBox(0F, 0F, 0F, 4, 4, 2);
    shape3.setRotationPoint(2F, 14F, 4F);
    shape3.setTextureSize(64, 32);
    shape3.mirror = true;
    setRotation(shape3, 0F, 3.141593F, 0F);
}
 
开发者ID:TeamPneumatic,项目名称:pnc-repressurized,代码行数:24,代码来源:ModelCharging.java

示例3: ModelGrenade

import net.minecraft.client.model.ModelRenderer; //导入方法依赖的package包/类
public ModelGrenade() {
	textureWidth = 32;
	textureHeight = 32;

	Shape1 = new ModelRenderer(this, 0, 0);
	Shape1.addBox(0F, 0F, 0F, 4, 4, 5);
	Shape1.setRotationPoint(-2F, -2F, -1F);
	Shape1.setTextureSize(32, 32);
	Shape2 = new ModelRenderer(this, 0, 9);
	Shape2.addBox(0F, 0F, 0F, 3, 3, 1);
	Shape2.setRotationPoint(-1.5F, -1.5F, 4F);
	Shape2.setTextureSize(32, 32);
	Shape3 = new ModelRenderer(this, 0, 9);
	Shape3.addBox(0F, 0F, 0F, 3, 3, 1);
	Shape3.setRotationPoint(-1.5F, -1.5F, -2F);
	Shape3.setTextureSize(32, 32);
	Shape4 = new ModelRenderer(this, 18, 0);
	Shape4.addBox(0F, 0F, 0F, 4, 4, 1);
	Shape4.setRotationPoint(-2F, -2F, -3F);
	Shape4.setTextureSize(32, 32);
}
 
开发者ID:rafradek,项目名称:Mods,代码行数:22,代码来源:ModelGrenade.java

示例4: ModelSurveyFlag

import net.minecraft.client.model.ModelRenderer; //导入方法依赖的package包/类
public ModelSurveyFlag(){
  	textureWidth = 32;
      textureHeight = 32;
      
Shape1 = new ModelRenderer(this, 1, 1);
Shape1.addBox(-1F, 0F, -1F, 2, 13, 2);
Shape1.setRotationPoint(0F, 0F, 0F);
Shape1.setTextureSize(32, 32);
Shape2 = new ModelRenderer(this, 10, 1);
Shape2.addBox(-1.5F, 13F, -1.5F, 3, 3, 3);
Shape2.setRotationPoint(0F, 0F, 0F);
Shape2.setTextureSize(32, 32);
Shape3 = new ModelRenderer(this, 10, 8);
Shape3.addBox(-0.5F, 9F, -8F, 1, 4, 7);
Shape3.setRotationPoint(0F, 0F, 0F);
Shape3.setTextureSize(32, 32);
  }
 
开发者ID:DonBruce64,项目名称:OpenFlexiTrack,代码行数:18,代码来源:ModelSurveyFlag.java

示例5: Mortar_Model

import net.minecraft.client.model.ModelRenderer; //导入方法依赖的package包/类
public Mortar_Model()
{
	textureWidth = 64;
	textureHeight = 32;
	
	Barrel = new ModelRenderer(this, 0, 0);
	Barrel.addBox(0F, 0F, 0F, 18, 5, 5);
	Barrel.setRotationPoint(0F, 0F, -1.5F);
	Barrel.setTextureSize(64, 32);
	Barrel.mirror = true;
	setRotation(Barrel, 0F, 0F, 0F);
	Stock2 = new ModelRenderer(this, 0, 11);
	Stock2.addBox(0F, 0F, 0F, 5, 3, 2);
	Stock2.setRotationPoint(-4F, 1F, 0F);
	Stock2.setTextureSize(64, 32);
	Stock2.mirror = true;
	setRotation(Stock2, 0F, 0F, 0F);
	Stock3 = new ModelRenderer(this, 15, 11);
	Stock3.addBox(0F, 0F, 0F, 6, 3, 2);
	Stock3.setRotationPoint(-8F, 2F, 0F);
	Stock3.setTextureSize(64, 32);
	Stock3.mirror = true;
	setRotation(Stock3, 0F, 0F, 0F);
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:25,代码来源:Mortar_Model.java

示例6: ModelSyringe

import net.minecraft.client.model.ModelRenderer; //导入方法依赖的package包/类
public ModelSyringe() {
	textureWidth = 32;
	textureHeight = 32;

	Shape1 = new ModelRenderer(this, 0, 6);
	Shape1.addBox(0F, 0F, 1F, 1, 1, 5);
	Shape1.setRotationPoint(0F, 0F, 0F);
	Shape1.setTextureSize(32, 32);
	Shape1.mirror = true;
	Shape2 = new ModelRenderer(this, 0, 0);
	Shape2.addBox(-1F, -1F, 0F, 3, 3, 1);
	Shape2.setRotationPoint(0F, 0F, 0F);
	Shape2.setTextureSize(32, 32);
	Shape2.mirror = true;
	Shape3 = new ModelRenderer(this, 8, 0);
	Shape3.addBox(-0.5F, -0.5F, -3F, 2, 2, 3);
	Shape3.setRotationPoint(0F, 0F, 0F);
	Shape3.setTextureSize(32, 32);
	Shape3.mirror = true;
	Shape4 = new ModelRenderer(this, 0, 0);
	Shape4.addBox(-1F, -1F, -4F, 3, 3, 1);
	Shape4.setRotationPoint(0F, 0F, 0F);
	Shape4.setTextureSize(32, 32);
	Shape4.mirror = true;
}
 
开发者ID:rafradek,项目名称:Mods,代码行数:26,代码来源:ModelSyringe.java

示例7: Potatosser_Model

import net.minecraft.client.model.ModelRenderer; //导入方法依赖的package包/类
public Potatosser_Model()
{
	textureWidth = 64;
	textureHeight = 32;
	
	Barrel1 = new ModelRenderer(this, 0, 13);
	Barrel1.addBox(0F, 0F, 0F, 6, 4, 3);
	Barrel1.setRotationPoint(0F, -1F, -1.5F);
	Barrel1.setTextureSize(64, 32);
	Barrel1.mirror = true;
	setRotation(Barrel1, 0F, 0F, 0F);
	Barrel2 = new ModelRenderer(this, 0, 0);
	Barrel2.addBox(0F, 0F, 0F, 16, 6, 6);
	Barrel2.setRotationPoint(6F, -1F, -3F);
	Barrel2.setTextureSize(64, 32);
	Barrel2.mirror = true;
	setRotation(Barrel2, 0F, 0F, 0F);
	Stock1 = new ModelRenderer(this, 19, 13);
	Stock1.addBox(0F, 0F, 0F, 6, 3, 2);
	Stock1.setRotationPoint(-5F, 1F, -1F);
	Stock1.setTextureSize(64, 32);
	Stock1.mirror = true;
	setRotation(Stock1, 0F, 0F, 0F);
	Stock2 = new ModelRenderer(this, 19, 13);
	Stock2.addBox(0F, 0F, 0F, 6, 3, 2);
	Stock2.setRotationPoint(-8F, 2F, -1F);
	Stock2.setTextureSize(64, 32);
	Stock2.mirror = true;
	setRotation(Stock2, 0F, 0F, 0F);
	Trigger = new ModelRenderer(this, 0, 21);
	Trigger.addBox(0F, 0F, 0F, 7, 2, 1);
	Trigger.setRotationPoint(-1F, 3F, -0.5F);
	Trigger.setTextureSize(64, 32);
	Trigger.mirror = true;
	setRotation(Trigger, 0F, 0F, 0F);
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:37,代码来源:Potatosser_Model.java

示例8: ModelFlowDetector

import net.minecraft.client.model.ModelRenderer; //导入方法依赖的package包/类
public ModelFlowDetector(ModuleFlowDetector flowDetector){
    textureWidth = 64;
    textureHeight = 32;

    shape1 = new ModelRenderer(this, 0, 8);
    shape1.addBox(-1F, -3F, -2F, 2, 1, 5);
    shape1.setRotationPoint(0F, 16F, 4.5F);
    shape1.setTextureSize(64, 32);
    shape1.mirror = true;
    setRotation(shape1, 0F, 0F, 0F);
    this.flowDetector = flowDetector;
}
 
开发者ID:TeamPneumatic,项目名称:pnc-repressurized,代码行数:13,代码来源:ModelFlowDetector.java

示例9: CoinTosser_Model

import net.minecraft.client.model.ModelRenderer; //导入方法依赖的package包/类
public CoinTosser_Model()
{
	textureWidth = 64;
	textureHeight = 32;
	
	Barrel = new ModelRenderer(this, 0, 24);
	Barrel.addBox(0F, 0F, 0F, 18, 4, 4);
	Barrel.setRotationPoint(0F, -1F, -1F);
	Barrel.setTextureSize(64, 32);
	Barrel.mirror = true;
	setRotation(Barrel, 0F, 0F, 0F);
	
	Stock1 = new ModelRenderer(this, 45, 27);
	Stock1.addBox(0F, 0F, 0F, 7, 3, 2);
	Stock1.setRotationPoint(-6F, 1F, 0F);
	Stock1.setTextureSize(64, 32);
	Stock1.mirror = true;
	setRotation(Stock1, 0F, 0F, 0F);
	
	Stock2 = new ModelRenderer(this, 45, 27);
	Stock2.addBox(0F, 0F, 0F, 7, 3, 2);
	Stock2.setRotationPoint(-11F, 2F, -0.1F);
	Stock2.setTextureSize(64, 32);
	Stock2.mirror = true;
	setRotation(Stock2, 0F, 0F, 0F);
	
	Ammo = new ModelRenderer(this, 0, 18);
	Ammo.addBox(0F, 0F, 0F, 12, 2, 3);
	Ammo.setRotationPoint(4F, 3F, -0.5F);
	Ammo.setTextureSize(64, 32);
	Ammo.mirror = true;
	setRotation(Ammo, 0F, 0F, 0F);
	
	Trigger = new ModelRenderer(this, 45, 24);
	Trigger.addBox(0F, 0F, 0F, 3, 1, 1);
	Trigger.setRotationPoint(-1F, -2F, 0.5F);
	Trigger.setTextureSize(64, 32);
	Trigger.mirror = true;
	setRotation(Trigger, 0F, 0F, 0F);
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:41,代码来源:CoinTosser_Model.java

示例10: ModelElevatorBase

import net.minecraft.client.model.ModelRenderer; //导入方法依赖的package包/类
public ModelElevatorBase() {
    textureWidth = 64;
    textureHeight = 64;

    pole1 = new ModelRenderer(this, 0, 17);
    pole1.addBox(0F, 0F, 0F, 2, 14, 2);
    pole1.setRotationPoint(-1F, 9F, -1F);
    pole1.setTextureSize(64, 64);
    pole1.mirror = true;
    setRotation(pole1, 0F, 0F, 0F);
    pole2 = new ModelRenderer(this, 0, 17);
    pole2.addBox(0F, 0F, 0F, 4, 14, 4);
    pole2.setRotationPoint(-2F, 9F, -2F);
    pole2.setTextureSize(64, 64);
    pole2.mirror = true;
    setRotation(pole2, 0F, 0F, 0F);
    pole3 = new ModelRenderer(this, 0, 17);
    pole3.addBox(0F, 0F, 0F, 6, 14, 6);
    pole3.setRotationPoint(-3F, 9F, -3F);
    pole3.setTextureSize(64, 64);
    pole3.mirror = true;
    setRotation(pole3, 0F, 0F, 0F);
    pole4 = new ModelRenderer(this, 0, 17);
    pole4.addBox(0F, 0F, 0F, 8, 14, 8);
    pole4.setRotationPoint(-4F, 9F, -4F);
    pole4.setTextureSize(64, 64);
    pole4.mirror = true;
    setRotation(pole4, 0F, 0F, 0F);
    floor = new ModelRenderer(this, 0, 0);
    floor.addBox(0F, 0F, 0F, 16, 1, 16);
    floor.setRotationPoint(-8F, 8F, -8F);
    floor.setTextureSize(64, 64);
    floor.mirror = true;
    setRotation(floor, 0F, 0F, 0F);
}
 
开发者ID:TeamPneumatic,项目名称:pnc-repressurized,代码行数:36,代码来源:ModelElevatorBase.java

示例11: MediGun_Model

import net.minecraft.client.model.ModelRenderer; //导入方法依赖的package包/类
public MediGun_Model()
{
	textureWidth = 32;
	textureHeight = 32;

	Barrel = new ModelRenderer(this, 0, 0);
	Barrel.addBox(0F, 0F, 0F, 13, 4, 3);
	Barrel.setRotationPoint(0F, 0F, -1F);
	Barrel.setTextureSize(32, 32);
	Barrel.mirror = true;
	setRotation(Barrel, 0F, 0F, 0F);
	Beacon = new ModelRenderer(this, 0, 8);
	Beacon.addBox(0F, 0F, 0F, 4, 3, 2);
	Beacon.setRotationPoint(13F, 0.5F, -0.5F);
	Beacon.setTextureSize(32, 32);
	Beacon.mirror = true;
	setRotation(Beacon, 0F, 0F, 0F);
	Stock1 = new ModelRenderer(this, 13, 8);
	Stock1.addBox(0F, 0F, 0F, 2, 3, 2);
	Stock1.setRotationPoint(-2F, 1F, -0.5333334F);
	Stock1.setTextureSize(32, 32);
	Stock1.mirror = true;
	setRotation(Stock1, 0F, 0F, 0F);
	Stock2 = new ModelRenderer(this, 13, 8);
	Stock2.addBox(0F, 0F, 0F, 2, 3, 2);
	Stock2.setRotationPoint(-3F, 2F, -0.5F);
	Stock2.setTextureSize(32, 32);
	Stock2.mirror = true;
	setRotation(Stock2, 0F, 0F, 0F);
	Stock3 = new ModelRenderer(this, 0, 14);
	Stock3.addBox(0F, 0F, 0F, 6, 3, 2);
	Stock3.setRotationPoint(-8F, 3F, -0.5F);
	Stock3.setTextureSize(32, 32);
	Stock3.mirror = true;
	setRotation(Stock3, 0F, 0F, 0F);
	Trigger = new ModelRenderer(this, 0, 20);
	Trigger.addBox(0F, 0F, 0F, 4, 3, 1);
	Trigger.setRotationPoint(-2F, 3.466667F, 0F);
	Trigger.setTextureSize(32, 32);
	Trigger.mirror = true;
	setRotation(Trigger, 0F, 0F, 0F);
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:43,代码来源:MediGun_Model.java

示例12: SeedSweeper_Model

import net.minecraft.client.model.ModelRenderer; //导入方法依赖的package包/类
public SeedSweeper_Model()
{
	textureWidth = 64;
	textureHeight = 32;

	Barrel = new ModelRenderer(this, 0, 0);
	Barrel.addBox(0F, 0F, 0F, 18, 3, 3);
	Barrel.setRotationPoint(-4F, 0F, -0.5F);
	Barrel.setTextureSize(64, 32);
	Barrel.mirror = true;
	setRotation(Barrel, 0F, 0F, 0F);
	Stock = new ModelRenderer(this, 0, 8);
	Stock.addBox(0F, 0F, 0F, 8, 4, 2);
	Stock.setRotationPoint(-12F, 0.5333334F, 0F);
	Stock.setTextureSize(64, 32);
	Stock.mirror = true;
	setRotation(Stock, 0F, 0F, 0F);
	Trigger = new ModelRenderer(this, 0, 15);
	Trigger.addBox(0F, 0F, 0F, 5, 3, 1);
	Trigger.setRotationPoint(-5F, 3F, 0.5F);
	Trigger.setTextureSize(64, 32);
	Trigger.mirror = true;
	setRotation(Trigger, 0F, 0F, 0F);
	Ammo1 = new ModelRenderer(this, 0, 19);
	Ammo1.addBox(0F, 0F, 0F, 1, 5, 4);
	Ammo1.setRotationPoint(11F, 2F, -1F);
	Ammo1.setTextureSize(64, 32);
	Ammo1.mirror = true;
	setRotation(Ammo1, 0F, 0F, 0F);
	Ammo2 = new ModelRenderer(this, 0, 19);
	Ammo2.addBox(0F, 0F, 0F, 1, 5, 4);
	Ammo2.setRotationPoint(0F, 2F, -1F);
	Ammo2.setTextureSize(64, 32);
	Ammo2.mirror = true;
	setRotation(Ammo2, 0F, 0F, 0F);
	Ammo3 = new ModelRenderer(this, 11, 23);
	Ammo3.addBox(0F, 0F, 0F, 10, 5, 4);
	Ammo3.setRotationPoint(1F, 3F, -1F);
	Ammo3.setTextureSize(64, 32);
	Ammo3.mirror = true;
	setRotation(Ammo3, 0F, 0F, 0F);
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:43,代码来源:SeedSweeper_Model.java

示例13: ModelAirGrate

import net.minecraft.client.model.ModelRenderer; //导入方法依赖的package包/类
public ModelAirGrate(ModuleAirGrate grate) {
    textureWidth = 128;
    textureHeight = 128;

    top = new ModelRenderer(this, 42, 19);
    top.addBox(0F, 0F, 0F, 14, 0, 14);
    top.setRotationPoint(-7F, 9F, 8F);
    top.setTextureSize(128, 128);
    top.mirror = true;
    setRotation(top, -1.570796F, 0F, 0F);
    side1 = new ModelRenderer(this, 0, 18);
    side1.addBox(0F, 0F, 0F, 16, 1, 1);
    side1.setRotationPoint(-8F, 23F, 7F);
    side1.setTextureSize(128, 128);
    side1.mirror = true;
    setRotation(side1, 0F, 0F, 0F);
    side2 = new ModelRenderer(this, 0, 21);
    side2.addBox(0F, 0F, 0F, 16, 1, 1);
    side2.setRotationPoint(-8F, 8F, 7F);
    side2.setTextureSize(128, 128);
    side2.mirror = true;
    setRotation(side2, 0F, 0F, 0F);
    side3 = new ModelRenderer(this, 50, 0);
    side3.addBox(0F, 0F, 0F, 1, 1, 14);
    side3.setRotationPoint(-8F, 23F, 7F);
    side3.setTextureSize(128, 128);
    side3.mirror = true;
    setRotation(side3, 1.570796F, 0F, 0F);
    side4 = new ModelRenderer(this, 82, 0);
    side4.addBox(0F, 0F, 0F, 1, 1, 14);
    side4.setRotationPoint(7F, 23F, 7F);
    side4.setTextureSize(128, 128);
    side4.mirror = true;
    setRotation(side4, 1.570796F, 0F, 0F);
    base1 = new ModelRenderer(this, 69, 0);
    base1.addBox(0F, 0F, 0F, 6, 2, 6);
    base1.setRotationPoint(-3F, 13F, 4F);
    base1.setTextureSize(128, 128);
    base1.mirror = true;
    setRotation(base1, -1.570796F, 0F, 0F);
    base2 = new ModelRenderer(this, 0, 25);
    base2.addBox(0F, 0F, 0F, 12, 2, 12);
    base2.setRotationPoint(-6F, 10F, 6F);
    base2.setTextureSize(128, 128);
    base2.mirror = true;
    setRotation(base2, -1.570796F, 0F, 0F);
    base3 = new ModelRenderer(this, 0, 0);
    base3.addBox(2F, 0F, 0F, 16, 1, 16);
    base3.setRotationPoint(-10F, 8F, 7F);
    base3.setTextureSize(128, 128);
    base3.mirror = true;
    setRotation(base3, -1.570796F, 0F, 0F);
}
 
开发者ID:TeamPneumatic,项目名称:pnc-repressurized,代码行数:54,代码来源:ModelAirGrate.java

示例14: createModel

import net.minecraft.client.model.ModelRenderer; //导入方法依赖的package包/类
@Override
public void createModel()
{
    this.textureHeight = 32;
    this.textureWidth = 64;
    ModelRenderer body = new ModelRenderer(this, "body");
    body.addBox(0, 0, 0, 4, 6, 10);
    body.setRotationPoint(-2, 11.5F, -5);
    ModelRenderer wingL = new ModelRenderer(this, "wingL").setTextureOffset(28, 0);
    wingL.addBox(0, -0.5F, 0, 4, 1, 9);
    wingL.setRotationPoint(0, 0, 0);
    body.addChild(wingL);
    ModelRenderer wingR = new ModelRenderer(this, "wingR").setTextureOffset(28, 0);
    wingR.addBox(0, -0.5F, 0, 4, 1, 9);
    wingR.setRotationPoint(4, 0, 0);
    body.addChild(wingR);
    ModelRenderer tail = new ModelRenderer(this, "tail").setTextureOffset(0, 16);
    tail.addBox(0, 0, 0, 2, 4, 6);
    tail.setRotationPoint(1, 0, 9);
    body.addChild(tail);
    ModelRenderer tail2 = new ModelRenderer(this, "tail2").setTextureOffset(16, 16);
    tail2.addBox(0, 0, 0, 1, 2, 5);
    tail2.setRotationPoint(0.5F, 0, 1);
    tail2.rotateAngleX = (float)Math.toRadians(25);
    tail.addChild(tail2);
    ModelRenderer legL = new ModelRenderer(this, "legL").setTextureOffset(28, 10);
    legL.addBox(0, 0, 0, 2, 4, 2);
    legL.setRotationPoint(-1, 5, 4);
    legL.rotateAngleX = 0.174533F;
    body.addChild(legL);
    ModelRenderer legL2 = new ModelRenderer(this, "legL2").setTextureOffset(36, 10);
    legL2.addBox(0, 0, 0, 1, 4, 1);
    legL2.setRotationPoint(0.5F, 3.5F, 0.5F);
    legL2.rotateAngleX = -0.174533F;
    legL.addChild(legL2);
    ModelRenderer legL3 = new ModelRenderer(this, "legL3").setTextureOffset(28, 16);
    legL3.addBox(0, 0, 0, 3, 1, 3);
    legL3.setRotationPoint(-1F, 3, -1F);
    legL2.addChild(legL3);
    ModelRenderer legR = new ModelRenderer(this, "legR").setTextureOffset(28, 10);
    legR.addBox(0, 0, 0, 2, 4, 2);
    legR.setRotationPoint(3, 5, 4);
    legR.rotateAngleX = 0.174533F;
    body.addChild(legR);
    ModelRenderer legR2 = new ModelRenderer(this, "legR2").setTextureOffset(36, 10);
    legR2.addBox(0, 0, 0, 1, 4, 1);
    legR2.setRotationPoint(0.5F, 3.5F, 0.5F);
    legR2.rotateAngleX = -0.174533F;
    legR.addChild(legR2);
    ModelRenderer legR3 = new ModelRenderer(this, "legR3").setTextureOffset(28, 16);
    legR3.addBox(0, 0, 0, 3, 1, 3);
    legR3.setRotationPoint(-1F, 3, -1F);
    legR2.addChild(legR3);
    ModelRenderer head = new ModelRenderer(this, "head").setTextureOffset(40, 16);
    head.addBox(-1.5F, 0, -4, 3, 4, 3);
    head.setRotationPoint(2F,-2,1.5F);
    body.addChild(head);
    ModelRenderer beak = new ModelRenderer(this, "beak").setTextureOffset(54, 0);
    beak.addBox(0, 0, 0, 2, 1, 2);
    beak.setRotationPoint(-1,1,-6);
    head.addChild(beak);
    ModelRenderer comb = new ModelRenderer(this, "comb").setTextureOffset(40, 10);
    comb.addBox(0, 0, 0, 1, 2, 4);
    comb.setRotationPoint(-0.5F,-2,-4);
    head.addChild(comb);
    ModelRenderer comb2 = new ModelRenderer(this, "comb2").setTextureOffset(50, 10);
    comb2.addBox(0, 0, 0, 2, 3, 1);
    comb2.setRotationPoint(-1F,2,-5);
    head.addChild(comb2);
    this.components.add(body);
}
 
开发者ID:V0idWa1k3r,项目名称:ExPetrum,代码行数:72,代码来源:ModelChicken.java

示例15: ModelLogistics

import net.minecraft.client.model.ModelRenderer; //导入方法依赖的package包/类
public ModelLogistics(ModuleLogistics module) {
    this.module = module;
    textureWidth = 128;
    textureHeight = 128;

    notPowered = new ModelRenderer(this, 72, 0);
    notPowered.addBox(0F, 0F, 0F, 6, 2, 6);
    notPowered.setRotationPoint(-3F, 13F, 4F);
    notPowered.setTextureSize(128, 128);
    notPowered.mirror = true;
    setRotation(notPowered, -1.570796F, 0F, 0F);
    powered = new ModelRenderer(this, 48, 0);
    powered.addBox(0F, 0F, 0F, 6, 2, 6);
    powered.setRotationPoint(-3F, 13F, 4F);
    powered.setTextureSize(128, 128);
    powered.mirror = true;
    setRotation(powered, -1.570796F, 0F, 0F);
    action = new ModelRenderer(this, 24, 0);
    action.addBox(0F, 0F, 0F, 6, 2, 6);
    action.setRotationPoint(-3F, 13F, 4F);
    action.setTextureSize(128, 128);
    action.mirror = true;
    setRotation(action, -1.570796F, 0F, 0F);
    notEnoughAir = new ModelRenderer(this, 0, 0);
    notEnoughAir.addBox(0F, 0F, 0F, 6, 2, 6);
    notEnoughAir.setRotationPoint(-3F, 13F, 4F);
    notEnoughAir.setTextureSize(128, 128);
    notEnoughAir.mirror = true;
    setRotation(notEnoughAir, -1.570796F, 0F, 0F);

    base2 = new ModelRenderer(this, 0, 25);
    base2.addBox(0F, 0F, 0F, 12, 2, 12);
    base2.setRotationPoint(-6F, 10F, 6F);
    base2.setTextureSize(128, 128);
    base2.mirror = true;
    setRotation(base2, -1.570796F, 0F, 0F);
    shape1 = new ModelRenderer(this, 0, 39);
    shape1.addBox(0F, 0F, 0F, 1, 13, 1);
    shape1.setRotationPoint(5.5F, 9.5F, 5.5F);
    shape1.setTextureSize(128, 128);
    shape1.mirror = true;
    setRotation(shape1, 0F, 0F, 0F);
    shape2 = new ModelRenderer(this, 4, 39);
    shape2.addBox(0F, 0F, 0F, 1, 13, 1);
    shape2.setRotationPoint(-6.5F, 9.5F, 5.5F);
    shape2.setTextureSize(128, 128);
    shape2.mirror = true;
    setRotation(shape2, 0F, 0F, 0F);
    shape3 = new ModelRenderer(this, 8, 39);
    shape3.addBox(0F, 0F, 0F, 11, 1, 1);
    shape3.setRotationPoint(-5.5F, 9.5F, 5.5F);
    shape3.setTextureSize(128, 128);
    shape3.mirror = true;
    setRotation(shape3, 0F, 0F, 0F);
    shape4 = new ModelRenderer(this, 8, 41);
    shape4.addBox(0F, 0F, 0F, 11, 1, 1);
    shape4.setRotationPoint(-5.5F, 21.5F, 5.5F);
    shape4.setTextureSize(128, 128);
    shape4.mirror = true;
    setRotation(shape4, 0F, 0F, 0F);
}
 
开发者ID:TeamPneumatic,项目名称:pnc-repressurized,代码行数:62,代码来源:ModelLogistics.java


注:本文中的net.minecraft.client.model.ModelRenderer.setRotationPoint方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。