Java 类net.minecraft.entity.monster.EntityBlaze 实例源码
项目:Bewitchment
文件:BlockSaltBarrier.java
@SuppressWarnings("deprecation")
@Override
public void addCollisionBoxToList(IBlockState state, World worldIn, BlockPos pos, AxisAlignedBB entityBox, List<AxisAlignedBB> collidingBoxes, @Nullable Entity entityIn, boolean p_185477_7_) {
if (entityIn instanceof EntityLivingBase && (((EntityLivingBase) entityIn).getCreatureAttribute() == EnumCreatureAttribute.UNDEAD)) {
collidingBoxes.add(new AxisAlignedBB(pos).expand(0, 255, 0));
}
if (entityIn instanceof EntityLivingBase && (((EntityLivingBase) entityIn).getCreatureAttribute() == EnumCreatureAttribute.ARTHROPOD)) {
entityIn.attackEntityFrom(DamageSource.MAGIC, 1);
}
if (entityIn instanceof EntityBlaze) {
collidingBoxes.add(new AxisAlignedBB(pos).expand(0, 255, 0));
}
if (entityIn instanceof EntityEnderman) {
collidingBoxes.add(new AxisAlignedBB(pos).expand(0, 255, 0));
}
if (entityIn instanceof EntityGhast) {
collidingBoxes.add(new AxisAlignedBB(pos).expand(0, 255, 0));
}
if (entityIn instanceof EntityVex) {
collidingBoxes.add(new AxisAlignedBB(pos).expand(0, 255, 0));
}
}
项目:DecompiledMinecraft
文件:EntitySnowball.java
/**
* Called when this EntityThrowable hits a block or entity.
*/
protected void onImpact(MovingObjectPosition p_70184_1_)
{
if (p_70184_1_.entityHit != null)
{
int i = 0;
if (p_70184_1_.entityHit instanceof EntityBlaze)
{
i = 3;
}
p_70184_1_.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), (float)i);
}
for (int j = 0; j < 8; ++j)
{
this.worldObj.spawnParticle(EnumParticleTypes.SNOWBALL, this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D, new int[0]);
}
if (!this.worldObj.isRemote)
{
this.setDead();
}
}
项目:DecompiledMinecraft
文件:EntitySnowball.java
/**
* Called when this EntityThrowable hits a block or entity.
*/
protected void onImpact(MovingObjectPosition p_70184_1_)
{
if (p_70184_1_.entityHit != null)
{
int i = 0;
if (p_70184_1_.entityHit instanceof EntityBlaze)
{
i = 3;
}
p_70184_1_.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), (float)i);
}
for (int j = 0; j < 8; ++j)
{
this.worldObj.spawnParticle(EnumParticleTypes.SNOWBALL, this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D, new int[0]);
}
if (!this.worldObj.isRemote)
{
this.setDead();
}
}
项目:BaseClient
文件:EntitySnowball.java
/**
* Called when this EntityThrowable hits a block or entity.
*/
protected void onImpact(MovingObjectPosition p_70184_1_)
{
if (p_70184_1_.entityHit != null)
{
int i = 0;
if (p_70184_1_.entityHit instanceof EntityBlaze)
{
i = 3;
}
p_70184_1_.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), (float)i);
}
for (int j = 0; j < 8; ++j)
{
this.worldObj.spawnParticle(EnumParticleTypes.SNOWBALL, this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D, new int[0]);
}
if (!this.worldObj.isRemote)
{
this.setDead();
}
}
项目:BaseClient
文件:EntitySnowball.java
/**
* Called when this EntityThrowable hits a block or entity.
*/
protected void onImpact(MovingObjectPosition p_70184_1_)
{
if (p_70184_1_.entityHit != null)
{
int i = 0;
if (p_70184_1_.entityHit instanceof EntityBlaze)
{
i = 3;
}
p_70184_1_.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), (float)i);
}
for (int j = 0; j < 8; ++j)
{
this.worldObj.spawnParticle(EnumParticleTypes.SNOWBALL, this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D, new int[0]);
}
if (!this.worldObj.isRemote)
{
this.setDead();
}
}
项目:Backmemed
文件:EntitySnowball.java
/**
* Called when this EntityThrowable hits a block or entity.
*/
protected void onImpact(RayTraceResult result)
{
if (result.entityHit != null)
{
int i = 0;
if (result.entityHit instanceof EntityBlaze)
{
i = 3;
}
result.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), (float)i);
}
if (!this.world.isRemote)
{
this.world.setEntityState(this, (byte)3);
this.setDead();
}
}
项目:CustomWorldGen
文件:EntitySnowball.java
/**
* Called when this EntityThrowable hits a block or entity.
*/
protected void onImpact(RayTraceResult result)
{
if (result.entityHit != null)
{
int i = 0;
if (result.entityHit instanceof EntityBlaze)
{
i = 3;
}
result.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), (float)i);
}
for (int j = 0; j < 8; ++j)
{
this.worldObj.spawnParticle(EnumParticleTypes.SNOWBALL, this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D, new int[0]);
}
if (!this.worldObj.isRemote)
{
this.setDead();
}
}
项目:Resilience-Client-Source
文件:EntitySnowball.java
/**
* Called when this EntityThrowable hits a block or entity.
*/
protected void onImpact(MovingObjectPosition par1MovingObjectPosition)
{
if (par1MovingObjectPosition.entityHit != null)
{
byte var2 = 0;
if (par1MovingObjectPosition.entityHit instanceof EntityBlaze)
{
var2 = 3;
}
par1MovingObjectPosition.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), (float)var2);
}
for (int var3 = 0; var3 < 8; ++var3)
{
this.worldObj.spawnParticle("snowballpoof", this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D);
}
if (!this.worldObj.isClient)
{
this.setDead();
}
}
项目:ZeroQuest
文件:EntityGrenade.java
/**
* Called when this EntityThrowable hits a block or entity.
*/
@Override
protected void onImpact(MovingObjectPosition p_70184_1_) {
if (p_70184_1_.entityHit != null) {
byte b0 = 0;
if (p_70184_1_.entityHit instanceof EntityBlaze) {
b0 = 3;
}
p_70184_1_.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), b0);
}
for (int i = 0; i < 8; ++i) {
this.worldObj.spawnParticle(EnumParticleTypes.SMOKE_NORMAL, this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D);
}
if (isServer()) {
this.setDead();
if (isServer()) {
this.worldObj.createExplosion((Entity) null, this.posX, this.posY, this.posZ, 2.5F, true);
}
}
}
项目:FantasyCraft-Mod
文件:EntityFCraftIceBall.java
@Override
protected void onImpact(MovingObjectPosition par1MovingObjectPosition)
{
if (par1MovingObjectPosition.entityHit != null)
{
byte b0 = 0;
if (par1MovingObjectPosition.entityHit instanceof EntityBlaze)
{
b0 = 3;
}
par1MovingObjectPosition.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), (float)b0);
}
for (int i = 0; i < 8; ++i)
{
this.worldObj.spawnParticle("snowballpoof", this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D);
}
if (!this.worldObj.isRemote)
{
this.setDead();
}
}
项目:ExpandedRailsMod
文件:EntitySnowball.java
/**
* Called when this EntityThrowable hits a block or entity.
*/
protected void onImpact(RayTraceResult result)
{
if (result.entityHit != null)
{
int i = 0;
if (result.entityHit instanceof EntityBlaze)
{
i = 3;
}
result.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), (float)i);
}
for (int j = 0; j < 8; ++j)
{
this.worldObj.spawnParticle(EnumParticleTypes.SNOWBALL, this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D, new int[0]);
}
if (!this.worldObj.isRemote)
{
this.setDead();
}
}
项目:Quantum-Anomalies
文件:DiscoveryListener.java
@SubscribeEvent
public void livingKilled(LivingDeathEvent event) {
Entity killer = event.source.getEntity();
EntityLivingBase target = event.entityLiving;
if (isServer() && killer != null && killer instanceof EntityPlayer) {
EntityPlayer player = (EntityPlayer) killer;
if (target instanceof EntityWither) {
DiscoveryManager.unlockItem(QADiscoveries.Item.STAR.get().getKey(), player, false);
} else if (target instanceof EntityZombie) {
ItemStack equip = ((EntityZombie) target).getEquipmentInSlot(0);
if (equip != null && equip.getItem() instanceof ItemSword)
DiscoveryManager.unlockItem(QADiscoveries.Item.SWORD.get().getKey(), player, false);
} else if (target instanceof EntityBlaze) {
DiscoveryManager.unlockItem(QADiscoveries.Item.TOOLS.get().getKey(), player, false);
}
}
}
项目:Cauldron
文件:EntitySnowball.java
protected void onImpact(MovingObjectPosition p_70184_1_)
{
if (p_70184_1_.entityHit != null)
{
byte b0 = 0;
if (p_70184_1_.entityHit instanceof EntityBlaze)
{
b0 = 3;
}
p_70184_1_.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), (float)b0);
}
for (int i = 0; i < 8; ++i)
{
this.worldObj.spawnParticle("snowballpoof", this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D);
}
if (!this.worldObj.isRemote)
{
this.setDead();
}
}
项目:Cauldron
文件:EntitySnowball.java
protected void onImpact(MovingObjectPosition p_70184_1_)
{
if (p_70184_1_.entityHit != null)
{
byte b0 = 0;
if (p_70184_1_.entityHit instanceof EntityBlaze)
{
b0 = 3;
}
p_70184_1_.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), (float)b0);
}
for (int i = 0; i < 8; ++i)
{
this.worldObj.spawnParticle("snowballpoof", this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D);
}
if (!this.worldObj.isRemote)
{
this.setDead();
}
}
项目:ZeldaSwordSkills
文件:ZSSItemEvents.java
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);
}
项目:RuneCraftery
文件:EntitySnowball.java
protected void func_70184_a(MovingObjectPosition p_70184_1_) {
if(p_70184_1_.field_72308_g != null) {
byte var2 = 0;
if(p_70184_1_.field_72308_g instanceof EntityBlaze) {
var2 = 3;
}
p_70184_1_.field_72308_g.func_70097_a(DamageSource.func_76356_a(this, this.func_85052_h()), (float)var2);
}
for(int var3 = 0; var3 < 8; ++var3) {
this.field_70170_p.func_72869_a("snowballpoof", this.field_70165_t, this.field_70163_u, this.field_70161_v, 0.0D, 0.0D, 0.0D);
}
if(!this.field_70170_p.field_72995_K) {
this.func_70106_y();
}
}
项目:RuneCraftery
文件:EntitySnowball.java
/**
* Called when this EntityThrowable hits a block or entity.
*/
protected void onImpact(MovingObjectPosition par1MovingObjectPosition)
{
if (par1MovingObjectPosition.entityHit != null)
{
byte b0 = 0;
if (par1MovingObjectPosition.entityHit instanceof EntityBlaze)
{
b0 = 3;
}
par1MovingObjectPosition.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), (float)b0);
}
for (int i = 0; i < 8; ++i)
{
this.worldObj.spawnParticle("snowballpoof", this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D);
}
if (!this.worldObj.isRemote)
{
this.setDead();
}
}
项目:Gizmos
文件:ItemFireExtinguisher.java
@Override
public boolean itemInteractionForEntity(ItemStack ext, EntityPlayer player, EntityLivingBase target){
boolean result=false;
if(player.isBurning()){
player.extinguish();
result=true;
}else if(target.isBurning()){
target.extinguish();
result=true;
}else if(target instanceof EntityBlaze){
target.attackEntityFrom(DamageSource.magic, 10);
result=true;
}
if(result){
ext.damageItem(1, target);
for(int i=0; i<10; i++){
target.worldObj.spawnParticle("explode", target.posX, target.posY, target.posZ, 0,0.1,0);
}
}
return result;
}
项目:CountryGamer_PlantsVsZombies
文件:EntDec.java
public static boolean entityUndeadCheck(MovingObjectPosition movObjPos) {
boolean result = false;
if ((movObjPos.entityHit instanceof EntityZombie)) {
result = true;
}
if ((movObjPos.entityHit instanceof EntitySkeleton)) {
result = true;
}
if ((movObjPos.entityHit instanceof EntityPigZombie)) {
result = true;
}
if ((!(movObjPos.entityHit instanceof EntityBlaze))
|| ((!(movObjPos.entityHit instanceof EntityWitherSkull)) || ((!(movObjPos.entityHit instanceof EntityWither)) || ((movObjPos.entityHit instanceof EntityGhast)))))
;
return result;
}
项目:BetterNutritionMod
文件:EntitySnowball.java
/**
* Called when this EntityThrowable hits a block or entity.
*/
protected void onImpact(MovingObjectPosition par1MovingObjectPosition)
{
if (par1MovingObjectPosition.entityHit != null)
{
byte b0 = 0;
if (par1MovingObjectPosition.entityHit instanceof EntityBlaze)
{
b0 = 3;
}
par1MovingObjectPosition.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), (float)b0);
}
for (int i = 0; i < 8; ++i)
{
this.worldObj.spawnParticle("snowballpoof", this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D);
}
if (!this.worldObj.isRemote)
{
this.setDead();
}
}
项目:MeteorsMod
文件:CrashKreknorite.java
public void afterCraterFormed(World world, Random random, int i, int j, int k) {
if (this.crashSize >= MeteorsMod.instance.MinMeteorSizeForPortal) {
createPortal(world, i, j, k, random.nextBoolean());
}
int blazes = random.nextInt(3);
ArrayList arraylist = new ArrayList();
arraylist.addAll(this.explosion.affectedBlockPositions);
for (int j1 = arraylist.size() - 1; (j1 >= 0) &&
(blazes > 0); j1--)
{
ChunkPosition chunkposition1 = (ChunkPosition)arraylist.get(j1);
int l = chunkposition1.chunkPosX;
int j11 = chunkposition1.chunkPosY;
int l1 = chunkposition1.chunkPosZ;
boolean j2 = world.isAirBlock(l, j11, l1);
Block k2 = world.getBlock(l, j11 - 1, l1);
if (j2 && k2.isOpaqueCube() && (random.nextInt(10) > 4)) {
EntityBlaze blaze = new EntityBlaze(world);
blaze.setPositionAndRotation(l, j11, l1, 0.0F, 0.0F);
world.spawnEntityInWorld(blaze);
blazes--;
}
}
}
项目:PneumaticCraft
文件:HackableHandler.java
public static void addDefaultEntries(){
PneumaticRegistry.getInstance().addHackable(Blocks.tnt, HackableTNT.class);
PneumaticRegistry.getInstance().addHackable(Blocks.mob_spawner, HackableMobSpawner.class);
PneumaticRegistry.getInstance().addHackable(Blocks.lever, HackableLever.class);
PneumaticRegistry.getInstance().addHackable(Blocks.stone_button, HackableButton.class);
PneumaticRegistry.getInstance().addHackable(Blocks.wooden_button, HackableButton.class);
PneumaticRegistry.getInstance().addHackable(Blocks.wooden_door, HackableDoor.class);
PneumaticRegistry.getInstance().addHackable(Blocks.tripwire_hook, HackableTripwire.class);
PneumaticRegistry.getInstance().addHackable(Blocks.dispenser, HackableDispenser.class);
PneumaticRegistry.getInstance().addHackable(Blocks.dropper, HackableDispenser.class);
PneumaticRegistry.getInstance().addHackable(Blockss.securityStation, HackableSecurityStation.class);
PneumaticRegistry.getInstance().addHackable(Blocks.monster_egg, HackableTripwire.class);
PneumaticRegistry.getInstance().addHackable(Blocks.noteblock, HackableNoteblock.class);
PneumaticRegistry.getInstance().addHackable(Blocks.jukebox, HackableJukebox.class);
PneumaticRegistry.getInstance().addHackable(EntityCreeper.class, HackableCreeper.class);
PneumaticRegistry.getInstance().addHackable(EntityTameable.class, HackableTameable.class);
PneumaticRegistry.getInstance().addHackable(EntityCow.class, HackableCow.class);
PneumaticRegistry.getInstance().addHackable(EntityCaveSpider.class, HackableCaveSpider.class);
PneumaticRegistry.getInstance().addHackable(EntityBlaze.class, HackableBlaze.class);
PneumaticRegistry.getInstance().addHackable(EntityGhast.class, HackableGhast.class);
PneumaticRegistry.getInstance().addHackable(EntityWitch.class, HackableWitch.class);
PneumaticRegistry.getInstance().addHackable(EntityLiving.class, HackableLivingDisarm.class);
PneumaticRegistry.getInstance().addHackable(EntityEnderman.class, HackableEnderman.class);
PneumaticRegistry.getInstance().addHackable(EntityBat.class, HackableBat.class);
}
项目:Modjam-3-Winter-Warfare-Mod
文件:EntityHardSnowball.java
/**
* Called when this EntityThrowable hits a block or entity.
*/
protected void onImpact(MovingObjectPosition par1MovingObjectPosition)
{
if (par1MovingObjectPosition.entityHit != null)
{
byte b0 = 1;
if (par1MovingObjectPosition.entityHit instanceof EntityBlaze)
{
b0 = 3;
}
par1MovingObjectPosition.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), (float)b0);
}
for (int i = 0; i < 8; ++i)
{
this.worldObj.spawnParticle("snowballpoof", this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D);
}
if (!this.worldObj.isRemote)
{
this.setDead();
}
}
项目:Modjam-3-Winter-Warfare-Mod
文件:EntityRockySnowBall.java
/**
* Called when this EntityThrowable hits a block or entity.
*/
protected void onImpact(MovingObjectPosition par1MovingObjectPosition)
{
if (par1MovingObjectPosition.entityHit != null)
{
byte b0 = 4;
if (par1MovingObjectPosition.entityHit instanceof EntityBlaze)
{
b0 = 5;
}
par1MovingObjectPosition.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), (float)b0);
}
for (int i = 0; i < 8; ++i)
{
this.worldObj.spawnParticle("snowballpoof", this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D);
}
if (!this.worldObj.isRemote)
{
this.setDead();
}
}
项目:Modjam-3-Winter-Warfare-Mod
文件:EntityIceball.java
/**
* Called when this EntityThrowable hits a block or entity.
*/
protected void onImpact(MovingObjectPosition par1MovingObjectPosition)
{
if (par1MovingObjectPosition.entityHit != null)
{
byte b0 = 2;
if (par1MovingObjectPosition.entityHit instanceof EntityBlaze)
{
b0 = 4;
}
par1MovingObjectPosition.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), (float)b0);
}
for (int i = 0; i < 8; ++i)
{
this.worldObj.spawnParticle("snowballpoof", this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D);
}
if (!this.worldObj.isRemote)
{
this.setDead();
}
}
项目:Soul-Forest
文件:EntityFrostShard.java
/**
* Called when this EntityThrowable hits a block or entity.
*/
@Override
protected void onImpact(MovingObjectPosition p_70184_1_){
if (p_70184_1_.entityHit != null){
byte b0 = (byte) this.getDamage();
if (p_70184_1_.entityHit instanceof EntityBlaze){
b0 = 3;
}
p_70184_1_.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), (float)b0);
}
for (int i = 0; i < 8; ++i){
this.worldObj.spawnParticle("snowballpoof", this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D);
}
if (!this.worldObj.isRemote){
this.setDead();
}
}
项目:pnc-repressurized
文件:Reflections.java
public static void init() {
msbl_isActivated = ReflectionHelper.findMethod(MobSpawnerBaseLogic.class, "isActivated", "func_98279_f");
msbl_getEntityId = ReflectionHelper.findMethod(MobSpawnerBaseLogic.class, "getEntityId", "func_190895_g");
// access to non-public entity AI's for hacking purposes
blaze_aiFireballAttack = findEnclosedClass(EntityBlaze.class, "AIFireballAttack", "a");
ghast_aiFireballAttack = findEnclosedClass(EntityGhast.class, "AIFireballAttack", "c");
}
项目:DecompiledMinecraft
文件:MapGenNetherBridge.java
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));
}
项目:DecompiledMinecraft
文件:MapGenNetherBridge.java
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));
}
项目:BaseClient
文件:MapGenNetherBridge.java
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));
}
项目:BaseClient
文件:MapGenNetherBridge.java
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));
}
项目:minecraft-quiverbow
文件:SnowShot.java
@Override
public void onImpact(MovingObjectPosition target) // Server-side
{
if (target.entityHit != null)
{
target.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.shootingEntity), (float) this.damage);
target.entityHit.hurtResistantTime = 0;
if (target.entityHit instanceof EntityLivingBase)
{
EntityLivingBase entitylivingbase = (EntityLivingBase) target.entityHit;
Helper.applyPotionEffect(entitylivingbase, pot1);
}
// Triple DMG vs Blazes, so applying twice more
if (target.entityHit instanceof EntityBlaze)
{
target.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.shootingEntity), (float) (this.damage *2));
target.entityHit.hurtResistantTime = 0;
}
}
else
{
// Glass breaking
Helper.tryBlockBreak(this.worldObj, this, target, 1);
}
// SFX
NetHelper.sendParticleMessageToAllPlayers(this.worldObj, this.getEntityId(), (byte) 12, (byte) 2);
this.worldObj.playSoundAtEntity(this, "random.pop", 1.0F, 0.5F);
this.setDead(); // We've hit something, so begone with the projectile
}
项目:Backmemed
文件:MapGenNetherBridge.java
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));
}
项目:IceMod
文件:EntityHunkOIce.java
/**
* Called when this EntityThrowable hits a block or entity.
*/
protected void onImpact(MovingObjectPosition par1MovingObjectPosition)
{
if (par1MovingObjectPosition.entityHit != null)
{
byte b0 = 0;
if (par1MovingObjectPosition.entityHit instanceof EntityBlaze)
{
b0 = 3;
}
par1MovingObjectPosition.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), (float)b0);
}
for (int i = 0; i < 8; ++i)
{
this.worldObj.spawnParticle("snowballpoof", this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D);
}
if (!this.worldObj.isRemote)
{
this.explode();
this.setDead();
}
}
项目:CustomWorldGen
文件:MapGenNetherBridge.java
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));
}
项目:Possessed
文件:PossessHandler.java
public static void onPreInit() {
PossessHandler.registerHandler(new BlazeHandler());
PossessHandler.registerHandler(new ChickenHandler());
PossessHandler.registerHandler(new CreeperHandler());
PossessHandler.registerHandler(new DragonHandler());
PossessHandler.registerHandler(new EndermanHandler());
PossessHandler.registerHandler(new FlyingHandler(EntityFlying.class, new ResourceLocation(Possessed.MODID, "flying")));
PossessHandler.registerHandler(new FlyingHandler(EntityBat.class, new ResourceLocation(Possessed.MODID, "bat_flying")));
PossessHandler.registerHandler(new FlyingHandler(EntityBlaze.class, new ResourceLocation(Possessed.MODID, "blaze_flying")));
PossessHandler.registerHandler(new GhastHandler());
PossessHandler.registerHandler(new GrassEatHandler(EntityCow.class, new ResourceLocation(Possessed.MODID, "cow_grass")));
PossessHandler.registerHandler(new GrassEatHandler(EntityChicken.class, new ResourceLocation(Possessed.MODID, "chicken_grass")));
PossessHandler.registerHandler(new GrassEatHandler(EntityPig.class, new ResourceLocation(Possessed.MODID, "pig_grass")));
PossessHandler.registerHandler(new GrassEatHandler(EntityHorse.class, new ResourceLocation(Possessed.MODID, "horse_grass")));
PossessHandler.registerHandler(new GuardianHandler());
PossessHandler.registerHandler(new IronGolemHandler());
PossessHandler.registerHandler(new OcelotHandler());
PossessHandler.registerHandler(new PolarBearHandler());
PossessHandler.registerHandler(new RabbitHandler());
PossessHandler.registerHandler(new SheepHandler());
PossessHandler.registerHandler(new ShulkerHandler());
PossessHandler.registerHandler(new SkeletonHandler());
PossessHandler.registerHandler(new SlimeHandler());
PossessHandler.registerHandler(new SnowmanHandler());
PossessHandler.registerHandler(new SpiderHandler());
PossessHandler.registerHandler(new SquidHandler());
PossessHandler.registerHandler(new WaterMobHandler());
PossessHandler.registerHandler(new WitherHandler());
PossessHandler.registerHandler(new ZombieHandler());
}
项目:BetterWithAddons
文件:RenewablesHandler.java
public void spawnArtificalBlaze(World world, BlockPos pos, boolean artificial)
{
EntityBlaze blaze = new EntityBlaze(world);
blaze.setPosition(pos.getX()+0.5,pos.getY()+0.5,pos.getZ()+0.5);
blaze.getCapability(ARTIFICIAL_BLAZE_CAP,null).isArtificial = artificial;
world.spawnEntity(blaze);
for(int i = 0; i < 6; i++)
world.playEvent(2004, pos.up(i % 3), 0);
}
项目:BetterWithAddons
文件:RenewablesHandler.java
@SubscribeEvent
public void blazeAttachCapability(AttachCapabilitiesEvent<Entity> event)
{
Entity entity = event.getObject();
if(entity instanceof EntityBlaze)
{
event.addCapability(ARTIFICIAL_BLAZE,new ArtificialBlaze());
}
}
项目:BetterWithAddons
文件:RenewablesHandler.java
@SubscribeEvent
public void blazeDespawn(LivingSpawnEvent.AllowDespawn event)
{
Entity entity = event.getEntity();
if(entity instanceof EntityBlaze && entity.getCapability(ARTIFICIAL_BLAZE_CAP,null).isArtificial)
{
event.setResult(Event.Result.DENY);
}
}
项目:Fyrestone
文件:SwordEffectWaterstone.java
@Override
public void ApplyEffect(ItemStack stack, EntityLivingBase entity, EntityPlayer player) {
if(entity instanceof EntityEnderman || entity instanceof EntityBlaze)
{
entity.attackEntityFrom(DamageSource.causePlayerDamage(player), damageBonus);
}
if(entity.isBurning()) entity.extinguish();
}