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 classUnlockRecipesS2CPacket.Action -
Field Summary
Fields Modifier and Type Field Description private UnlockRecipesS2CPacket.Actionactionprivate RecipeBookOptionsoptionsprivate List<Identifier>recipeIdsToChangeprivate 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 voidapply(ClientPlayPacketListener clientPlayPacketListener)UnlockRecipesS2CPacket.ActiongetAction()RecipeBookOptionsgetOptions()List<Identifier>getRecipeIdsToChange()List<Identifier>getRecipeIdsToInit()voidread(PacketByteBuf buf)voidwrite(PacketByteBuf buf)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
applyin interfacePacket<ClientPlayPacketListener>
-
read
- Specified by:
readin interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
getRecipeIdsToChange
-
getRecipeIdsToInit
-
getOptions
-
getAction
-