當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。