@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));
}
}
java类net.minecraft.entity.monster.EntityBlaze的实例源码
BlockSaltBarrier.java 文件源码
项目:Bewitchment
阅读 32
收藏 0
点赞 0
评论 0
EntitySnowball.java 文件源码
项目:DecompiledMinecraft
阅读 28
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
EntitySnowball.java 文件源码
项目:DecompiledMinecraft
阅读 28
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
EntitySnowball.java 文件源码
项目:BaseClient
阅读 24
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
EntitySnowball.java 文件源码
项目:BaseClient
阅读 30
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
EntitySnowball.java 文件源码
项目:Backmemed
阅读 25
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
EntitySnowball.java 文件源码
项目:CustomWorldGen
阅读 23
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
EntitySnowball.java 文件源码
项目:Resilience-Client-Source
阅读 28
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
EntityGrenade.java 文件源码
项目:ZeroQuest
阅读 21
收藏 0
点赞 0
评论 0
/**
* 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);
}
}
}
EntityFCraftIceBall.java 文件源码
项目:FantasyCraft-Mod
阅读 24
收藏 0
点赞 0
评论 0
@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();
}
}
EntitySnowball.java 文件源码
项目:ExpandedRailsMod
阅读 28
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
DiscoveryListener.java 文件源码
项目:Quantum-Anomalies
阅读 24
收藏 0
点赞 0
评论 0
@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);
}
}
}
EntitySnowball.java 文件源码
项目:Cauldron
阅读 30
收藏 0
点赞 0
评论 0
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();
}
}
EntitySnowball.java 文件源码
项目:Cauldron
阅读 30
收藏 0
点赞 0
评论 0
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();
}
}
ZSSItemEvents.java 文件源码
项目:ZeldaSwordSkills
阅读 35
收藏 0
点赞 0
评论 0
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);
}
EntitySnowball.java 文件源码
项目:RuneCraftery
阅读 26
收藏 0
点赞 0
评论 0
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();
}
}
EntitySnowball.java 文件源码
项目:RuneCraftery
阅读 25
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
ItemFireExtinguisher.java 文件源码
项目:Gizmos
阅读 24
收藏 0
点赞 0
评论 0
@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;
}
EntDec.java 文件源码
项目:CountryGamer_PlantsVsZombies
阅读 27
收藏 0
点赞 0
评论 0
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;
}
EntitySnowball.java 文件源码
项目:BetterNutritionMod
阅读 27
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
CrashKreknorite.java 文件源码
项目:MeteorsMod
阅读 31
收藏 0
点赞 0
评论 0
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--;
}
}
}
HackableHandler.java 文件源码
项目:PneumaticCraft
阅读 25
收藏 0
点赞 0
评论 0
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);
}
EntityHardSnowball.java 文件源码
项目:Modjam-3-Winter-Warfare-Mod
阅读 23
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
EntityRockySnowBall.java 文件源码
项目:Modjam-3-Winter-Warfare-Mod
阅读 28
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
EntityIceball.java 文件源码
项目:Modjam-3-Winter-Warfare-Mod
阅读 28
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
EntityFrostShard.java 文件源码
项目:Soul-Forest
阅读 22
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
Reflections.java 文件源码
项目:pnc-repressurized
阅读 34
收藏 0
点赞 0
评论 0
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");
}
MapGenNetherBridge.java 文件源码
项目:DecompiledMinecraft
阅读 34
收藏 0
点赞 0
评论 0
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));
}
MapGenNetherBridge.java 文件源码
项目:DecompiledMinecraft
阅读 21
收藏 0
点赞 0
评论 0
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));
}
MapGenNetherBridge.java 文件源码
项目:BaseClient
阅读 24
收藏 0
点赞 0
评论 0
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));
}