Examples of unwrapItem()


Examples of com.comphenix.protocol.injector.BukkitUnwrapper.unwrapItem()

        getFieldByType("datawatcher", MinecraftReflection.getDataWatcherClass());

    BukkitUnwrapper unwrapper = new BukkitUnwrapper();
   
    try {
      Object nsmWatcher = FieldUtils.readField(ENTITY_DATA_FIELD, unwrapper.unwrapItem(entity), true);
     
      if (nsmWatcher != null)
        return new WrappedDataWatcher(nsmWatcher);
      else
        return null;
View Full Code Here

Examples of com.comphenix.protocol.injector.BukkitUnwrapper.unwrapItem()

   * @param player - the player to retrieve.
   * @return Notch player object.
   */
  protected Object getEntityPlayer(Player player) {
    BukkitUnwrapper unwrapper = new BukkitUnwrapper();
    return unwrapper.unwrapItem(player);
  }
 
  /**
   * Initialize all fields for this player injector, if it hasn't already.
   * @throws IllegalAccessException An error has occured.
View Full Code Here

Examples of com.comphenix.protocol.injector.BukkitUnwrapper.unwrapItem()

    // Make sure this is a CraftItemStack
    if (!isCraftItemStack(stack))
      stack = getBukkitItemStack(stack);
   
    BukkitUnwrapper unwrapper = new BukkitUnwrapper();
    return unwrapper.unwrapItem(stack);
  }
 
  /**
   * Retrieve the given class by name.
   * @param className - name of the class.
View Full Code Here

Examples of com.comphenix.protocol.injector.PacketConstructor.Unwrapper.unwrapItem()

   
    Unwrapper specificUnwrapper = getSpecificUnwrapper(currentClass);
   
    // Retrieve the handle
    if (specificUnwrapper != null)
      return specificUnwrapper.unwrapItem(wrappedObject);
    else
      return null;
  }
 
  // Handle a collection of items
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.