Java 类net.minecraft.entity.passive.EntityRabbit 实例源码

项目:BetterThanLlamas    文件:LayerFancyLlama.java   
public LayerFancyLlama(RenderLlama renderer)
{
    this.renderer = renderer;
    this.rand = new Random();
    this.modelFancy = new ModelFancy();

    Calendar calendar = Calendar.getInstance();
    calendar.setTimeInMillis(System.currentTimeMillis());

    isAFDay = calendar.get(Calendar.MONTH) == Calendar.APRIL && calendar.get(Calendar.DAY_OF_MONTH) == 1;
    if(isAFDay)
    {
        modelRabbit = new ModelRabbit();
        modelRabbit.isChild = false;
        rabbitInstance = new EntityRabbit(null);
        if(renderer.mainModel instanceof ModelLlama)
        {
            ((ModelLlama)renderer.mainModel).head = new ModelRenderer(renderer.mainModel, 33, 4);
            ((ModelLlama)renderer.mainModel).head.addBox(-4.0F, -9.0F, -6.0F, 8, 11, 6, 0);
            ((ModelLlama)renderer.mainModel).head.setRotationPoint(0.0F, 7.0F, -6.0F);
        }
    }
}
项目:modName    文件:BiomeTundra.java   
public BiomeTundra() {
    super(new BiomeProperties("Tundra")
            .setBaseHeight(0.325f)
            .setHeightVariation(0.05f)
            .setTemperature(0.2f) // 0.25f
            .setRainfall(0.45f)
    );

    this.setRegistryName(Ref.MODID+":steppe");
    this.decorator.treesPerChunk = 1;
    this.decorator.grassPerChunk = 10;
    this.decorator.flowersPerChunk = 2;
    this.decorator.reedsPerChunk = -999;
    this.decorator.cactiPerChunk = -999;

    this.spawnableCreatureList.clear();
    this.spawnableCreatureList.add(new Biome.SpawnListEntry(EntityRabbit.class, 10, 2, 3));
    this.spawnableCreatureList.add(new Biome.SpawnListEntry(EntitySheep.class, 12, 1, 5));
    Ref.BIOMES.add(this);
}
项目:modName    文件:BiomeScrubland.java   
public BiomeScrubland() {
    super(new BiomeProperties("Scrubland")
            .setBaseHeight(0.125f)
            .setHeightVariation(0.05f)
            .setTemperature(1.60f)
            .setRainfall(0.00f)
            .setRainDisabled()
    );

    this.setRegistryName(Ref.MODID+":scrubland");
    this.decorator.treesPerChunk = -999;
    this.decorator.deadBushPerChunk = 50;
    this.decorator.reedsPerChunk = 10;
    this.decorator.cactiPerChunk = 4;
    this.decorator.flowersPerChunk = 2;
    this.decorator.grassPerChunk = 4;
    this.spawnableCreatureList.clear();
    this.spawnableCreatureList.add(new Biome.SpawnListEntry(EntityCow.class, 6, 4, 4));
    this.spawnableCreatureList.add(new Biome.SpawnListEntry(EntityRabbit.class, 4, 2, 3));
    Ref.BIOMES.add(this);
}
项目:Backmemed    文件:BiomeForest.java   
public BiomeForest(BiomeForest.Type typeIn, Biome.BiomeProperties properties)
{
    super(properties);
    this.type = typeIn;
    this.theBiomeDecorator.treesPerChunk = 10;
    this.theBiomeDecorator.grassPerChunk = 2;

    if (this.type == BiomeForest.Type.FLOWER)
    {
        this.theBiomeDecorator.treesPerChunk = 6;
        this.theBiomeDecorator.flowersPerChunk = 100;
        this.theBiomeDecorator.grassPerChunk = 1;
        this.spawnableCreatureList.add(new Biome.SpawnListEntry(EntityRabbit.class, 4, 2, 3));
    }

    if (this.type == BiomeForest.Type.NORMAL)
    {
        this.spawnableCreatureList.add(new Biome.SpawnListEntry(EntityWolf.class, 5, 4, 4));
    }

    if (this.type == BiomeForest.Type.ROOFED)
    {
        this.theBiomeDecorator.treesPerChunk = -999;
    }
}
项目:Backmemed    文件:BiomeTaiga.java   
public BiomeTaiga(BiomeTaiga.Type typeIn, Biome.BiomeProperties properties)
{
    super(properties);
    this.type = typeIn;
    this.spawnableCreatureList.add(new Biome.SpawnListEntry(EntityWolf.class, 8, 4, 4));
    this.spawnableCreatureList.add(new Biome.SpawnListEntry(EntityRabbit.class, 4, 2, 3));
    this.theBiomeDecorator.treesPerChunk = 10;

    if (typeIn != BiomeTaiga.Type.MEGA && typeIn != BiomeTaiga.Type.MEGA_SPRUCE)
    {
        this.theBiomeDecorator.grassPerChunk = 1;
        this.theBiomeDecorator.mushroomsPerChunk = 1;
    }
    else
    {
        this.theBiomeDecorator.grassPerChunk = 7;
        this.theBiomeDecorator.deadBushPerChunk = 1;
        this.theBiomeDecorator.mushroomsPerChunk = 3;
    }
}
项目:Backmemed    文件:ModelRabbit.java   
/**
 * Sets the model's various rotation angles. For bipeds, par1 and par2 are used for animating the movement of arms
 * and legs, where par1 represents the time(so that arms and legs swing back and forth) and par2 represents how
 * "far" arms and legs can swing at most.
 */
public void setRotationAngles(float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scaleFactor, Entity entityIn)
{
    float f = ageInTicks - (float)entityIn.ticksExisted;
    EntityRabbit entityrabbit = (EntityRabbit)entityIn;
    this.rabbitNose.rotateAngleX = headPitch * 0.017453292F;
    this.rabbitHead.rotateAngleX = headPitch * 0.017453292F;
    this.rabbitRightEar.rotateAngleX = headPitch * 0.017453292F;
    this.rabbitLeftEar.rotateAngleX = headPitch * 0.017453292F;
    this.rabbitNose.rotateAngleY = netHeadYaw * 0.017453292F;
    this.rabbitHead.rotateAngleY = netHeadYaw * 0.017453292F;
    this.rabbitRightEar.rotateAngleY = this.rabbitNose.rotateAngleY - 0.2617994F;
    this.rabbitLeftEar.rotateAngleY = this.rabbitNose.rotateAngleY + 0.2617994F;
    this.jumpRotation = MathHelper.sin(entityrabbit.setJumpCompletion(f) * (float)Math.PI);
    this.rabbitLeftThigh.rotateAngleX = (this.jumpRotation * 50.0F - 21.0F) * 0.017453292F;
    this.rabbitRightThigh.rotateAngleX = (this.jumpRotation * 50.0F - 21.0F) * 0.017453292F;
    this.rabbitLeftFoot.rotateAngleX = this.jumpRotation * 50.0F * 0.017453292F;
    this.rabbitRightFoot.rotateAngleX = this.jumpRotation * 50.0F * 0.017453292F;
    this.rabbitLeftArm.rotateAngleX = (this.jumpRotation * -40.0F - 11.0F) * 0.017453292F;
    this.rabbitRightArm.rotateAngleX = (this.jumpRotation * -40.0F - 11.0F) * 0.017453292F;
}
项目:CustomWorldGen    文件:BiomeForest.java   
public BiomeForest(BiomeForest.Type typeIn, Biome.BiomeProperties properties)
{
    super(properties);
    this.type = typeIn;
    this.theBiomeDecorator.treesPerChunk = 10;
    this.theBiomeDecorator.grassPerChunk = 2;

    if (this.type == BiomeForest.Type.FLOWER)
    {
        this.theBiomeDecorator.treesPerChunk = 6;
        this.theBiomeDecorator.flowersPerChunk = 100;
        this.theBiomeDecorator.grassPerChunk = 1;
        this.spawnableCreatureList.add(new Biome.SpawnListEntry(EntityRabbit.class, 4, 2, 3));
    }

    if (this.type == BiomeForest.Type.NORMAL)
    {
        this.spawnableCreatureList.add(new Biome.SpawnListEntry(EntityWolf.class, 5, 4, 4));
    }

    if (this.type == BiomeForest.Type.ROOFED)
    {
        this.theBiomeDecorator.treesPerChunk = -999;
    }
}
项目:CustomWorldGen    文件:BiomeTaiga.java   
public BiomeTaiga(BiomeTaiga.Type typeIn, Biome.BiomeProperties properties)
{
    super(properties);
    this.type = typeIn;
    this.spawnableCreatureList.add(new Biome.SpawnListEntry(EntityWolf.class, 8, 4, 4));
    this.spawnableCreatureList.add(new Biome.SpawnListEntry(EntityRabbit.class, 4, 2, 3));
    this.theBiomeDecorator.treesPerChunk = 10;

    if (typeIn != BiomeTaiga.Type.MEGA && typeIn != BiomeTaiga.Type.MEGA_SPRUCE)
    {
        this.theBiomeDecorator.grassPerChunk = 1;
        this.theBiomeDecorator.mushroomsPerChunk = 1;
    }
    else
    {
        this.theBiomeDecorator.grassPerChunk = 7;
        this.theBiomeDecorator.deadBushPerChunk = 1;
        this.theBiomeDecorator.mushroomsPerChunk = 3;
    }
}
项目:CustomWorldGen    文件:ModelRabbit.java   
/**
 * Sets the model's various rotation angles. For bipeds, par1 and par2 are used for animating the movement of arms
 * and legs, where par1 represents the time(so that arms and legs swing back and forth) and par2 represents how
 * "far" arms and legs can swing at most.
 */
public void setRotationAngles(float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scaleFactor, Entity entityIn)
{
    float f = ageInTicks - (float)entityIn.ticksExisted;
    EntityRabbit entityrabbit = (EntityRabbit)entityIn;
    this.rabbitNose.rotateAngleX = headPitch * 0.017453292F;
    this.rabbitHead.rotateAngleX = headPitch * 0.017453292F;
    this.rabbitRightEar.rotateAngleX = headPitch * 0.017453292F;
    this.rabbitLeftEar.rotateAngleX = headPitch * 0.017453292F;
    this.rabbitNose.rotateAngleY = netHeadYaw * 0.017453292F;
    this.rabbitHead.rotateAngleY = netHeadYaw * 0.017453292F;
    this.rabbitRightEar.rotateAngleY = this.rabbitNose.rotateAngleY - 0.2617994F;
    this.rabbitLeftEar.rotateAngleY = this.rabbitNose.rotateAngleY + 0.2617994F;
    this.jumpRotation = MathHelper.sin(entityrabbit.setJumpCompletion(f) * (float)Math.PI);
    this.rabbitLeftThigh.rotateAngleX = (this.jumpRotation * 50.0F - 21.0F) * 0.017453292F;
    this.rabbitRightThigh.rotateAngleX = (this.jumpRotation * 50.0F - 21.0F) * 0.017453292F;
    this.rabbitLeftFoot.rotateAngleX = this.jumpRotation * 50.0F * 0.017453292F;
    this.rabbitRightFoot.rotateAngleX = this.jumpRotation * 50.0F * 0.017453292F;
    this.rabbitLeftArm.rotateAngleX = (this.jumpRotation * -40.0F - 11.0F) * 0.017453292F;
    this.rabbitRightArm.rotateAngleX = (this.jumpRotation * -40.0F - 11.0F) * 0.017453292F;
}
项目:Better-Than-Bunnies    文件:BetterThanBunnies.java   
@SubscribeEvent(priority = EventPriority.HIGHEST)
public void onInitGuiPost(GuiScreenEvent.InitGuiEvent.Post event)
{
    if(!hasShownFirstGui)
    {
        hasShownFirstGui = true;

        //Add the layer renderers
        Render renderer = Minecraft.getMinecraft().getRenderManager().getEntityClassRenderObject(EntityRabbit.class);
        if(renderer instanceof RenderRabbit)
        {
            RenderRabbit renderRabbit = (RenderRabbit)renderer;
            renderRabbit.addLayer(new LayerFancyBunny(renderRabbit));
        }
    }
}
项目:Possessed    文件:RabbitHandler.java   
@Override
public void onUpdate(PossessivePlayer possessivePlayer, EntityPlayer player) {
    EntityRabbit rabbit = (EntityRabbit) possessivePlayer.getPossessing();
    double speedX = player.posX - player.prevPosX;
    double speedZ = player.posZ - player.prevPosZ;
    double speed = speedX * speedX + speedZ * speedZ;
    if (player.onGround && (speed > 0.01 || speed < -0.01)) {
        player.jump();
        rabbit.startJumping();
        int x = MathHelper.floor_double(player.posX);
        int y = MathHelper.floor_double(player.posY - 0.20000000298023224D);
        int z = MathHelper.floor_double(player.posZ);
        IBlockState state = player.worldObj.getBlockState(new BlockPos(x, y, z));
        if (state.getRenderType() != EnumBlockRenderType.INVISIBLE) {
            for (int i = 0; i < 3; i++) {
                player.worldObj.spawnParticle(EnumParticleTypes.BLOCK_CRACK, player.posX + (player.getRNG().nextFloat() - 0.5D) * player.width, player.getEntityBoundingBox().minY + 0.1D, player.posZ + (player.getRNG().nextFloat() - 0.5D) * player.width, -player.motionX * 4.0D, 1.5D, -player.motionZ * 4.0D, Block.getStateId(state));
            }
        }
    }
}
项目:ZeroQuest    文件:EntityIceZertum.java   
public EntityIceZertum(World worldIn) {
    super(worldIn);
    this.tasks.removeTask(this.aiLeap);
    this.tasks.addTask(3, new EntityAICustomLeapAtTarget(this, 0.4F));
    this.tasks.addTask(4, new EntityAIIceAttack(this, 1.0D, 10, 30, 15.0F));
    this.targetTasks.addTask(4, new EntityAITargetNonTamed(this, EntityAnimal.class, false, new Predicate() {
        public boolean isApplicable(Entity entityIn) {
            return entityIn instanceof EntitySheep || entityIn instanceof EntityRabbit;
        }

        @Override
        public boolean apply(Object p_apply_1_) {
            return this.isApplicable((Entity) p_apply_1_);
        }
    }));
}
项目:ExpandedRailsMod    文件:ModelRabbit.java   
/**
 * Sets the model's various rotation angles. For bipeds, par1 and par2 are used for animating the movement of arms
 * and legs, where par1 represents the time(so that arms and legs swing back and forth) and par2 represents how
 * "far" arms and legs can swing at most.
 */
public void setRotationAngles(float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scaleFactor, Entity entityIn)
{
    float f = ageInTicks - (float)entityIn.ticksExisted;
    EntityRabbit entityrabbit = (EntityRabbit)entityIn;
    this.rabbitNose.rotateAngleX = headPitch * 0.017453292F;
    this.rabbitHead.rotateAngleX = headPitch * 0.017453292F;
    this.rabbitRightEar.rotateAngleX = headPitch * 0.017453292F;
    this.rabbitLeftEar.rotateAngleX = headPitch * 0.017453292F;
    this.rabbitNose.rotateAngleY = netHeadYaw * 0.017453292F;
    this.rabbitHead.rotateAngleY = netHeadYaw * 0.017453292F;
    this.rabbitRightEar.rotateAngleY = this.rabbitNose.rotateAngleY - 0.2617994F;
    this.rabbitLeftEar.rotateAngleY = this.rabbitNose.rotateAngleY + 0.2617994F;
    this.jumpRotation = MathHelper.sin(entityrabbit.setJumpCompletion(f) * (float)Math.PI);
    this.rabbitLeftThigh.rotateAngleX = (this.jumpRotation * 50.0F - 21.0F) * 0.017453292F;
    this.rabbitRightThigh.rotateAngleX = (this.jumpRotation * 50.0F - 21.0F) * 0.017453292F;
    this.rabbitLeftFoot.rotateAngleX = this.jumpRotation * 50.0F * 0.017453292F;
    this.rabbitRightFoot.rotateAngleX = this.jumpRotation * 50.0F * 0.017453292F;
    this.rabbitLeftArm.rotateAngleX = (this.jumpRotation * -40.0F - 11.0F) * 0.017453292F;
    this.rabbitRightArm.rotateAngleX = (this.jumpRotation * -40.0F - 11.0F) * 0.017453292F;
}
项目:reptiles    文件:EntityMegalania.java   
public EntityMegalania(World world) {
    super(world);
    float scaleFactor = 2.5f;
    setSize(1.0F * scaleFactor, 0.6F * scaleFactor);
    setPathPriority(PathNodeType.WATER, 0.0f);
    setHealth(60.0f);

    tasks.addTask(0, new EntityAISwimming(this));
    tasks.addTask(1, new EntityAILeapAtTarget(this, 0.4F));
    tasks.addTask(2, new EntityAIAttackMelee(this, 1.0D, true));
    tasks.addTask(3, new EntityAIWander(this, 0.9));
    tasks.addTask(4, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
    tasks.addTask(5, new EntityAILookIdle(this));

    targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
    targetTasks.addTask(2, new EntityAINearestAttackableTarget<>(this, EntityChicken.class, true));
    targetTasks.addTask(3, new EntityAINearestAttackableTarget<>(this, EntityPig.class, true));
    targetTasks.addTask(4, new EntityAINearestAttackableTarget<>(this, EntityPlayer.class, true));
    targetTasks.addTask(5, new EntityAINearestAttackableTarget<>(this, EntitySheep.class, true));
    targetTasks.addTask(6, new EntityAINearestAttackableTarget<>(this, EntityCow.class, true));
    targetTasks.addTask(7, new EntityAINearestAttackableTarget<>(this, EntitySkeleton.class, true));
    targetTasks.addTask(8, new EntityAINearestAttackableTarget<>(this, EntityRabbit.class, true));
}
项目:iChunUtil    文件:HeadRabbit.java   
@Override
public float[] getHeadJointOffset(EntityRabbit living, float partialTick, int eye)
{
    float scale = 0.0625F;
    if(living.isChild())
    {
        GlStateManager.scale(0.56666666F, 0.56666666F, 0.56666666F);
        GlStateManager.translate(0.0F, 22.0F * scale, 2.0F * scale);
    }
    else
    {
        GlStateManager.scale(0.6F, 0.6F, 0.6F);
        GlStateManager.translate(0.0F, 16.0F * scale, 0.0F);
    }
    return super.getHeadJointOffset(living, partialTick, eye);
}
项目:BetterThanLlamas    文件:ModelFancy.java   
@Override
public void render(Entity entityIn, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scale)
{
    EntityRabbit rabbit = (EntityRabbit)entityIn;
    renderHeadParts(true, true, true, false, scale);
    renderBody(rabbit, false, ageInTicks, scale);
    renderHeadParts(true, true, true, true, scale);
    renderBody(rabbit, true, ageInTicks, scale);
}
项目:BetterThanLlamas    文件:ModelFancy.java   
public void renderBody(EntityRabbit rabbit, boolean color, float ageInTicks, float f5)
{
    if(!color)
    {
        float f = ageInTicks - (float)rabbit.ticksExisted;
        float jumpRotation = MathHelper.sin(rabbit.setJumpCompletion(f) * (float)Math.PI);

        frontLegRightTux.rotateAngleX = (jumpRotation * -40.0F - 11.0F) * 0.017453292F;
        frontLegLeftTux.rotateAngleX = (jumpRotation * -40.0F - 11.0F) * 0.017453292F;
        bodyTuxTail1.rotateAngleX = (-1.108972F + jumpRotation * 0.8F);
        bodyTuxTail2.rotateAngleX = (-1.108972F + jumpRotation * 0.8F);

        frontLegRightTux.renderWithRotation(f5);
        frontLegLeftTux.renderWithRotation(f5);
        bodyTuxTail1.renderWithRotation(f5);
        bodyTuxTail2.renderWithRotation(f5);
        bodyTux.renderWithRotation(f5);
    }
    else
    {
        bowtie5.renderWithRotation(f5);
        bowtie3.renderWithRotation(f5);
        bowtie4.renderWithRotation(f5);
        bowtie1.renderWithRotation(f5);
        bowtie2.renderWithRotation(f5);

        bodyTux.renderWithRotation(f5);
    }
}
项目:DecompiledMinecraft    文件:BiomeGenBase.java   
protected BiomeGenBase(int id)
{
    this.minHeight = height_Default.rootHeight;
    this.maxHeight = height_Default.variation;
    this.temperature = 0.5F;
    this.rainfall = 0.5F;
    this.waterColorMultiplier = 16777215;
    this.spawnableMonsterList = Lists.<BiomeGenBase.SpawnListEntry>newArrayList();
    this.spawnableCreatureList = Lists.<BiomeGenBase.SpawnListEntry>newArrayList();
    this.spawnableWaterCreatureList = Lists.<BiomeGenBase.SpawnListEntry>newArrayList();
    this.spawnableCaveCreatureList = Lists.<BiomeGenBase.SpawnListEntry>newArrayList();
    this.enableRain = true;
    this.worldGeneratorTrees = new WorldGenTrees(false);
    this.worldGeneratorBigTree = new WorldGenBigTree(false);
    this.worldGeneratorSwamp = new WorldGenSwamp();
    this.biomeID = id;
    biomeList[id] = this;
    this.theBiomeDecorator = this.createBiomeDecorator();
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntitySheep.class, 12, 4, 4));
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityRabbit.class, 10, 3, 3));
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityPig.class, 10, 4, 4));
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityChicken.class, 10, 4, 4));
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityCow.class, 8, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySpider.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityZombie.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySkeleton.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityCreeper.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySlime.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityEnderman.class, 10, 1, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityWitch.class, 5, 1, 1));
    this.spawnableWaterCreatureList.add(new BiomeGenBase.SpawnListEntry(EntitySquid.class, 10, 4, 4));
    this.spawnableCaveCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityBat.class, 10, 8, 8));
}
项目:DecompiledMinecraft    文件:BiomeGenBase.java   
protected BiomeGenBase(int id)
{
    this.minHeight = height_Default.rootHeight;
    this.maxHeight = height_Default.variation;
    this.temperature = 0.5F;
    this.rainfall = 0.5F;
    this.waterColorMultiplier = 16777215;
    this.spawnableMonsterList = Lists.<BiomeGenBase.SpawnListEntry>newArrayList();
    this.spawnableCreatureList = Lists.<BiomeGenBase.SpawnListEntry>newArrayList();
    this.spawnableWaterCreatureList = Lists.<BiomeGenBase.SpawnListEntry>newArrayList();
    this.spawnableCaveCreatureList = Lists.<BiomeGenBase.SpawnListEntry>newArrayList();
    this.enableRain = true;
    this.worldGeneratorTrees = new WorldGenTrees(false);
    this.worldGeneratorBigTree = new WorldGenBigTree(false);
    this.worldGeneratorSwamp = new WorldGenSwamp();
    this.biomeID = id;
    biomeList[id] = this;
    this.theBiomeDecorator = this.createBiomeDecorator();
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntitySheep.class, 12, 4, 4));
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityRabbit.class, 10, 3, 3));
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityPig.class, 10, 4, 4));
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityChicken.class, 10, 4, 4));
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityCow.class, 8, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySpider.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityZombie.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySkeleton.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityCreeper.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySlime.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityEnderman.class, 10, 1, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityWitch.class, 5, 1, 1));
    this.spawnableWaterCreatureList.add(new BiomeGenBase.SpawnListEntry(EntitySquid.class, 10, 4, 4));
    this.spawnableCaveCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityBat.class, 10, 8, 8));
}
项目:DecompiledMinecraft    文件:RenderRabbit.java   
/**
 * Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
 */
protected ResourceLocation getEntityTexture(EntityRabbit entity)
{
    String s = EnumChatFormatting.getTextWithoutFormattingCodes(entity.getName());

    if (s != null && s.equals("Toast"))
    {
        return TOAST;
    }
    else
    {
        switch (entity.getRabbitType())
        {
            case 0:
            default:
                return BROWN;

            case 1:
                return WHITE;

            case 2:
                return BLACK;

            case 3:
                return WHITE_SPLOTCHED;

            case 4:
                return GOLD;

            case 5:
                return SALT;

            case 99:
                return CAERBANNOG;
        }
    }
}
项目:DecompiledMinecraft    文件:ModelRabbit.java   
/**
 * Sets the model's various rotation angles. For bipeds, par1 and par2 are used for animating the movement of arms
 * and legs, where par1 represents the time(so that arms and legs swing back and forth) and par2 represents how
 * "far" arms and legs can swing at most.
 */
public void setRotationAngles(float p_78087_1_, float p_78087_2_, float p_78087_3_, float p_78087_4_, float p_78087_5_, float p_78087_6_, Entity entityIn)
{
    float f = p_78087_3_ - (float)entityIn.ticksExisted;
    EntityRabbit entityrabbit = (EntityRabbit)entityIn;
    this.rabbitNose.rotateAngleX = this.rabbitHead.rotateAngleX = this.rabbitRightEar.rotateAngleX = this.rabbitLeftEar.rotateAngleX = p_78087_5_ * 0.017453292F;
    this.rabbitNose.rotateAngleY = this.rabbitHead.rotateAngleY = p_78087_4_ * 0.017453292F;
    this.rabbitRightEar.rotateAngleY = this.rabbitNose.rotateAngleY - 0.2617994F;
    this.rabbitLeftEar.rotateAngleY = this.rabbitNose.rotateAngleY + 0.2617994F;
    this.field_178701_m = MathHelper.sin(entityrabbit.func_175521_o(f) * (float)Math.PI);
    this.rabbitLeftThigh.rotateAngleX = this.rabbitRightThigh.rotateAngleX = (this.field_178701_m * 50.0F - 21.0F) * 0.017453292F;
    this.rabbitLeftFoot.rotateAngleX = this.rabbitRightFoot.rotateAngleX = this.field_178701_m * 50.0F * 0.017453292F;
    this.rabbitLeftArm.rotateAngleX = this.rabbitRightArm.rotateAngleX = (this.field_178701_m * -40.0F - 11.0F) * 0.017453292F;
}
项目:BaseClient    文件:BiomeGenBase.java   
protected BiomeGenBase(int id)
{
    this.minHeight = height_Default.rootHeight;
    this.maxHeight = height_Default.variation;
    this.temperature = 0.5F;
    this.rainfall = 0.5F;
    this.waterColorMultiplier = 16777215;
    this.spawnableMonsterList = Lists.<BiomeGenBase.SpawnListEntry>newArrayList();
    this.spawnableCreatureList = Lists.<BiomeGenBase.SpawnListEntry>newArrayList();
    this.spawnableWaterCreatureList = Lists.<BiomeGenBase.SpawnListEntry>newArrayList();
    this.spawnableCaveCreatureList = Lists.<BiomeGenBase.SpawnListEntry>newArrayList();
    this.enableRain = true;
    this.worldGeneratorTrees = new WorldGenTrees(false);
    this.worldGeneratorBigTree = new WorldGenBigTree(false);
    this.worldGeneratorSwamp = new WorldGenSwamp();
    this.biomeID = id;
    biomeList[id] = this;
    this.theBiomeDecorator = this.createBiomeDecorator();
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntitySheep.class, 12, 4, 4));
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityRabbit.class, 10, 3, 3));
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityPig.class, 10, 4, 4));
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityChicken.class, 10, 4, 4));
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityCow.class, 8, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySpider.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityZombie.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySkeleton.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityCreeper.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySlime.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityEnderman.class, 10, 1, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityWitch.class, 5, 1, 1));
    this.spawnableWaterCreatureList.add(new BiomeGenBase.SpawnListEntry(EntitySquid.class, 10, 4, 4));
    this.spawnableCaveCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityBat.class, 10, 8, 8));
}
项目:BaseClient    文件:RenderRabbit.java   
/**
 * Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
 */
protected ResourceLocation getEntityTexture(EntityRabbit entity)
{
    String s = EnumChatFormatting.getTextWithoutFormattingCodes(entity.getName());

    if (s != null && s.equals("Toast"))
    {
        return TOAST;
    }
    else
    {
        switch (entity.getRabbitType())
        {
            case 0:
            default:
                return BROWN;

            case 1:
                return WHITE;

            case 2:
                return BLACK;

            case 3:
                return WHITE_SPLOTCHED;

            case 4:
                return GOLD;

            case 5:
                return SALT;

            case 99:
                return CAERBANNOG;
        }
    }
}
项目:BaseClient    文件:ModelRabbit.java   
/**
 * Sets the model's various rotation angles. For bipeds, par1 and par2 are used for animating the movement of arms
 * and legs, where par1 represents the time(so that arms and legs swing back and forth) and par2 represents how
 * "far" arms and legs can swing at most.
 */
public void setRotationAngles(float p_78087_1_, float p_78087_2_, float p_78087_3_, float p_78087_4_, float p_78087_5_, float p_78087_6_, Entity entityIn)
{
    float f = p_78087_3_ - (float)entityIn.ticksExisted;
    EntityRabbit entityrabbit = (EntityRabbit)entityIn;
    this.rabbitNose.rotateAngleX = this.rabbitHead.rotateAngleX = this.rabbitRightEar.rotateAngleX = this.rabbitLeftEar.rotateAngleX = p_78087_5_ * 0.017453292F;
    this.rabbitNose.rotateAngleY = this.rabbitHead.rotateAngleY = p_78087_4_ * 0.017453292F;
    this.rabbitRightEar.rotateAngleY = this.rabbitNose.rotateAngleY - 0.2617994F;
    this.rabbitLeftEar.rotateAngleY = this.rabbitNose.rotateAngleY + 0.2617994F;
    this.field_178701_m = MathHelper.sin(entityrabbit.func_175521_o(f) * (float)Math.PI);
    this.rabbitLeftThigh.rotateAngleX = this.rabbitRightThigh.rotateAngleX = (this.field_178701_m * 50.0F - 21.0F) * 0.017453292F;
    this.rabbitLeftFoot.rotateAngleX = this.rabbitRightFoot.rotateAngleX = this.field_178701_m * 50.0F * 0.017453292F;
    this.rabbitLeftArm.rotateAngleX = this.rabbitRightArm.rotateAngleX = (this.field_178701_m * -40.0F - 11.0F) * 0.017453292F;
}
项目:BaseClient    文件:BiomeGenBase.java   
protected BiomeGenBase(int id)
{
    this.minHeight = height_Default.rootHeight;
    this.maxHeight = height_Default.variation;
    this.temperature = 0.5F;
    this.rainfall = 0.5F;
    this.waterColorMultiplier = 16777215;
    this.spawnableMonsterList = Lists.<BiomeGenBase.SpawnListEntry>newArrayList();
    this.spawnableCreatureList = Lists.<BiomeGenBase.SpawnListEntry>newArrayList();
    this.spawnableWaterCreatureList = Lists.<BiomeGenBase.SpawnListEntry>newArrayList();
    this.spawnableCaveCreatureList = Lists.<BiomeGenBase.SpawnListEntry>newArrayList();
    this.enableRain = true;
    this.worldGeneratorTrees = new WorldGenTrees(false);
    this.worldGeneratorBigTree = new WorldGenBigTree(false);
    this.worldGeneratorSwamp = new WorldGenSwamp();
    this.biomeID = id;
    biomeList[id] = this;
    this.theBiomeDecorator = this.createBiomeDecorator();
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntitySheep.class, 12, 4, 4));
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityRabbit.class, 10, 3, 3));
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityPig.class, 10, 4, 4));
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityChicken.class, 10, 4, 4));
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityCow.class, 8, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySpider.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityZombie.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySkeleton.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityCreeper.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySlime.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityEnderman.class, 10, 1, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityWitch.class, 5, 1, 1));
    this.spawnableWaterCreatureList.add(new BiomeGenBase.SpawnListEntry(EntitySquid.class, 10, 4, 4));
    this.spawnableCaveCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityBat.class, 10, 8, 8));
}
项目:BaseClient    文件:RenderRabbit.java   
/**
 * Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
 */
protected ResourceLocation getEntityTexture(EntityRabbit entity)
{
    String s = EnumChatFormatting.getTextWithoutFormattingCodes(entity.getName());

    if (s != null && s.equals("Toast"))
    {
        return TOAST;
    }
    else
    {
        switch (entity.getRabbitType())
        {
            case 0:
            default:
                return BROWN;

            case 1:
                return WHITE;

            case 2:
                return BLACK;

            case 3:
                return WHITE_SPLOTCHED;

            case 4:
                return GOLD;

            case 5:
                return SALT;

            case 99:
                return CAERBANNOG;
        }
    }
}
项目:BaseClient    文件:ModelRabbit.java   
/**
 * Sets the model's various rotation angles. For bipeds, par1 and par2 are used for animating the movement of arms
 * and legs, where par1 represents the time(so that arms and legs swing back and forth) and par2 represents how
 * "far" arms and legs can swing at most.
 */
public void setRotationAngles(float p_78087_1_, float p_78087_2_, float p_78087_3_, float p_78087_4_, float p_78087_5_, float p_78087_6_, Entity entityIn)
{
    float f = p_78087_3_ - (float)entityIn.ticksExisted;
    EntityRabbit entityrabbit = (EntityRabbit)entityIn;
    this.rabbitNose.rotateAngleX = this.rabbitHead.rotateAngleX = this.rabbitRightEar.rotateAngleX = this.rabbitLeftEar.rotateAngleX = p_78087_5_ * 0.017453292F;
    this.rabbitNose.rotateAngleY = this.rabbitHead.rotateAngleY = p_78087_4_ * 0.017453292F;
    this.rabbitRightEar.rotateAngleY = this.rabbitNose.rotateAngleY - 0.2617994F;
    this.rabbitLeftEar.rotateAngleY = this.rabbitNose.rotateAngleY + 0.2617994F;
    this.field_178701_m = MathHelper.sin(entityrabbit.func_175521_o(f) * (float)Math.PI);
    this.rabbitLeftThigh.rotateAngleX = this.rabbitRightThigh.rotateAngleX = (this.field_178701_m * 50.0F - 21.0F) * 0.017453292F;
    this.rabbitLeftFoot.rotateAngleX = this.rabbitRightFoot.rotateAngleX = this.field_178701_m * 50.0F * 0.017453292F;
    this.rabbitLeftArm.rotateAngleX = this.rabbitRightArm.rotateAngleX = (this.field_178701_m * -40.0F - 11.0F) * 0.017453292F;
}
项目:Backmemed    文件:BiomeSnow.java   
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));
}
项目:Backmemed    文件:BiomeDesert.java   
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));
}
项目:Backmemed    文件:RenderRabbit.java   
/**
 * Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
 */
protected ResourceLocation getEntityTexture(EntityRabbit entity)
{
    String s = TextFormatting.getTextWithoutFormattingCodes(entity.getName());

    if (s != null && "Toast".equals(s))
    {
        return TOAST;
    }
    else
    {
        switch (entity.getRabbitType())
        {
            case 0:
            default:
                return BROWN;

            case 1:
                return WHITE;

            case 2:
                return BLACK;

            case 3:
                return WHITE_SPLOTCHED;

            case 4:
                return GOLD;

            case 5:
                return SALT;

            case 99:
                return CAERBANNOG;
        }
    }
}
项目:CustomWorldGen    文件:BiomeSnow.java   
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));
}
项目:CustomWorldGen    文件:BiomeDesert.java   
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));
}
项目:CustomWorldGen    文件:RenderRabbit.java   
/**
 * Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
 */
protected ResourceLocation getEntityTexture(EntityRabbit entity)
{
    String s = TextFormatting.getTextWithoutFormattingCodes(entity.getName());

    if (s != null && "Toast".equals(s))
    {
        return TOAST;
    }
    else
    {
        switch (entity.getRabbitType())
        {
            case 0:
            default:
                return BROWN;
            case 1:
                return WHITE;
            case 2:
                return BLACK;
            case 3:
                return WHITE_SPLOTCHED;
            case 4:
                return GOLD;
            case 5:
                return SALT;
            case 99:
                return CAERBANNOG;
        }
    }
}
项目:Better-Than-Bunnies    文件:ModelFancyBunny.java   
@Override
public void render(Entity entityIn, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scale)
{
    EntityRabbit rabbit = (EntityRabbit)entityIn;
    renderHeadParts(true, true, true, false, scale);
    renderBody(rabbit, false, ageInTicks, scale);
    renderHeadParts(true, true, true, true, scale);
    renderBody(rabbit, true, ageInTicks, scale);
}
项目:Better-Than-Bunnies    文件:ModelFancyBunny.java   
public void renderBody(EntityRabbit rabbit, boolean color, float ageInTicks, float f5)
{
    if(!color)
    {
        float f = ageInTicks - (float)rabbit.ticksExisted;
        float jumpRotation = MathHelper.sin(rabbit.setJumpCompletion(f) * (float)Math.PI);

        frontLegRightTux.rotateAngleX = (jumpRotation * -40.0F - 11.0F) * 0.017453292F;
        frontLegLeftTux.rotateAngleX = (jumpRotation * -40.0F - 11.0F) * 0.017453292F;
        bodyTuxTail1.rotateAngleX = (-1.108972F + jumpRotation * 0.8F);
        bodyTuxTail2.rotateAngleX = (-1.108972F + jumpRotation * 0.8F);

        frontLegRightTux.renderWithRotation(f5);
        frontLegLeftTux.renderWithRotation(f5);
        bodyTuxTail1.renderWithRotation(f5);
        bodyTuxTail2.renderWithRotation(f5);
        bodyTux.renderWithRotation(f5);
    }
    else
    {
        bowtie5.renderWithRotation(f5);
        bowtie3.renderWithRotation(f5);
        bowtie4.renderWithRotation(f5);
        bowtie1.renderWithRotation(f5);
        bowtie2.renderWithRotation(f5);

        bodyTux.renderWithRotation(f5);
    }
}
项目:CivRadar    文件:Config.java   
public Config() {
    mobs = new ArrayList<Entity>(Arrays.asList(new Entity[]{
            new Entity(EntityBat.class), 
            new Entity(EntityChicken.class),
            new Entity(EntityCow.class),
            new Entity(EntityHorse.class),
            new Entity(EntityMooshroom.class),
            new Entity(EntityOcelot.class),
            new Entity(EntityPig.class),
            new Entity(EntityRabbit.class),
            new Entity(EntitySheep.class),
            new Entity(EntitySquid.class),
            new Entity(EntityVillager.class),
            new Entity(EntityWolf.class),
            new Entity(EntityBlaze.class),
            new Entity(EntityCaveSpider.class),
            new Entity(EntityCreeper.class),
            new Entity(EntityEnderman.class),
            new Entity(EntityGhast.class),
            new Entity(EntityGolem.class),
            new Entity(EntityGuardian.class),
            new Entity(EntityIronGolem.class),
            new Entity(EntityMagmaCube.class),
            new Entity(EntityPigZombie.class),
            new Entity(EntitySilverfish.class),
            new Entity(EntitySkeleton.class),
            new Entity(EntitySlime.class),
            new Entity(EntitySnowman.class),
            new Entity(EntitySpider.class),
            new Entity(EntityWitch.class),
            new Entity(EntityZombie.class),
            new Entity(EntityItem.class),
            new Entity(EntityMinecart.class),
            new Entity(EntityPlayer.class)
            }));
}
项目:Progression    文件:EntityHelper.java   
private static List<EntityLivingBase> init(World world) {
    List<EntityLivingBase> list = new ArrayList<EntityLivingBase>();
    for (String name : EntityList.NAME_TO_CLASS.keySet()) {
        if (name.equals("Mob") || name.equals("Monster")) continue;
        Entity entity = EntityList.createEntityByName(name, world);
        if (entity instanceof EntityLivingBase) {
            list.add((EntityLivingBase) entity);
            //Special case addition of entities
            //Wither Skeleton, Add to list
            if (entity.getClass() == EntitySkeleton.class) {
                entity = EntityList.createEntityByName(name, world);
                ((EntitySkeleton) entity).setSkeletonType(1);
                list.add((EntityLivingBase) entity);
            }

            //Rabbit Variants
            if (entity instanceof EntityRabbit) {
                for (int i = 0; i < 6; i++) {
                    entity = EntityList.createEntityByName(name, world);
                    ((EntityRabbit)entity).setRabbitType(i);
                    list.add((EntityLivingBase) entity);
                }
            }
        }
    }

    return list;
}
项目:ZeroQuest    文件:EntityKortor.java   
public EntityKortor(World worldIn) {
    super(worldIn);
    this.setSize(0.6F, 1.5F);
    this.tasks.addTask(1, new EntityAISwimming(this));
    this.tasks.addTask(2, this.aiSit);
    this.tasks.addTask(3, new EntityAILeapAtTarget(this, 0.4F));
    this.tasks.addTask(4, new EntityAIAttackOnCollide(this, 1.0D, true));
    this.tasks.addTask(5, new EntityAIFollowOwner(this, 1.0D, 10.0F, 2.0F));
    this.tasks.addTask(6, new EntityAIMate(this, 1.0D));
    this.tasks.addTask(7, new EntityAIWander(this, 1.0D));
    this.tasks.addTask(9, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
    this.tasks.addTask(9, new EntityAILookIdle(this));
    this.targetTasks.addTask(1, new EntityAIOwnerHurtByTarget(this));
    this.targetTasks.addTask(2, new EntityAIOwnerHurtTarget(this));
    this.targetTasks.addTask(3, new EntityAIHurtByTarget(this, true, new Class[0]));
    this.targetTasks.addTask(4, new EntityAITargetNonTamed(this, EntityAnimal.class, false, new Predicate() {
        private static final String __OBFID = "CL_00002229";

        public boolean func_180094_a(Entity p_180094_1_) {
            return p_180094_1_ instanceof EntityPig || p_180094_1_ instanceof EntityRabbit;
        }

        @Override
        public boolean apply(Object p_apply_1_) {
            return this.func_180094_a((Entity) p_apply_1_);
        }
    }));
    this.setTamed(false);
    this.inventory = new InventoryPack(this);
}
项目:ZeroQuest    文件:EntityForisZertum.java   
public EntityForisZertum(World worldIn) {
    super(worldIn);
    this.targetTasks.addTask(4, new EntityAITargetNonTamed(this, EntityAnimal.class, false, new Predicate() {
        public boolean isApplicable(Entity entityIn) {
            return entityIn instanceof EntitySheep || entityIn instanceof EntityRabbit;
        }

        @Override
        public boolean apply(Object p_apply_1_) {
            return this.isApplicable((Entity) p_apply_1_);
        }
    }));
}
项目:ZeroQuest    文件:EntityDestroZertum.java   
public EntityDestroZertum(World worldIn) {
    super(worldIn);
    this.targetTasks.addTask(4, new EntityAITargetNonTamed(this, EntityAnimal.class, false, new Predicate() {
        public boolean isApplicable(Entity entityIn) {
            return entityIn instanceof EntitySheep || entityIn instanceof EntityRabbit;
        }

        @Override
        public boolean apply(Object p_apply_1_) {
            return this.isApplicable((Entity) p_apply_1_);
        }
    }));
}