Package net.minecraft.entity.item

Examples of net.minecraft.entity.item.EntityItem.combineItems()


  @Override
  @Declare
  public boolean aggressiveCombine() {
    EntityItem last_ = last;
    if (last_ != null && this.getDistanceToEntitySq(last_) < aggressiveMergeRadiusSquared && last_.combineItems(this)) {
      return true;
    }
    for (EntityItem entityItem : (Iterable<EntityItem>) this.worldObj.selectEntitiesWithinAABB(EntityItem.class, this.boundingBox.expand(aggressiveMergeRadius, aggressiveMergeRadius, aggressiveMergeRadius), null, 1D)) {
      if (entityItem != last_ && entityItem.combineItems(this)) {
        return true;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.