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


Java ModelRenderer.setTextureSize方法代码示例

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


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

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

示例2: ModelStickybomb

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

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

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

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

示例5: ModelVacuumPump

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

    turbineCase = new ModelRenderer(this, 0, 47);
    turbineCase.addBox(0F, 0F, 0F, 1, 4, 1);
    turbineCase.setRotationPoint(-0.5F, 14.1F, 0F);
    turbineCase.setTextureSize(64, 64);
    turbineCase.mirror = true;
    setRotation(turbineCase, 0F, 0F, 0F);
    top = new ModelRenderer(this, 0, 47);
    top.addBox(0F, 0F, 0F, 6, 1, 12);
    top.setRotationPoint(-3F, 13F, -6F);
    top.setTextureSize(64, 64);
    top.mirror = true;
    setRotation(top, 0F, 0F, 0F);
    blade = new ModelRenderer(this, 0, 0);
    blade.addBox(0F, 0F, 0F, 1, 4, 2);
    blade.setRotationPoint(-0.5F, 14F, -3F);
    blade.setTextureSize(64, 64);
    blade.mirror = true;
    setRotation(blade, 0F, 0F, 0F);
}
 
开发者ID:TeamPneumatic,项目名称:pnc-repressurized,代码行数:24,代码来源:ModelVacuumPump.java

示例6: ModelDummy

import net.minecraft.client.model.ModelRenderer; //导入方法依赖的package包/类
public ModelDummy()
{
  textureWidth = 64;
  textureHeight = 32;
  
    head = new ModelRenderer(this, 0, 0);
    head.addBox(-8F, -16F, -8F, 16, 16, 16);
    head.setRotationPoint(0F, 0F, 0F);
    head.setTextureSize(64, 32);
    head.mirror = true;
    setRotation(head, 0F, 0F, 0F);
    rightarm = new ModelRenderer(this, 0, 0);
    rightarm.addBox(-3F, -2F, -2F, 4, 12, 4);
    rightarm.setRotationPoint(-9F, -2F, 0F);
    rightarm.setTextureSize(64, 32);
    rightarm.mirror = true;
    setRotation(rightarm, 0F, 0F, 0F);
    leftarm = new ModelRenderer(this, 48, 0);
    leftarm.addBox(-1F, -2F, -2F, 4, 12, 4);
    leftarm.setRotationPoint(9F, -3F, 0F);
    leftarm.setTextureSize(64, 32);
    leftarm.mirror = true;
    setRotation(leftarm, 0F, 0F, 0F);
}
 
开发者ID:Herobone,项目名称:HeroUtils,代码行数:25,代码来源:ModelDummy.java

示例7: ModelCropSupport

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

    Shape1 = new ModelRenderer(this, 0, 16);
    Shape1.addBox(0F, 0F, 0F, 1, 9, 1);
    Shape1.setRotationPoint(-8.5F, 11.5F, -8.5F);
    Shape1.setTextureSize(64, 64);
    Shape1.mirror = true;
    setRotation(Shape1, 0F, 0F, 0F);
    Shape2 = new ModelRenderer(this, 4, 16);
    Shape2.addBox(0F, 0F, 0F, 1, 9, 1);
    Shape2.setRotationPoint(7.5F, 11.5F, -8.5F);
    Shape2.setTextureSize(64, 64);
    Shape2.mirror = true;
    setRotation(Shape2, 0F, 0F, 0F);
    Shape3 = new ModelRenderer(this, 0, 16);
    Shape3.addBox(0F, 0F, 0F, 1, 9, 1);
    Shape3.setRotationPoint(-8.5F, 11.5F, 7.5F);
    Shape3.setTextureSize(64, 64);
    Shape3.mirror = true;
    setRotation(Shape3, 0F, 0F, 0F);
    Shape4 = new ModelRenderer(this, 0, 16);
    Shape4.addBox(0F, 0F, 0F, 1, 9, 1);
    Shape4.setRotationPoint(7.5F, 11.5F, 7.5F);
    Shape4.setTextureSize(64, 64);
    Shape4.mirror = true;
    setRotation(Shape4, 0F, 0F, 0F);
}
 
开发者ID:TeamPneumatic,项目名称:pnc-repressurized,代码行数:30,代码来源:ModelCropSupport.java

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

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

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

示例11: AATH_Model

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

	BarrelFull = new ModelRenderer(this, 0, 0);
	BarrelFull.addBox(0F, 0F, 0F, 5, 3, 3);
	BarrelFull.setRotationPoint(0F, 0F, -1.533333F);
	BarrelFull.setTextureSize(32, 32);
	BarrelFull.mirror = true;
	setRotation(BarrelFull, 0F, 0F, 0F);
	
	Stock1 = new ModelRenderer(this, 9, 7);
	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, 7);
	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, 13);
	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, 19);
	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,代码行数:39,代码来源:AATH_Model.java

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

示例13: EnderNymous_Model

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

	Stock1 = new ModelRenderer(this, 0, 7);
	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, 12);
	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, 12);
	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, 7);
	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);
	
	Barrel = new ModelRenderer(this, 0, 0);
	Barrel.addBox(0F, -3F, -1.466667F, 10, 3, 3);
	Barrel.setRotationPoint(0F, 3F, 0F);
	Barrel.setTextureSize(32, 32);
	Barrel.mirror = true;
	setRotation(Barrel, 0F, 0F, 0F);
	
	Barrel2 = new ModelRenderer(this, 8, 11);
	Barrel2.addBox(0F, -4.5F, -1F, 10, 1, 2);
	Barrel2.setRotationPoint(0F, 3F, 0F);
	Barrel2.setTextureSize(32, 32);
	Barrel2.mirror = true;
	setRotation(Barrel2, 0F, 0F, 0F);
	
	Barrel3 = new ModelRenderer(this, 8, 3);
	Barrel3.addBox(8F, -4F, -0.5F, 1, 1, 1);
	Barrel3.setRotationPoint(0F, 3F, 0F);
	Barrel3.setTextureSize(32, 32);
	Barrel3.mirror = true;
	setRotation(Barrel3, 0F, 0F, 0F);
	
	Barrel4 = new ModelRenderer(this, 8, 3);
	Barrel4.addBox(1F, -4F, -0.5F, 1, 1, 1);
	Barrel4.setRotationPoint(0F, 3F, 0F);
	Barrel4.setTextureSize(32, 32);
	Barrel4.mirror = true;
	setRotation(Barrel4, 0F, 0F, 0F);
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:62,代码来源:EnderNymous_Model.java

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

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


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