當前位置: 首頁>>代碼示例>>Java>>正文


Java EntitySheep.func_175513_a方法代碼示例

本文整理匯總了Java中net.minecraft.entity.passive.EntitySheep.func_175513_a方法的典型用法代碼示例。如果您正苦於以下問題:Java EntitySheep.func_175513_a方法的具體用法?Java EntitySheep.func_175513_a怎麽用?Java EntitySheep.func_175513_a使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在net.minecraft.entity.passive.EntitySheep的用法示例。


在下文中一共展示了EntitySheep.func_175513_a方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: doRenderLayer

import net.minecraft.entity.passive.EntitySheep; //導入方法依賴的package包/類
public void doRenderLayer(EntityWolf entitylivingbaseIn, float p_177141_2_, float p_177141_3_, float partialTicks, float p_177141_5_, float p_177141_6_, float p_177141_7_, float scale)
{
    if (entitylivingbaseIn.isTamed() && !entitylivingbaseIn.isInvisible())
    {
        this.wolfRenderer.bindTexture(WOLF_COLLAR);
        EnumDyeColor enumdyecolor = EnumDyeColor.byMetadata(entitylivingbaseIn.getCollarColor().getMetadata());
        float[] afloat = EntitySheep.func_175513_a(enumdyecolor);
        GlStateManager.color(afloat[0], afloat[1], afloat[2]);
        this.wolfRenderer.getMainModel().render(entitylivingbaseIn, p_177141_2_, p_177141_3_, p_177141_5_, p_177141_6_, p_177141_7_, scale);
    }
}
 
開發者ID:Notoh,項目名稱:DecompiledMinecraft,代碼行數:12,代碼來源:LayerWolfCollar.java

示例2: doRenderLayer

import net.minecraft.entity.passive.EntitySheep; //導入方法依賴的package包/類
public void doRenderLayer(EntitySheep entitylivingbaseIn, float p_177141_2_, float p_177141_3_, float partialTicks, float p_177141_5_, float p_177141_6_, float p_177141_7_, float scale)
{
    if (!entitylivingbaseIn.getSheared() && !entitylivingbaseIn.isInvisible())
    {
        this.sheepRenderer.bindTexture(TEXTURE);

        if (entitylivingbaseIn.hasCustomName() && "jeb_".equals(entitylivingbaseIn.getCustomNameTag()))
        {
            int i1 = 25;
            int i = entitylivingbaseIn.ticksExisted / 25 + entitylivingbaseIn.getEntityId();
            int j = EnumDyeColor.values().length;
            int k = i % j;
            int l = (i + 1) % j;
            float f = ((float)(entitylivingbaseIn.ticksExisted % 25) + partialTicks) / 25.0F;
            float[] afloat1 = EntitySheep.func_175513_a(EnumDyeColor.byMetadata(k));
            float[] afloat2 = EntitySheep.func_175513_a(EnumDyeColor.byMetadata(l));
            GlStateManager.color(afloat1[0] * (1.0F - f) + afloat2[0] * f, afloat1[1] * (1.0F - f) + afloat2[1] * f, afloat1[2] * (1.0F - f) + afloat2[2] * f);
        }
        else
        {
            float[] afloat = EntitySheep.func_175513_a(entitylivingbaseIn.getFleeceColor());
            GlStateManager.color(afloat[0], afloat[1], afloat[2]);
        }

        this.sheepModel.setModelAttributes(this.sheepRenderer.getMainModel());
        this.sheepModel.setLivingAnimations(entitylivingbaseIn, p_177141_2_, p_177141_3_, partialTicks);
        this.sheepModel.render(entitylivingbaseIn, p_177141_2_, p_177141_3_, p_177141_5_, p_177141_6_, p_177141_7_, scale);
    }
}
 
開發者ID:Notoh,項目名稱:DecompiledMinecraft,代碼行數:30,代碼來源:LayerSheepWool.java

示例3: func_177145_a

import net.minecraft.entity.passive.EntitySheep; //導入方法依賴的package包/類
public void func_177145_a(DemoEntityTameable p_177145_1_, float p_177145_2_, float p_177145_3_, float p_177145_4_,
		float p_177145_5_, float p_177145_6_, float p_177145_7_, float p_177145_8_) {
	if (p_177145_1_.isTamed() && !p_177145_1_.isInvisible()) {
		this.field_177146_b.bindTexture(field_177147_a);
		EnumDyeColor enumdyecolor = EnumDyeColor.byMetadata(p_177145_1_.getCollarColor().getMetadata());
		float[] afloat = EntitySheep.func_175513_a(enumdyecolor);
		GlStateManager.color(afloat[0], afloat[1], afloat[2]);
		this.field_177146_b.getMainModel().render(p_177145_1_, p_177145_2_, p_177145_3_, p_177145_5_, p_177145_6_,
				p_177145_7_, p_177145_8_);
	}
}
 
開發者ID:worldwidewoogie,項目名稱:demomod,代碼行數:12,代碼來源:LayerDemoEntityTameableCollar.java

示例4: func_177145_a

import net.minecraft.entity.passive.EntitySheep; //導入方法依賴的package包/類
public void func_177145_a(EntityTurtle p_177145_1_, float p_177145_2_, float p_177145_3_, float p_177145_4_, float p_177145_5_, float p_177145_6_, float p_177145_7_, float p_177145_8_)
{
	//Compare To: @EntityWolf
	if (p_177145_1_.isTamed() && !p_177145_1_.isInvisible())
	{
		this.field_177146_b.bindTexture(field_177147_a);
		EnumDyeColor enumdyecolor = EnumDyeColor.byMetadata(p_177145_1_.getCollarColor().getMetadata());
		float[] afloat = EntitySheep.func_175513_a(enumdyecolor);
		GlStateManager.color(afloat[0], afloat[1], afloat[2]);
		this.model.setModelAttributes(this.field_177146_b.getMainModel());
		this.model.render(p_177145_1_, p_177145_2_, p_177145_3_, p_177145_5_, p_177145_6_, p_177145_7_, p_177145_8_);
	}
}
 
開發者ID:andykuo1,項目名稱:mcplus_mods,代碼行數:14,代碼來源:LayerTurtle.java


注:本文中的net.minecraft.entity.passive.EntitySheep.func_175513_a方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。