public class RecipeCategoryOptionsC2SPacket extends Object implements Packet<ServerPlayPacketListener>
| Modifier and Type | Field and Description |
|---|---|
private RecipeBookCategory |
category |
private boolean |
filteringCraftable |
private boolean |
guiOpen |
| Constructor and Description |
|---|
RecipeCategoryOptionsC2SPacket() |
RecipeCategoryOptionsC2SPacket(RecipeBookCategory category,
boolean guiOpen,
boolean filteringCraftable) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(ServerPlayPacketListener serverPlayPacketListener) |
RecipeBookCategory |
getCategory() |
boolean |
isFilteringCraftable() |
boolean |
isGuiOpen() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisWritingErrorSkippableprivate RecipeBookCategory category
private boolean guiOpen
private boolean filteringCraftable
public RecipeCategoryOptionsC2SPacket()
@Environment(value=CLIENT) public RecipeCategoryOptionsC2SPacket(RecipeBookCategory category, boolean guiOpen, boolean filteringCraftable)
public void read(PacketByteBuf buf) throws IOException
read in interface Packet<ServerPlayPacketListener>IOExceptionpublic void write(PacketByteBuf buf) throws IOException
write in interface Packet<ServerPlayPacketListener>IOExceptionpublic void apply(ServerPlayPacketListener serverPlayPacketListener)
apply in interface Packet<ServerPlayPacketListener>public RecipeBookCategory getCategory()
public boolean isGuiOpen()
public boolean isFilteringCraftable()