Package games.stendhal.server.entity.item

Examples of games.stendhal.server.entity.item.Stackable


        if (hasSlot(slotName)) {
          final RPSlot rpslot = getSlot(slotName);
          for (final RPObject object : rpslot) {
            if (object instanceof Stackable<?>) {
              // found another stackable
              @SuppressWarnings("rawtypes")
              final Stackable other = (Stackable<?>) object;
              if (other.isStackable(stackEntity)) {
                return slotName;
              }
            }
          }
        }
View Full Code Here


          while (it.hasNext()) {
            final RPObject object = it.next();

            if (object instanceof Stackable<?>) {
              // found another stackable
              @SuppressWarnings("rawtypes")
              final Stackable other = (Stackable<?>) object;
              if (other.isStackable(stackEntity)) {
                // other is the same type...merge them
                isStackable = true;
              }
            }
          }
View Full Code Here

TOP

Related Classes of games.stendhal.server.entity.item.Stackable

Copyright © 2018 www.massapicom. 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.