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


Java ModelRenderer.addBox方法代码示例

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


在下文中一共展示了ModelRenderer.addBox方法的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: ModelGauge

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

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

示例3: 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

示例4: ModelBanner

import net.minecraft.client.model.ModelRenderer; //导入方法依赖的package包/类
public ModelBanner() {
	textureWidth = 64;
	textureHeight = 64;
	bannerSlate = new ModelRenderer(this, 0, 0);
	bannerSlate.addBox(-10.0F, 0.0F, -2.0F, 20, 40, 1, 0.0F);
	bannerStand = new ModelRenderer(this, 44, 0);
	bannerStand.addBox(-1.0F, -30.0F, -1.0F, 2, 42, 2, 0.0F);
	bannerTop = new ModelRenderer(this, 0, 42);
	bannerTop.addBox(-10.0F, -32.0F, -1.0F, 20, 2, 2, 0.0F);
}
 
开发者ID:jm-organization,项目名称:connor41-etfuturum2,代码行数:11,代码来源:ModelBanner.java

示例5: ModelArmorStand

import net.minecraft.client.model.ModelRenderer; //导入方法依赖的package包/类
public ModelArmorStand(float size) {
	super(size, 64, 64);
	bipedHead = new ModelRenderer(this, 0, 0);
	bipedHead.addBox(-1.0F, -7.0F, -1.0F, 2, 7, 2, size);
	bipedHead.setRotationPoint(0.0F, 0.0F, 0.0F);
	bipedBody = new ModelRenderer(this, 0, 26);
	bipedBody.addBox(-6.0F, 0.0F, -1.5F, 12, 3, 3, size);
	bipedBody.setRotationPoint(0.0F, 0.0F, 0.0F);
	bipedRightArm = new ModelRenderer(this, 24, 0);
	bipedRightArm.addBox(-2.0F, -2.0F, -1.0F, 2, 12, 2, size);
	bipedRightArm.setRotationPoint(-5.0F, 2.0F, 0.0F);
	bipedLeftArm = new ModelRenderer(this, 32, 16);
	bipedLeftArm.mirror = true;
	bipedLeftArm.addBox(0.0F, -2.0F, -1.0F, 2, 12, 2, size);
	bipedLeftArm.setRotationPoint(5.0F, 2.0F, 0.0F);
	bipedRightLeg = new ModelRenderer(this, 8, 0);
	bipedRightLeg.addBox(-1.0F, 0.0F, -1.0F, 2, 11, 2, size);
	bipedRightLeg.setRotationPoint(-1.9F, 12.0F, 0.0F);
	bipedLeftLeg = new ModelRenderer(this, 40, 16);
	bipedLeftLeg.mirror = true;
	bipedLeftLeg.addBox(-1.0F, 0.0F, -1.0F, 2, 11, 2, size);
	bipedLeftLeg.setRotationPoint(1.9F, 12.0F, 0.0F);
	standRightSide = new ModelRenderer(this, 16, 0);
	standRightSide.addBox(-3.0F, 3.0F, -1.0F, 2, 7, 2, size);
	standRightSide.setRotationPoint(0.0F, 0.0F, 0.0F);
	standRightSide.showModel = true;
	standLeftSide = new ModelRenderer(this, 48, 16);
	standLeftSide.addBox(1.0F, 3.0F, -1.0F, 2, 7, 2, size);
	standLeftSide.setRotationPoint(0.0F, 0.0F, 0.0F);
	standWaist = new ModelRenderer(this, 0, 48);
	standWaist.addBox(-4.0F, 10.0F, -1.0F, 8, 2, 2, size);
	standWaist.setRotationPoint(0.0F, 0.0F, 0.0F);
	standBase = new ModelRenderer(this, 0, 32);
	standBase.addBox(-6.0F, 11.0F, -6.0F, 12, 1, 12, size);
	standBase.setRotationPoint(0.0F, 12.0F, 0.0F);
}
 
开发者ID:jm-organization,项目名称:connor41-etfuturum2,代码行数:37,代码来源:ModelArmorStand.java

示例6: 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

示例7: FenFire_Model

import net.minecraft.client.model.ModelRenderer; //导入方法依赖的package包/类
public FenFire_Model()
{
	textureWidth = 32;
	textureHeight = 32;
	
	BarrelFull = new ModelRenderer(this, 0, 0);
	BarrelFull.addBox(0F, 0F, 0F, 10, 4, 4);
	BarrelFull.setRotationPoint(0F, 0F, -2F);
	BarrelFull.setTextureSize(32, 32);
	BarrelFull.mirror = true;
	setRotation(BarrelFull, 0F, 0F, 0F);
	Stock1 = new ModelRenderer(this, 9, 14);
	Stock1.addBox(0F, 0F, 0F, 2, 2, 2);
	Stock1.setRotationPoint(-2F, 1F, -1F);
	Stock1.setTextureSize(32, 32);
	Stock1.mirror = true;
	setRotation(Stock1, 0F, 0F, 0F);
	Stock2 = new ModelRenderer(this, 0, 14);
	Stock2.addBox(0F, 0F, 0F, 2, 3, 2);
	Stock2.setRotationPoint(-3F, 2F, -1F);
	Stock2.setTextureSize(32, 32);
	Stock2.mirror = true;
	setRotation(Stock2, 0F, 0F, 0F);
	Stock3 = new ModelRenderer(this, 0, 20);
	Stock3.addBox(0F, 0F, 0F, 2, 3, 2);
	Stock3.setRotationPoint(-4F, 3F, -1F);
	Stock3.setTextureSize(32, 32);
	Stock3.mirror = true;
	setRotation(Stock3, 0F, 0F, 0F);
	Trigger = new ModelRenderer(this, 0, 26);
	Trigger.addBox(0F, 0F, 0F, 3, 2, 1);
	Trigger.setRotationPoint(-1F, 2.466667F, -0.5333334F);
	Trigger.setTextureSize(32, 32);
	Trigger.mirror = true;
	setRotation(Trigger, 0F, 0F, 0F);

}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:38,代码来源:FenFire_Model.java

示例8: newRender

import net.minecraft.client.model.ModelRenderer; //导入方法依赖的package包/类
protected ModelRenderer newRender(int dimensionX, int dimensionY, int dimensionZ, float positionX, float positionY, float positionZ,
		float offsetX, float offsetY, float offsetZ, int textureX, int textureY, boolean mirror, ModelBase model)
{
	ModelRenderer renderer = new ModelRenderer(model, textureX, textureY);
	renderer.mirror = mirror;
	renderer.addBox(offsetX, offsetY, offsetZ, dimensionX, dimensionY, dimensionZ, 0);
	renderer.setRotationPoint(positionX, positionY, positionZ);
	return renderer;
}
 
开发者ID:kenijey,项目名称:harshencastle,代码行数:10,代码来源:BaseHarshenBiped.java

示例9: CoinTosser_Mod_Model

import net.minecraft.client.model.ModelRenderer; //导入方法依赖的package包/类
public CoinTosser_Mod_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, 23);
    Trigger.addBox(0F, 0F, 0F, 5, 2, 1);
    Trigger.setRotationPoint(-2F, 3F, 0.5F);
    Trigger.setTextureSize(64, 32);
    Trigger.mirror = true;
    setRotation(Trigger, 0F, 0F, 0F);
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:41,代码来源:CoinTosser_Mod_Model.java

示例10: FlintDuster_Model

import net.minecraft.client.model.ModelRenderer; //导入方法依赖的package包/类
public FlintDuster_Model()
{
	textureWidth = 64;
	textureHeight = 32;
	
	Barrel1 = new ModelRenderer(this, 0, 0);
	Barrel1.addBox(0F, 0F, 0F, 10, 4, 3);
	Barrel1.setRotationPoint(0F, -1F, -1.5F);
	Barrel1.setTextureSize(64, 32);
	Barrel1.mirror = true;
	setRotation(Barrel1, 0F, 0F, 0F);
	Stock1 = new ModelRenderer(this, 0, 8);
	Stock1.addBox(0F, 0F, 0F, 8, 3, 2);
	Stock1.setRotationPoint(-8F, 0F, -1F);
	Stock1.setTextureSize(64, 32);
	Stock1.mirror = true;
	setRotation(Stock1, 0F, 0F, 0F);
	Stock2 = new ModelRenderer(this, 0, 8);
	Stock2.addBox(0F, 0F, 0F, 8, 3, 2);
	Stock2.setRotationPoint(-10F, 1F, -1F);
	Stock2.setTextureSize(64, 32);
	Stock2.mirror = true;
	setRotation(Stock2, 0F, 0F, 0F);
	Trigger = new ModelRenderer(this, 21, 8);
	Trigger.addBox(0F, 0F, 0F, 4, 2, 1);
	Trigger.setRotationPoint(-3F, 3F, -0.5F);
	Trigger.setTextureSize(64, 32);
	Trigger.mirror = true;
	setRotation(Trigger, 0F, 0F, 0F);
	Funnel1 = new ModelRenderer(this, 0, 14);
	Funnel1.addBox(0F, 0F, 0F, 1, 5, 4);
	Funnel1.setRotationPoint(10F, -1.5F, -2F);
	Funnel1.setTextureSize(64, 32);
	Funnel1.mirror = true;
	setRotation(Funnel1, 0F, 0F, 0F);
	Funnel2 = new ModelRenderer(this, 11, 14);
	Funnel2.addBox(0F, 0F, 0F, 1, 6, 5);
	Funnel2.setRotationPoint(11F, -2F, -2.5F);
	Funnel2.setTextureSize(64, 32);
	Funnel2.mirror = true;
	setRotation(Funnel2, 0F, 0F, 0F);
	Funnel3 = new ModelRenderer(this, 24, 14);
	Funnel3.addBox(0F, 0F, 0F, 1, 7, 6);
	Funnel3.setRotationPoint(12F, -2.5F, -3F);
	Funnel3.setTextureSize(64, 32);
	Funnel3.mirror = true;
	setRotation(Funnel3, 0F, 0F, 0F);
	Funnel4 = new ModelRenderer(this, 39, 14);
	Funnel4.addBox(0F, 0F, 0F, 2, 8, 7);
	Funnel4.setRotationPoint(13F, -3F, -3.5F);
	Funnel4.setTextureSize(64, 32);
	Funnel4.mirror = true;
	setRotation(Funnel4, 0F, 0F, 0F);
	Ammo1 = new ModelRenderer(this, 27, 0);
	Ammo1.addBox(0F, 0F, 0F, 4, 3, 1);
	Ammo1.setRotationPoint(3F, 2F, 1F);
	Ammo1.setTextureSize(64, 32);
	Ammo1.mirror = true;
	setRotation(Ammo1, 0F, 0F, 0F);
	Ammo2 = new ModelRenderer(this, 27, 0);
	Ammo2.addBox(0F, 0F, 0F, 4, 3, 1);
	Ammo2.setRotationPoint(3F, 2F, -2F);
	Ammo2.setTextureSize(64, 32);
	Ammo2.mirror = true;
	setRotation(Ammo2, 0F, 0F, 0F);
	Ammo3 = new ModelRenderer(this, 38, 0);
	Ammo3.addBox(0F, 0F, 0F, 6, 7, 3);
	Ammo3.setRotationPoint(2F, 3F, -1.5F);
	Ammo3.setTextureSize(64, 32);
	Ammo3.mirror = true;
	setRotation(Ammo3, 0F, 0F, 0F);
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:73,代码来源:FlintDuster_Model.java

示例11: ERA_Model

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

示例12: FrostLancer_Model

import net.minecraft.client.model.ModelRenderer; //导入方法依赖的package包/类
public FrostLancer_Model()
{
	textureWidth = 64;
    textureHeight = 32;
    
    Barrel = new ModelRenderer(this, 0, 27);
    Barrel.addBox(0F, 0F, 0F, 30, 3, 2);
    Barrel.setRotationPoint(0F, -1F, 0F);
    Barrel.setTextureSize(64, 32);
    Barrel.mirror = true;
    setRotation(Barrel, 0F, 0F, 0F);
    Frame = new ModelRenderer(this, 0, 20);
    Frame.addBox(0F, 0F, 0F, 28, 2, 4);
    Frame.setRotationPoint(0F, 1F, -1F);
    Frame.setTextureSize(64, 32);
    Frame.mirror = true;
    setRotation(Frame, 0F, 0F, 0F);
    ScopeBase1 = new ModelRenderer(this, 4, 17);
    ScopeBase1.addBox(0F, 0F, 0F, 2, 1, 1);
    ScopeBase1.setRotationPoint(7F, -2F, 0.5F);
    ScopeBase1.setTextureSize(64, 32);
    ScopeBase1.mirror = true;
    setRotation(ScopeBase1, 0F, 0F, 0F);
    ScopeBase2 = new ModelRenderer(this, 4, 17);
    ScopeBase2.addBox(0F, 0F, 0F, 2, 1, 1);
    ScopeBase2.setRotationPoint(11F, -2F, 0.5F);
    ScopeBase2.setTextureSize(64, 32);
    ScopeBase2.mirror = true;
    setRotation(ScopeBase2, 0F, 0F, 0F);
    Scope = new ModelRenderer(this, 11, 17);
    Scope.addBox(0F, 0F, 0F, 10, 1, 1);
    Scope.setRotationPoint(5F, -3F, 0.5333334F);
    Scope.setTextureSize(64, 32);
    Scope.mirror = true;
    setRotation(Scope, 0F, 0F, 0F);
    Stock1 = new ModelRenderer(this, 34, 15);
    Stock1.addBox(0F, 0F, 0F, 7, 2, 2);
    Stock1.setRotationPoint(-6F, 2F, 0F);
    Stock1.setTextureSize(64, 32);
    Stock1.mirror = true;
    setRotation(Stock1, 0F, 0F, 0F);
    Stock2 = new ModelRenderer(this, 34, 15);
    Stock2.addBox(0F, 0F, 0F, 7, 2, 2);
    Stock2.setRotationPoint(-11F, 3F, -0.1F);
    Stock2.setTextureSize(64, 32);
    Stock2.mirror = true;
    setRotation(Stock2, 0F, 0F, 0F);
    Stock3 = new ModelRenderer(this, 53, 12);
    Stock3.addBox(0F, 0F, 0F, 3, 5, 2);
    Stock3.setRotationPoint(-1F, 0F, -0.1F);
    Stock3.setTextureSize(64, 32);
    Stock3.mirror = true;
    setRotation(Stock3, 0F, 0F, 0F);
    Ammo = new ModelRenderer(this, 38, 0);
    Ammo.addBox(0F, 0F, 0F, 8, 4, 5);
    Ammo.setRotationPoint(4F, 4F, -1.5F);
    Ammo.setTextureSize(64, 32);
    Ammo.mirror = true;
    setRotation(Ammo, 0F, 0F, 0F);
    Ammo2 = new ModelRenderer(this, 38, 10);
    Ammo2.addBox(0F, 0F, 0F, 6, 1, 2);
    Ammo2.setRotationPoint(5F, 3F, 0F);
    Ammo2.setTextureSize(64, 32);
    Ammo2.mirror = true;
    setRotation(Ammo2, 0F, 0F, 0F);
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:67,代码来源:FrostLancer_Model.java

示例13: PTT_Model

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

示例14: Seedling_Model

import net.minecraft.client.model.ModelRenderer; //导入方法依赖的package包/类
public Seedling_Model()
{
	textureWidth = 32;
	textureHeight = 32;
	
	BarrelFull = new ModelRenderer(this, 0, 0);
	BarrelFull.addBox(0F, 0F, 0F, 10, 4, 3);
	BarrelFull.setRotationPoint(0F, 0F, -1.533333F);
	BarrelFull.setTextureSize(32, 32);
	BarrelFull.mirror = true;
	setRotation(BarrelFull, 0F, 0F, 0F);
	Stock1 = new ModelRenderer(this, 0, 8);
	Stock1.addBox(0F, 0F, 0F, 2, 3, 2);
	Stock1.setRotationPoint(-2F, 1F, -1F);
	Stock1.setTextureSize(32, 32);
	Stock1.mirror = true;
	setRotation(Stock1, 0F, 0F, 0F);
	Stock2 = new ModelRenderer(this, 0, 8);
	Stock2.addBox(0F, 0F, 0F, 2, 3, 2);
	Stock2.setRotationPoint(-3F, 2F, -1F);
	Stock2.setTextureSize(32, 32);
	Stock2.mirror = true;
	setRotation(Stock2, 0F, 0F, 0F);
	Stock3 = new ModelRenderer(this, 0, 8);
	Stock3.addBox(0F, 0F, 0F, 2, 3, 2);
	Stock3.setRotationPoint(-4F, 3F, -1F);
	Stock3.setTextureSize(32, 32);
	Stock3.mirror = true;
	setRotation(Stock3, 0F, 0F, 0F);
	Trigger = new ModelRenderer(this, 9, 8);
	Trigger.addBox(0F, 0F, 0F, 3, 2, 1);
	Trigger.setRotationPoint(-1F, 3.466667F, -0.5333334F);
	Trigger.setTextureSize(32, 32);
	Trigger.mirror = true;
	setRotation(Trigger, 0F, 0F, 0F);
	Melon1 = new ModelRenderer(this, 0, 14);
	Melon1.addBox(0F, 0F, 0F, 3, 6, 4);
	Melon1.setRotationPoint(1F, -3F, -2F);
	Melon1.setTextureSize(32, 32);
	Melon1.mirror = true;
	setRotation(Melon1, 0F, 0F, 0F);
	Melon2 = new ModelRenderer(this, 0, 14);
	Melon2.addBox(0F, 0F, 0F, 3, 6, 4);
	Melon2.setRotationPoint(5F, -3F, -2F);
	Melon2.setTextureSize(32, 32);
	Melon2.mirror = true;
	setRotation(Melon2, 0F, 0F, 0F);
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:49,代码来源:Seedling_Model.java

示例15: ModelUniversalSensor

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

    dish1 = new ModelRenderer(this, 0, 33);
    dish1.addBox(-2F, 0F, -2F, 4, 1, 4);
    dish1.setRotationPoint(0F, 16F, 0F);
    dish1.setTextureSize(64, 64);
    dish1.mirror = true;
    setRotation(dish1, 0F, 0F, 0F);
    dish2 = new ModelRenderer(this, 0, 38);
    dish2.addBox(-3F, -1F, 0F, 1, 8, 4);
    dish2.setRotationPoint(0F, 9F, -2F);
    dish2.setTextureSize(64, 64);
    dish2.mirror = true;
    setRotation(dish2, 0F, 0F, -0.2268928F);
    dish3 = new ModelRenderer(this, 0, 50);
    dish3.addBox(-3.8F, 0F, 0.8F, 1, 4, 4);
    dish3.setRotationPoint(0F, 8F, 0F);
    dish3.setTextureSize(64, 64);
    dish3.mirror = true;
    setRotation(dish3, 0.0698132F, 0.3839724F, -0.2268928F);
    dish4 = new ModelRenderer(this, 10, 50);
    dish4.addBox(-3.8F, 0F, -4.7F, 1, 4, 4);
    dish4.setRotationPoint(0F, 8F, 0F);
    dish4.setTextureSize(64, 64);
    dish4.mirror = true;
    setRotation(dish4, -0.0698132F, -0.3839724F, -0.2268928F);
    dish5 = new ModelRenderer(this, 0, 58);
    dish5.addBox(-2F, 0F, -0.5F, 6, 1, 1);
    dish5.setRotationPoint(0F, 12F, 0F);
    dish5.setTextureSize(64, 64);
    dish5.mirror = true;
    setRotation(dish5, 0F, 0F, -0.2268928F);
    dish6 = new ModelRenderer(this, 0, 60);
    dish6.addBox(3F, 0F, -1F, 1, 1, 2);
    dish6.setRotationPoint(0F, 10.2F, 0F);
    dish6.setTextureSize(64, 64);
    dish6.mirror = true;
    setRotation(dish6, 0F, 0F, 0F);
}
 
开发者ID:TeamPneumatic,项目名称:pnc-repressurized,代码行数:42,代码来源:ModelUniversalSensor.java


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