Adding save handle to get Entities Within AABB Excluding Entity

This commit is contained in:
thatsIch
2014-11-04 02:18:37 +01:00
parent 0622b8bb83
commit 83262093eb
3 changed files with 47 additions and 12 deletions
@@ -18,16 +18,12 @@ import appeng.core.CommonHelper;
import appeng.core.features.AEFeature;
import appeng.util.Platform;
final public class EntityChargedQuartz extends EntityItem
final public class EntityChargedQuartz extends AEBaseEntityItem
{
int delay = 0;
int transformTime = 0;
public EntityChargedQuartz(World w) {
super( w );
}
public EntityChargedQuartz(World w, double x, double y, double z, ItemStack is) {
super( w, x, y, z, is );
}
@@ -70,7 +66,7 @@ final public class EntityChargedQuartz extends EntityItem
if ( AEApi.instance().materials().materialCertusQuartzCrystalCharged.sameAsStack( item ) )
{
AxisAlignedBB region = AxisAlignedBB.getBoundingBox( posX - 1, posY - 1, posZ - 1, posX + 1, posY + 1, posZ + 1 );
List<Entity> l = worldObj.getEntitiesWithinAABBExcludingEntity( this, region );
List<Entity> l = this.getCheckedEntitiesWithinAABBExcludingEntity( region );
EntityItem redstone = null;
EntityItem netherQuartz = null;