public class CraftInventoryAction extends InventoryAction
InventoryAction.Type| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE_CONTAINER_DROP_CONTENTS |
static int |
TYPE_CRAFTING_ADD_INGREDIENT |
static int |
TYPE_CRAFTING_REMOVE_INGREDIENT |
static int |
TYPE_CRAFTING_RESULT |
static int |
TYPE_CRAFTING_USE_INGREDIENT |
| Constructor and Description |
|---|
CraftInventoryAction() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(PlayerSession session) |
InventoryAction.Type |
getType() |
void |
read(io.netty.buffer.ByteBuf buffer) |
void |
write(io.netty.buffer.ByteBuf buffer) |
invalidHandpublic static final int TYPE_CRAFTING_ADD_INGREDIENT
public static final int TYPE_CRAFTING_REMOVE_INGREDIENT
public static final int TYPE_CRAFTING_RESULT
public static final int TYPE_CRAFTING_USE_INGREDIENT
public static final int TYPE_CONTAINER_DROP_CONTENTS
public void write(io.netty.buffer.ByteBuf buffer)
write in class InventoryActionpublic void read(io.netty.buffer.ByteBuf buffer)
read in class InventoryActionpublic InventoryAction.Type getType()
getType in class InventoryActionpublic void execute(PlayerSession session)
execute in class InventoryActionCopyright © 2017–2018 NukkitX. All rights reserved.