Package exceptions

Examples of exceptions.UnrecoverableException


   * @throws UnrecoverableException
   * @throws MC
   */
  public void setSelectedSlot(short slotid) throws UnrecoverableException {
    if(slotid < 0 || slotid > 9) {
      throw new UnrecoverableException("Invalid slotid");
    }
    this.currentSlot = slotid;
    this.updateMe(EntityEvent.SELECTEDITEMCHANGED);
  }
View Full Code Here


   * @param slot
   * @throws UnrecoverableException
   */
  public void setSlotItem(short slotid, MCItemSlot slot) throws UnrecoverableException {
    if(slotid < 0 || slotid > 9) {
      throw new UnrecoverableException("Invalid slotId");
    }
    this.helditems[slotid] = slot;
    this.updateMe(EntityEvent.SELECTEDITEMCHANGED);
  }
View Full Code Here

   * @return
   * @throws UnrecoverableException
   */
  public MCItemSlot getHeldItemAtSlot(short slotid) throws UnrecoverableException {
    if(slotid < 0 || slotid > 9) {
      throw new UnrecoverableException("Invalid slotId");
    }
    return this.helditems[slotid];
  }
View Full Code Here

TOP

Related Classes of exceptions.UnrecoverableException

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.