本文整理汇总了Java中net.minecraft.entity.monster.EntityHusk类的典型用法代码示例。如果您正苦于以下问题:Java EntityHusk类的具体用法?Java EntityHusk怎么用?Java EntityHusk使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
EntityHusk类属于net.minecraft.entity.monster包,在下文中一共展示了EntityHusk类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: unearthMe
import net.minecraft.entity.monster.EntityHusk; //导入依赖的package包/类
private EntityZombie unearthMe()
{
EntityZombie zombie = (this.getZombieType() == ZombieType.NORMAL ? new EntityZombie(this.world) : new EntityHusk(this.world));
zombie.renderYawOffset = this.renderYawOffset;
zombie.prevRotationPitch = zombie.rotationPitch = this.rotationPitch;
zombie.prevRotationYaw = zombie.rotationYaw = this.rotationYaw;
zombie.setPosition(this.posX, this.posY, this.posZ);
zombie.setHealth(this.getHealth());
zombie.setFire((Integer)ReflectionUtils.getFieldValue(entityFire, this));
zombie.setAttackTarget(this.getAttackTarget());
this.springEffect();
this.setDead();
this.world.spawnEntity(zombie);
return zombie;
}
开发者ID:crazysnailboy,项目名称:Halloween,代码行数:18,代码来源:EntityZombieHands.java
示例2: earthMe
import net.minecraft.entity.monster.EntityHusk; //导入依赖的package包/类
private EntityZombieHands earthMe(EntityZombie zombie)
{
EntityZombieHands entity = new EntityZombieHands(this.world);
entity.renderYawOffset = zombie.renderYawOffset;
entity.prevRotationPitch = entity.rotationPitch = zombie.rotationPitch;
entity.prevRotationYaw = entity.rotationYaw = zombie.rotationYaw;
entity.setPosition(zombie.posX, zombie.posY, zombie.posZ);
entity.setHealth(zombie.getHealth());
entity.setFire((Integer)ReflectionUtils.getFieldValue(entityFire, zombie));
entity.setAttackTarget(zombie.getAttackTarget());
entity.setZombieType(zombie instanceof EntityHusk ? ZombieType.HUSK : ZombieType.NORMAL);
zombie.setDead();
entity.springEffect();
this.world.spawnEntity(entity);
return entity;
}
开发者ID:crazysnailboy,项目名称:Halloween,代码行数:19,代码来源:EntityZombieHands.java
示例3: saveCurrentRenderers
import net.minecraft.entity.monster.EntityHusk; //导入依赖的package包/类
private void saveCurrentRenderers(RenderManager rm) {
// villagers
saveRenderer(rm, EntityVillager.class);
saveRenderer(rm, EntityZombieVillager.class);
// zombies
saveRenderer(rm, EntityZombie.class);
saveRenderer(rm, EntityHusk.class);
// pig zombie
saveRenderer(rm, EntityPigZombie.class);
// skeletons
saveRenderer(rm, EntitySkeleton.class);
saveRenderer(rm, EntityStray.class);
saveRenderer(rm, EntityWitherSkeleton.class);
// illagers
saveRenderer(rm, EntityVex.class);
saveRenderer(rm, EntityEvoker.class);
saveRenderer(rm, EntityVindicator.class);
saveRenderer(rm, EntityIllusionIllager.class);
}
开发者ID:MineLittlePony,项目名称:MineLittlePony,代码行数:20,代码来源:MineLittlePony.java
示例4: BiomeDesert
import net.minecraft.entity.monster.EntityHusk; //导入依赖的package包/类
public BiomeDesert(Biome.BiomeProperties properties)
{
super(properties);
this.spawnableCreatureList.clear();
this.topBlock = Blocks.SAND.getDefaultState();
this.fillerBlock = Blocks.SAND.getDefaultState();
this.theBiomeDecorator.treesPerChunk = -999;
this.theBiomeDecorator.deadBushPerChunk = 2;
this.theBiomeDecorator.reedsPerChunk = 50;
this.theBiomeDecorator.cactiPerChunk = 10;
this.spawnableCreatureList.clear();
this.spawnableCreatureList.add(new Biome.SpawnListEntry(EntityRabbit.class, 4, 2, 3));
Iterator<Biome.SpawnListEntry> iterator = this.spawnableMonsterList.iterator();
while (iterator.hasNext())
{
Biome.SpawnListEntry biome$spawnlistentry = (Biome.SpawnListEntry)iterator.next();
if (biome$spawnlistentry.entityClass == EntityZombie.class || biome$spawnlistentry.entityClass == EntityZombieVillager.class)
{
iterator.remove();
}
}
this.spawnableMonsterList.add(new Biome.SpawnListEntry(EntityZombie.class, 19, 4, 4));
this.spawnableMonsterList.add(new Biome.SpawnListEntry(EntityZombieVillager.class, 1, 1, 1));
this.spawnableMonsterList.add(new Biome.SpawnListEntry(EntityHusk.class, 80, 4, 4));
}
开发者ID:sudofox,项目名称:Backmemed,代码行数:29,代码来源:BiomeDesert.java
示例5: preRenderCallback
import net.minecraft.entity.monster.EntityHusk; //导入依赖的package包/类
@Override
protected void preRenderCallback(EntityHusk entitylivingbaseIn, float partialTickTime) {
GlStateManager.scale(1.0625F, 1.0625F, 1.0625F);
super.preRenderCallback(entitylivingbaseIn, partialTickTime);
}
开发者ID:MineLittlePony,项目名称:MineLittlePony,代码行数:6,代码来源:RenderPonyZombie.java
示例6: getTexture
import net.minecraft.entity.monster.EntityHusk; //导入依赖的package包/类
@Override
protected ResourceLocation getTexture(EntityHusk zombie) {
return HUSK;
}
开发者ID:MineLittlePony,项目名称:MineLittlePony,代码行数:5,代码来源:RenderPonyZombie.java
示例7: initializeMobRenderers
import net.minecraft.entity.monster.EntityHusk; //导入依赖的package包/类
public void initializeMobRenderers(RenderManager rm) {
if (this.config.villagers) {
ModUtilities.addRenderer(EntityVillager.class, new RenderPonyVillager(rm));
ModUtilities.addRenderer(EntityZombieVillager.class, new RenderPonyZombieVillager(rm));
logger.info("Villagers are now ponies.");
} else {
ModUtilities.addRenderer(EntityVillager.class, getRenderer(EntityVillager.class));
ModUtilities.addRenderer(EntityZombieVillager.class, getRenderer(EntityZombieVillager.class));
}
if (this.config.zombies) {
ModUtilities.addRenderer(EntityZombie.class, new RenderPonyZombie<>(rm));
ModUtilities.addRenderer(EntityHusk.class, new RenderPonyZombie.Husk(rm));
logger.info("Zombies are now ponies.");
} else {
ModUtilities.addRenderer(EntityZombie.class, getRenderer(EntityZombie.class));
ModUtilities.addRenderer(EntityHusk.class, getRenderer(EntityHusk.class));
}
if (this.config.pigzombies) {
ModUtilities.addRenderer(EntityPigZombie.class, new RenderPonyPigman(rm));
logger.info("Zombie pigmen are now ponies.");
} else {
ModUtilities.addRenderer(EntityPigZombie.class, getRenderer(EntityPigZombie.class));
}
if (this.config.skeletons) {
ModUtilities.addRenderer(EntitySkeleton.class, new RenderPonySkeleton<>(rm));
ModUtilities.addRenderer(EntityStray.class, new RenderPonySkeleton.Stray(rm));
ModUtilities.addRenderer(EntityWitherSkeleton.class, new RenderPonySkeleton.Wither(rm));
logger.info("Skeletons are now ponies.");
} else {
ModUtilities.addRenderer(EntitySkeleton.class, getRenderer(EntitySkeleton.class));
ModUtilities.addRenderer(EntityStray.class, getRenderer(EntityStray.class));
ModUtilities.addRenderer(EntityWitherSkeleton.class, getRenderer(EntityWitherSkeleton.class));
}
if (this.config.illagers) {
ModUtilities.addRenderer(EntityVex.class, new RenderPonyVex(rm));
ModUtilities.addRenderer(EntityEvoker.class, new RenderPonyEvoker(rm));
ModUtilities.addRenderer(EntityVindicator.class, new RenderPonyVindicator(rm));
ModUtilities.addRenderer(EntityIllusionIllager.class, new RenderPonyIllusionIllager(rm));
logger.info("Illagers are now ponies.");
} else {
ModUtilities.addRenderer(EntityVex.class, getRenderer(EntityVex.class));
ModUtilities.addRenderer(EntityEvoker.class, getRenderer(EntityEvoker.class));
ModUtilities.addRenderer(EntityVindicator.class, getRenderer(EntityVindicator.class));
ModUtilities.addRenderer(EntityIllusionIllager.class, getRenderer(EntityIllusionIllager.class));
}
}
开发者ID:MineLittlePony,项目名称:MineLittlePony,代码行数:51,代码来源:MineLittlePony.java
注:本文中的net.minecraft.entity.monster.EntityHusk类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论