public class UnlockRecipesS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Class and Description |
---|---|
static class |
UnlockRecipesS2CPacket.Action |
Modifier and Type | Field and Description |
---|---|
private UnlockRecipesS2CPacket.Action |
action |
private boolean |
filteringCraftable |
private boolean |
furnaceFilteringCraftable |
private boolean |
furnaceGuiOpen |
private boolean |
guiOpen |
private List<Identifier> |
recipeIdsToChange |
private List<Identifier> |
recipeIdsToInit |
Constructor and Description |
---|
UnlockRecipesS2CPacket() |
UnlockRecipesS2CPacket(UnlockRecipesS2CPacket.Action action,
Collection<Identifier> recipeIdsToChange,
Collection<Identifier> recipeIdsToInit,
boolean guiOpen,
boolean filteringCraftable,
boolean furnaceGuiOpen,
boolean furnaceFilteringCraftable) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
UnlockRecipesS2CPacket.Action |
getAction() |
List<Identifier> |
getRecipeIdsToChange() |
List<Identifier> |
getRecipeIdsToInit() |
boolean |
isFilteringCraftable() |
boolean |
isFurnaceFilteringCraftable() |
boolean |
isFurnaceGuiOpen() |
boolean |
isGuiOpen() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private UnlockRecipesS2CPacket.Action action
private List<Identifier> recipeIdsToChange
private List<Identifier> recipeIdsToInit
private boolean guiOpen
private boolean filteringCraftable
private boolean furnaceGuiOpen
private boolean furnaceFilteringCraftable
public UnlockRecipesS2CPacket()
public UnlockRecipesS2CPacket(UnlockRecipesS2CPacket.Action action, Collection<Identifier> recipeIdsToChange, Collection<Identifier> recipeIdsToInit, boolean guiOpen, boolean filteringCraftable, boolean furnaceGuiOpen, boolean furnaceFilteringCraftable)
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply
in interface Packet<ClientPlayPacketListener>
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ClientPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ClientPlayPacketListener>
IOException
@Environment(value=CLIENT) public List<Identifier> getRecipeIdsToChange()
@Environment(value=CLIENT) public List<Identifier> getRecipeIdsToInit()
@Environment(value=CLIENT) public boolean isGuiOpen()
@Environment(value=CLIENT) public boolean isFilteringCraftable()
@Environment(value=CLIENT) public boolean isFurnaceGuiOpen()
@Environment(value=CLIENT) public boolean isFurnaceFilteringCraftable()
@Environment(value=CLIENT) public UnlockRecipesS2CPacket.Action getAction()