Class UnlockRecipesS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.UnlockRecipesS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class UnlockRecipesS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UnlockRecipesS2CPacket.Action
-
Field Summary
Fields Modifier and Type Field Description private UnlockRecipesS2CPacket.Action
action
private RecipeBookOptions
options
private List<Identifier>
recipeIdsToChange
private List<Identifier>
recipeIdsToInit
-
Constructor Summary
Constructors Constructor Description UnlockRecipesS2CPacket()
UnlockRecipesS2CPacket(UnlockRecipesS2CPacket.Action action, Collection<Identifier> collection, Collection<Identifier> collection2, RecipeBookOptions options)
-
Method Summary
Modifier and Type Method Description void
apply(ClientPlayPacketListener clientPlayPacketListener)
UnlockRecipesS2CPacket.Action
getAction()
RecipeBookOptions
getOptions()
List<Identifier>
getRecipeIdsToChange()
List<Identifier>
getRecipeIdsToInit()
void
read(PacketByteBuf buf)
void
write(PacketByteBuf buf)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
action
-
recipeIdsToChange
-
recipeIdsToInit
-
options
-
-
Constructor Details
-
UnlockRecipesS2CPacket
public UnlockRecipesS2CPacket() -
UnlockRecipesS2CPacket
public UnlockRecipesS2CPacket(UnlockRecipesS2CPacket.Action action, Collection<Identifier> collection, Collection<Identifier> collection2, RecipeBookOptions options)
-
-
Method Details
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
-
read
- Specified by:
read
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
-
write
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
-
getRecipeIdsToChange
-
getRecipeIdsToInit
-
getOptions
-
getAction
-