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


Java EntityMagmaCube类代码示例

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


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

示例1: setLivingAnimations

import net.minecraft.entity.monster.EntityMagmaCube; //导入依赖的package包/类
/**
 * Used for easily adding entity-dependent animations. The second and third float params here are the same second
 * and third as in the setRotationAngles method.
 */
public void setLivingAnimations(EntityLivingBase entitylivingbaseIn, float p_78086_2_, float p_78086_3_, float partialTickTime)
{
    EntityMagmaCube entitymagmacube = (EntityMagmaCube)entitylivingbaseIn;
    float f = entitymagmacube.prevSquishFactor + (entitymagmacube.squishFactor - entitymagmacube.prevSquishFactor) * partialTickTime;

    if (f < 0.0F)
    {
        f = 0.0F;
    }

    for (int i = 0; i < this.segments.length; ++i)
    {
        this.segments[i].rotationPointY = (float)(-(4 - i)) * f * 1.7F;
    }
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:20,代码来源:ModelMagmaCube.java

示例2: setLivingAnimations

import net.minecraft.entity.monster.EntityMagmaCube; //导入依赖的package包/类
/**
 * Used for easily adding entity-dependent animations. The second and third float params here are the same second
 * and third as in the setRotationAngles method.
 */
public void setLivingAnimations(EntityLivingBase par1EntityLivingBase, float par2, float par3, float par4)
{
    EntityMagmaCube var5 = (EntityMagmaCube)par1EntityLivingBase;
    float var6 = var5.prevSquishFactor + (var5.squishFactor - var5.prevSquishFactor) * par4;

    if (var6 < 0.0F)
    {
        var6 = 0.0F;
    }

    for (int var7 = 0; var7 < this.field_78109_a.length; ++var7)
    {
        this.field_78109_a[var7].rotationPointY = (float)(-(4 - var7)) * var6 * 1.7F;
    }
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:20,代码来源:ModelMagmaCube.java

示例3: BiomeGenDarkLand

import net.minecraft.entity.monster.EntityMagmaCube; //导入依赖的package包/类
public BiomeGenDarkLand(int id) {
    super(id);
   	this.waterColorMultiplier = 0x666600;
   	this.theBiomeDecorator.treesPerChunk = 1;
   	this.theBiomeDecorator.grassPerChunk = 1;
   	this.theBiomeDecorator.flowersPerChunk = -999;
    this.theBiomeDecorator.generateLakes = true;
    this.spawnableMonsterList.clear();
    this.spawnableCreatureList.clear();
    
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityDarkZertum.class, 100, 4, 4));
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityBat.class, 60, 1, 5));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityMagmaCube.class, 1, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityPigZombie.class, 20, 2, 3));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityGhast.class, 20, 1, 2));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityKurr.class, 10, 2, 2));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySpider.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityZombie.class, 100, 4, 4));
}
 
开发者ID:NovaViper,项目名称:ZeroQuest,代码行数:20,代码来源:BiomeGenDarkLand.java

示例4: BiomeGenDarkLand

import net.minecraft.entity.monster.EntityMagmaCube; //导入依赖的package包/类
public BiomeGenDarkLand(int id) {
    super(id);
   	this.waterColorMultiplier = 0x666600;
   	this.theBiomeDecorator.treesPerChunk = 1;
   	this.theBiomeDecorator.grassPerChunk = 1;
   	this.theBiomeDecorator.flowersPerChunk = -999;
   	this.addFlower(ModBlocks.nileBlackFlower.getDefaultState(), 100);
    this.theBiomeDecorator.generateLakes = true;
    this.spawnableMonsterList.clear();
    this.spawnableCreatureList.clear();
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityBat.class, 60, 1, 5));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityMagmaCube.class, 1, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityPigZombie.class, 20, 2, 3));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityGhast.class, 20, 1, 2));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySpider.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityZombie.class, 100, 4, 4));
}
 
开发者ID:NovaViper,项目名称:ZeroQuest,代码行数:18,代码来源:BiomeGenDarkLand.java

示例5: BiomeHellAnomaly

import net.minecraft.entity.monster.EntityMagmaCube; //导入依赖的package包/类
public BiomeHellAnomaly(int id) {
    super(id);
    this.setBiomeName("Hell Anomaly");

    this.rootHeight = -1F;
    this.heightVariation = 3.5F;

    this.setColor(16711680);
    this.setDisableRain();

    this.spawnableMonsterList.clear();
    this.spawnableCreatureList.clear();
    this.spawnableWaterCreatureList.clear();
    this.spawnableCaveCreatureList.clear();
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityGhast.class, 50, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityPigZombie.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityMagmaCube.class, 1, 4, 4));
    this.topBlock = Blocks.netherrack;
    this.fillerBlock = Blocks.netherrack;
    this.theBiomeDecorator = new BiomeAnomalyDecorator();
}
 
开发者ID:MSourceCoded,项目名称:Quantum-Anomalies,代码行数:22,代码来源:BiomeHellAnomaly.java

示例6: init

import net.minecraft.entity.monster.EntityMagmaCube; //导入依赖的package包/类
private static void init() {
	addDrop(EntityCreeper.class, SkillBase.armorBreak);
	addDrop(EntityIronGolem.class, SkillBase.armorBreak);
	addDrop(EntitySilverfish.class, SkillBase.dash);
	addDrop(EntityHorse.class, SkillBase.dash);
	addDrop(EntityEnderman.class, SkillBase.dodge);
	addDrop(EntityKeese.class, SkillBase.dodge);
	addDrop(EntitySpider.class, SkillBase.endingBlow);
	addDrop(EntityCaveSpider.class, SkillBase.leapingBlow);
	addDrop(EntityMagmaCube.class, SkillBase.leapingBlow);
	addDrop(EntityPigZombie.class, SkillBase.parry);
	addDrop(EntityOcelot.class, SkillBase.parry);
	addDrop(EntityOctorok.class, SkillBase.risingCut);
	addDrop(EntityBlaze.class, SkillBase.spinAttack);
	addDrop(EntityDarknut.class, SkillBase.spinAttack);
	addDrop(EntityZombie.class, SkillBase.swordBasic);
	addDrop(EntitySkeleton.class, SkillBase.swordBasic);
	addDrop(EntityGhast.class, SkillBase.swordBeam);
	addDrop(EntityWitch.class, SkillBase.swordBeam);
	addDrop(EntityWizzrobe.class, SkillBase.swordBreak);
}
 
开发者ID:coolAlias,项目名称:ZeldaSwordSkills,代码行数:22,代码来源:ZSSItemEvents.java

示例7: setLivingAnimations

import net.minecraft.entity.monster.EntityMagmaCube; //导入依赖的package包/类
/**
 * Used for easily adding entity-dependent animations. The second and third float params here are the same second
 * and third as in the setRotationAngles method.
 */
public void setLivingAnimations(EntityLivingBase par1EntityLivingBase, float par2, float par3, float par4)
{
    EntityMagmaCube entitymagmacube = (EntityMagmaCube)par1EntityLivingBase;
    float f3 = entitymagmacube.prevSquishFactor + (entitymagmacube.squishFactor - entitymagmacube.prevSquishFactor) * par4;

    if (f3 < 0.0F)
    {
        f3 = 0.0F;
    }

    for (int i = 0; i < this.field_78109_a.length; ++i)
    {
        this.field_78109_a[i].rotationPointY = (float)(-(4 - i)) * f3 * 1.7F;
    }
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:20,代码来源:ModelMagmaCube.java

示例8: setLivingAnimations

import net.minecraft.entity.monster.EntityMagmaCube; //导入依赖的package包/类
@Override
public void setLivingAnimations(EntityLivingBase p_78086_1_, float p_78086_2_, float p_78086_3_, float p_78086_4_) {
  EntityMagmaCube entitymagmacube = (EntityMagmaCube) p_78086_1_;
  float f3 = entitymagmacube.prevSquishFactor + (entitymagmacube.squishFactor - entitymagmacube.prevSquishFactor) * p_78086_4_;
  int size = entitymagmacube.getSlimeSize();

  if (f3 < 0.0F) {
    f3 = 0.0F;
  }

  if (size > 1) {
    int i = (p_78086_1_.ticksExisted >> 2) % 8;
    coreRenderer = coreRenderers[i];
  } else {
    coreRenderer = coreRendererClay;
  }

  coreRenderer.rotationPointY = f3 * 1.7F;

  for (int i = 0; i < this.sliceRenderers.length; ++i) {
    this.sliceRenderers[i].rotationPointY = (-(4 - i)) * f3 * 1.7F;
  }
}
 
开发者ID:SleepyTrousers,项目名称:EnderZoo,代码行数:24,代码来源:ModelDireSlime.java

示例9: BiomeGenHell

import net.minecraft.entity.monster.EntityMagmaCube; //导入依赖的package包/类
public BiomeGenHell(int p_i1981_1_)
{
    super(p_i1981_1_);
    this.spawnableMonsterList.clear();
    this.spawnableCreatureList.clear();
    this.spawnableWaterCreatureList.clear();
    this.spawnableCaveCreatureList.clear();
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityGhast.class, 50, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityPigZombie.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityMagmaCube.class, 1, 4, 4));
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:12,代码来源:BiomeGenHell.java

示例10: MapGenNetherBridge

import net.minecraft.entity.monster.EntityMagmaCube; //导入依赖的package包/类
public MapGenNetherBridge()
{
    this.spawnList.add(new BiomeGenBase.SpawnListEntry(EntityBlaze.class, 10, 2, 3));
    this.spawnList.add(new BiomeGenBase.SpawnListEntry(EntityPigZombie.class, 5, 4, 4));
    this.spawnList.add(new BiomeGenBase.SpawnListEntry(EntitySkeleton.class, 10, 4, 4));
    this.spawnList.add(new BiomeGenBase.SpawnListEntry(EntityMagmaCube.class, 3, 4, 4));
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:8,代码来源:MapGenNetherBridge.java

示例11: preRenderCallback

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

示例12: BiomeHell

import net.minecraft.entity.monster.EntityMagmaCube; //导入依赖的package包/类
public BiomeHell(Biome.BiomeProperties properties)
{
    super(properties);
    this.spawnableMonsterList.clear();
    this.spawnableCreatureList.clear();
    this.spawnableWaterCreatureList.clear();
    this.spawnableCaveCreatureList.clear();
    this.spawnableMonsterList.add(new Biome.SpawnListEntry(EntityGhast.class, 50, 4, 4));
    this.spawnableMonsterList.add(new Biome.SpawnListEntry(EntityPigZombie.class, 100, 4, 4));
    this.spawnableMonsterList.add(new Biome.SpawnListEntry(EntityMagmaCube.class, 2, 4, 4));
    this.spawnableMonsterList.add(new Biome.SpawnListEntry(EntityEnderman.class, 1, 4, 4));
    this.theBiomeDecorator = new BiomeHellDecorator();
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:14,代码来源:BiomeHell.java

示例13: MapGenNetherBridge

import net.minecraft.entity.monster.EntityMagmaCube; //导入依赖的package包/类
public MapGenNetherBridge()
{
    this.spawnList.add(new Biome.SpawnListEntry(EntityBlaze.class, 10, 2, 3));
    this.spawnList.add(new Biome.SpawnListEntry(EntityPigZombie.class, 5, 4, 4));
    this.spawnList.add(new Biome.SpawnListEntry(EntityWitherSkeleton.class, 8, 5, 5));
    this.spawnList.add(new Biome.SpawnListEntry(EntitySkeleton.class, 2, 5, 5));
    this.spawnList.add(new Biome.SpawnListEntry(EntityMagmaCube.class, 3, 4, 4));
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:9,代码来源:MapGenNetherBridge.java

示例14: preRenderCallback

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

示例15: MapGenNetherBridge

import net.minecraft.entity.monster.EntityMagmaCube; //导入依赖的package包/类
public MapGenNetherBridge()
{
    this.spawnList.add(new Biome.SpawnListEntry(EntityBlaze.class, 10, 2, 3));
    this.spawnList.add(new Biome.SpawnListEntry(EntityPigZombie.class, 5, 4, 4));
    this.spawnList.add(new Biome.SpawnListEntry(EntitySkeleton.class, 10, 4, 4));
    this.spawnList.add(new Biome.SpawnListEntry(EntityMagmaCube.class, 3, 4, 4));
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:8,代码来源:MapGenNetherBridge.java


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