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


Java EntitySlime.getSlimeSize方法代码示例

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


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

示例1: EntityAIFindOtherSlimeNearest

import net.minecraft.entity.monster.EntitySlime; //导入方法依赖的package包/类
public EntityAIFindOtherSlimeNearest(final EntitySlime mobIn)
{
    super(mobIn, EntitySlime.class);
    this.slime = mobIn;
    Predicate<EntityLivingBase> predicate = entity -> {
        double range = EntityAIFindOtherSlimeNearest.this.getFollowRange();
        return entity != null
                && entity != mobIn
                && entity.getClass() == mobIn.getClass()
                && entity.ticksExisted > AGE_LIMIT
                && !entity.isInvisible()
                && entity.getDistance(mobIn) <= range
                && ((EntitySlime) entity).getSlimeSize() == mobIn.getSlimeSize()
                && EntityAITarget.isSuitableTarget(mobIn, entity, false, true);
    };

    try
    {
        predicateField.set(this, predicate);
    }
    catch (IllegalAccessException e)
    {
        throw new ReportedException(new CrashReport("Could not set private field '" + predicateField.getName() + "'", e));
    }
}
 
开发者ID:gigaherz,项目名称:Survivalist,代码行数:26,代码来源:SlimeMerger.java

示例2: preRenderCallback

import net.minecraft.entity.monster.EntitySlime; //导入方法依赖的package包/类
/**
 * Allows the render to do any OpenGL state modifications necessary before the model is rendered. Args:
 * entityLiving, partialTickTime
 */
protected void preRenderCallback(EntitySlime entitylivingbaseIn, float partialTickTime)
{
    float f = (float)entitylivingbaseIn.getSlimeSize();
    float f1 = (entitylivingbaseIn.prevSquishFactor + (entitylivingbaseIn.squishFactor - entitylivingbaseIn.prevSquishFactor) * partialTickTime) / (f * 0.5F + 1.0F);
    float f2 = 1.0F / (f1 + 1.0F);
    GlStateManager.scale(f2 * f, 1.0F / f2 * f, f2 * f);
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:12,代码来源:RenderSlime.java

示例3: preRenderCallback

import net.minecraft.entity.monster.EntitySlime; //导入方法依赖的package包/类
/**
 * Allows the render to do state modifications necessary before the model is rendered.
 */
protected void preRenderCallback(EntitySlime entitylivingbaseIn, float partialTickTime)
{
    float f = 0.999F;
    GlStateManager.scale(0.999F, 0.999F, 0.999F);
    float f1 = (float)entitylivingbaseIn.getSlimeSize();
    float f2 = (entitylivingbaseIn.prevSquishFactor + (entitylivingbaseIn.squishFactor - entitylivingbaseIn.prevSquishFactor) * partialTickTime) / (f1 * 0.5F + 1.0F);
    float f3 = 1.0F / (f2 + 1.0F);
    GlStateManager.scale(f3 * f1, 1.0F / f3 * f1, f3 * f1);
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:13,代码来源:RenderSlime.java

示例4: preRenderCallback

import net.minecraft.entity.monster.EntitySlime; //导入方法依赖的package包/类
/**
 * Allows the render to do any OpenGL state modifications necessary before the model is rendered. Args:
 * entityLiving, partialTickTime
 */
protected void preRenderCallback(EntitySlime par1EntitySlime, float par2)
{
    float var3 = (float)par1EntitySlime.getSlimeSize();
    float var4 = (par1EntitySlime.prevSquishFactor + (par1EntitySlime.squishFactor - par1EntitySlime.prevSquishFactor) * par2) / (var3 * 0.5F + 1.0F);
    float var5 = 1.0F / (var4 + 1.0F);
    GL11.glScalef(var5 * var3, 1.0F / var5 * var3, var5 * var3);
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:12,代码来源:RenderSlime.java

示例5: preRenderCallback

import net.minecraft.entity.monster.EntitySlime; //导入方法依赖的package包/类
/**
 * Allows the render to do any OpenGL state modifications necessary before the model is rendered. Args:
 * entityLiving, partialTickTime
 */
protected void preRenderCallback(EntitySlime p_77041_1_, float p_77041_2_)
{
    float f1 = (float)p_77041_1_.getSlimeSize();
    float f2 = (p_77041_1_.prevSquishFactor + (p_77041_1_.squishFactor - p_77041_1_.prevSquishFactor) * p_77041_2_) / (f1 * 0.5F + 1.0F);
    float f3 = 1.0F / (f2 + 1.0F);
    GL11.glScalef(f3 * f1, 1.0F / f3 * f1, f3 * f1);
}
 
开发者ID:SpitefulFox,项目名称:RidiculousWorld,代码行数:12,代码来源:RenderShadowSlime.java

示例6: preRenderCallback

import net.minecraft.entity.monster.EntitySlime; //导入方法依赖的package包/类
/**
 * Allows the render to do any OpenGL state modifications necessary before the model is rendered. Args:
 * entityLiving, partialTickTime
 */
protected void preRenderCallback(EntitySlime slime, float partialTickTime)
{
    float f1 = (float)slime.getSlimeSize();
    float f2 = (slime.prevSquishFactor + (slime.squishFactor - slime.prevSquishFactor) * partialTickTime) / (f1 * 0.5F + 1.0F);
    float f3 = 1.0F / (f2 + 1.0F);
    GL11.glScalef(f3 * f1, 1.0F / f3 * f1, f3 * f1);
}
 
开发者ID:SpitefulFox,项目名称:RidiculousWorld,代码行数:12,代码来源:RenderShoggoth.java

示例7: preRenderCallback

import net.minecraft.entity.monster.EntitySlime; //导入方法依赖的package包/类
protected void preRenderCallback(EntitySlime p_77041_1_, float p_77041_2_)
{
    float f1 = (float)p_77041_1_.getSlimeSize();
    float f2 = (p_77041_1_.prevSquishFactor + (p_77041_1_.squishFactor - p_77041_1_.prevSquishFactor) * p_77041_2_) / (f1 * 0.5F + 1.0F);
    float f3 = 1.0F / (f2 + 1.0F);
    GL11.glScalef(f3 * f1, 1.0F / f3 * f1, f3 * f1);
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:8,代码来源:RenderSlime.java

示例8: scaleSlime

import net.minecraft.entity.monster.EntitySlime; //导入方法依赖的package包/类
/**
 * sets the scale for the slime based on getSlimeSize in EntitySlime
 */
protected void scaleSlime(EntitySlime par1EntitySlime, float par2)
{
    float f1 = (float)par1EntitySlime.getSlimeSize();
    float f2 = (par1EntitySlime.prevSquishFactor + (par1EntitySlime.squishFactor - par1EntitySlime.prevSquishFactor) * par2) / (f1 * 0.5F + 1.0F);
    float f3 = 1.0F / (f2 + 1.0F);
    GL11.glScalef(f3 * f1, 1.0F / f3 * f1, f3 * f1);
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:11,代码来源:RenderSlime.java

示例9: doRender

import net.minecraft.entity.monster.EntitySlime; //导入方法依赖的package包/类
/**
 * Renders the desired {@code T} type Entity.
 */
public void doRender(EntitySlime entity, double x, double y, double z, float entityYaw, float partialTicks)
{
    this.shadowSize = 0.25F * (float)entity.getSlimeSize();
    super.doRender(entity, x, y, z, entityYaw, partialTicks);
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:9,代码来源:RenderSlime.java

示例10: doRender

import net.minecraft.entity.monster.EntitySlime; //导入方法依赖的package包/类
/**
 * Actually renders the given argument. This is a synthetic bridge method, always casting down its argument and then
 * handing it off to a worker function which does the actual work. In all probabilty, the class Render is generic
 * (Render<T extends Entity>) and this method has signature public void doRender(T entity, double d, double d1,
 * double d2, float f, float f1). But JAD is pre 1.5 so doe
 */
public void doRender(EntitySlime entity, double x, double y, double z, float entityYaw, float partialTicks)
{
    this.shadowSize = 0.25F * (float)entity.getSlimeSize();
    super.doRender(entity, x, y, z, entityYaw, partialTicks);
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:12,代码来源:RenderSlime.java


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