Class NetworkInventoryAction

java.lang.Object
cn.nukkit.network.protocol.types.NetworkInventoryAction

public class NetworkInventoryAction extends Object
Author:
CreeperFace
  • Field Details

    • EMPTY_ARRAY

      @PowerNukkitOnly @Since("1.4.0.0-PN") public static final NetworkInventoryAction[] EMPTY_ARRAY
    • SOURCE_CONTAINER

      public static final int SOURCE_CONTAINER
      See Also:
    • SOURCE_WORLD

      public static final int SOURCE_WORLD
      See Also:
    • SOURCE_CREATIVE

      public static final int SOURCE_CREATIVE
      See Also:
    • SOURCE_TODO

      public static final int SOURCE_TODO
      See Also:
    • SOURCE_CRAFT_SLOT

      public static final int SOURCE_CRAFT_SLOT
      See Also:
    • SOURCE_TYPE_CRAFTING_ADD_INGREDIENT

      public static final int SOURCE_TYPE_CRAFTING_ADD_INGREDIENT
      Fake window IDs for the SOURCE_TODO type (99999)

      These identifiers are used for inventory source types which are not currently implemented server-side in MCPE. As a general rule of thumb, anything that doesn't have a permanent inventory is client-side. These types are to allow servers to track what is going on in client-side windows.

      Expect these to change in the future.

      See Also:
    • SOURCE_TYPE_CRAFTING_REMOVE_INGREDIENT

      public static final int SOURCE_TYPE_CRAFTING_REMOVE_INGREDIENT
      See Also:
    • SOURCE_TYPE_CRAFTING_RESULT

      public static final int SOURCE_TYPE_CRAFTING_RESULT
      See Also:
    • SOURCE_TYPE_CRAFTING_USE_INGREDIENT

      public static final int SOURCE_TYPE_CRAFTING_USE_INGREDIENT
      See Also:
    • SOURCE_TYPE_ANVIL_INPUT

      public static final int SOURCE_TYPE_ANVIL_INPUT
      See Also:
    • SOURCE_TYPE_ANVIL_MATERIAL

      public static final int SOURCE_TYPE_ANVIL_MATERIAL
      See Also:
    • SOURCE_TYPE_ANVIL_RESULT

      public static final int SOURCE_TYPE_ANVIL_RESULT
      See Also:
    • SOURCE_TYPE_ANVIL_OUTPUT

      public static final int SOURCE_TYPE_ANVIL_OUTPUT
      See Also:
    • SOURCE_TYPE_ENCHANT_INPUT

      public static final int SOURCE_TYPE_ENCHANT_INPUT
      See Also:
    • SOURCE_TYPE_ENCHANT_MATERIAL

      public static final int SOURCE_TYPE_ENCHANT_MATERIAL
      See Also:
    • SOURCE_TYPE_ENCHANT_OUTPUT

      public static final int SOURCE_TYPE_ENCHANT_OUTPUT
      See Also:
    • SOURCE_TYPE_TRADING_OUTPUT

      public static final int SOURCE_TYPE_TRADING_OUTPUT
      See Also:
    • SOURCE_TYPE_TRADING_INPUT_1

      public static final int SOURCE_TYPE_TRADING_INPUT_1
      See Also:
    • SOURCE_TYPE_TRADING_INPUT_2

      public static final int SOURCE_TYPE_TRADING_INPUT_2
      See Also:
    • SOURCE_TYPE_TRADING_USE_INPUTS

      public static final int SOURCE_TYPE_TRADING_USE_INPUTS
      See Also:
    • SOURCE_TYPE_BEACON

      public static final int SOURCE_TYPE_BEACON
      See Also:
    • SOURCE_TYPE_CONTAINER_DROP_CONTENTS

      public static final int SOURCE_TYPE_CONTAINER_DROP_CONTENTS
      Any client-side window dropping its contents when the player closes it
      See Also:
    • sourceType

      public int sourceType
    • windowId

      public int windowId
    • unknown

      public long unknown
    • inventorySlot

      public int inventorySlot
    • oldItem

      public Item oldItem
    • newItem

      public Item newItem
    • stackNetworkId

      @Since("1.3.0.0-PN") public int stackNetworkId
  • Constructor Details

    • NetworkInventoryAction

      public NetworkInventoryAction()
  • Method Details