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 RecipeBookOptions |
options |
private List<Identifier> |
recipeIdsToChange |
private List<Identifier> |
recipeIdsToInit |
| Constructor and Description |
|---|
UnlockRecipesS2CPacket() |
UnlockRecipesS2CPacket(UnlockRecipesS2CPacket.Action action,
Collection<Identifier> collection,
Collection<Identifier> collection2,
RecipeBookOptions options) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
UnlockRecipesS2CPacket.Action |
getAction() |
RecipeBookOptions |
getOptions() |
List<Identifier> |
getRecipeIdsToChange() |
List<Identifier> |
getRecipeIdsToInit() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisWritingErrorSkippableprivate UnlockRecipesS2CPacket.Action action
private List<Identifier> recipeIdsToChange
private List<Identifier> recipeIdsToInit
private RecipeBookOptions options
public UnlockRecipesS2CPacket()
public UnlockRecipesS2CPacket(UnlockRecipesS2CPacket.Action action, Collection<Identifier> collection, Collection<Identifier> collection2, RecipeBookOptions options)
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply in interface Packet<ClientPlayPacketListener>public void read(PacketByteBuf buf) throws IOException
read in interface Packet<ClientPlayPacketListener>IOExceptionpublic 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 RecipeBookOptions getOptions()
@Environment(value=CLIENT) public UnlockRecipesS2CPacket.Action getAction()