public final class CraftingBookDataMessage extends Object implements com.flowpowered.network.Message
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_DISPLAYED_RECIPE |
static int |
TYPE_STATUS |
Constructor and Description |
---|
CraftingBookDataMessage(int type,
boolean bookOpen,
boolean filter)
Creates a message about the whole crafting book.
|
CraftingBookDataMessage(int type,
int recipeId)
Creates a message about the given recipe.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getRecipeId() |
int |
getType() |
int |
hashCode() |
boolean |
isBookOpen() |
boolean |
isFilter() |
String |
toString() |
public static final int TYPE_DISPLAYED_RECIPE
public static final int TYPE_STATUS
public CraftingBookDataMessage(int type, int recipeId)
type
- TYPE_DISPLAYED_RECIPE
or TYPE_STATUS
recipeId
- the ID of a crafting recipepublic CraftingBookDataMessage(int type, boolean bookOpen, boolean filter)
type
- TYPE_DISPLAYED_RECIPE
or TYPE_STATUS
bookOpen
- TODO: document this parameterfilter
- TODO: document this parameterpublic int getType()
public int getRecipeId()
public boolean isBookOpen()
public boolean isFilter()
public boolean equals(Object o)
public int hashCode()
Copyright © 2021. All rights reserved.