• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java EntityStray类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: saveCurrentRenderers

import net.minecraft.entity.monster.EntityStray; //导入依赖的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


示例2: BiomeSnow

import net.minecraft.entity.monster.EntityStray; //导入依赖的package包/类
public BiomeSnow(boolean superIcyIn, Biome.BiomeProperties properties)
{
    super(properties);
    this.superIcy = superIcyIn;

    if (superIcyIn)
    {
        this.topBlock = Blocks.SNOW.getDefaultState();
    }

    this.spawnableCreatureList.clear();
    this.spawnableCreatureList.add(new Biome.SpawnListEntry(EntityRabbit.class, 10, 2, 3));
    this.spawnableCreatureList.add(new Biome.SpawnListEntry(EntityPolarBear.class, 1, 1, 2));
    Iterator<Biome.SpawnListEntry> iterator = this.spawnableMonsterList.iterator();

    while (iterator.hasNext())
    {
        Biome.SpawnListEntry biome$spawnlistentry = (Biome.SpawnListEntry)iterator.next();

        if (biome$spawnlistentry.entityClass == EntitySkeleton.class)
        {
            iterator.remove();
        }
    }

    this.spawnableMonsterList.add(new Biome.SpawnListEntry(EntitySkeleton.class, 20, 4, 4));
    this.spawnableMonsterList.add(new Biome.SpawnListEntry(EntityStray.class, 80, 4, 4));
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:29,代码来源:BiomeSnow.java


示例3: doRenderLayer

import net.minecraft.entity.monster.EntityStray; //导入依赖的package包/类
public void doRenderLayer(EntityStray entitylivingbaseIn, float limbSwing, float limbSwingAmount, float partialTicks, float ageInTicks, float netHeadYaw, float headPitch, float scale)
{
    this.layerModel.setModelAttributes(this.renderer.getMainModel());
    this.layerModel.setLivingAnimations(entitylivingbaseIn, limbSwing, limbSwingAmount, partialTicks);
    GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
    this.renderer.bindTexture(STRAY_CLOTHES_TEXTURES);
    this.layerModel.render(entitylivingbaseIn, limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch, scale);
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:9,代码来源:LayerStrayClothing.java


示例4: getTexture

import net.minecraft.entity.monster.EntityStray; //导入依赖的package包/类
@Override
protected ResourceLocation getTexture(EntityStray entity) {
    return STRAY;
}
 
开发者ID:MineLittlePony,项目名称:MineLittlePony,代码行数:5,代码来源:RenderPonySkeleton.java


示例5: doRenderLayer

import net.minecraft.entity.monster.EntityStray; //导入依赖的package包/类
@Override
public void doRenderLayer(EntityStray skele, float limbSwing, float limbSwingAmount, float partialTicks, float ageInTicks, float netHeadYaw, float headPitch, float scale) {
    this.renderOverlay(skele, limbSwing, limbSwingAmount, partialTicks, ageInTicks, netHeadYaw, headPitch, scale);
}
 
开发者ID:MineLittlePony,项目名称:MineLittlePony,代码行数:5,代码来源:LayerPonyStrayOverlay.java


示例6: initializeMobRenderers

import net.minecraft.entity.monster.EntityStray; //导入依赖的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


示例7: isStraySkeleton

import net.minecraft.entity.monster.EntityStray; //导入依赖的package包/类
public static boolean isStraySkeleton(AbstractSkeleton skeleton) {
    return skeleton instanceof EntityGSSkeleton && ((EntityGSSkeleton) skeleton).getSkeletonType() == SkeletonType.STRAY ||
            skeleton instanceof EntityStray;
}
 
开发者ID:NightKosh,项目名称:Gravestone-mod-Extended,代码行数:5,代码来源:MobSpawn.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java RAMJobStore类代码示例发布时间:2022-05-22
下一篇:
Java PolarPoint类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap