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 booleanfilteringCraftableprivate booleanfurnaceFilteringCraftableprivate booleanfurnaceGuiOpenprivate booleanguiOpenprivate List<Identifier>recipeIdsToChangeprivate List<Identifier>recipeIdsToInit -
Constructor Summary
Constructors Constructor Description UnlockRecipesS2CPacket()UnlockRecipesS2CPacket(UnlockRecipesS2CPacket.Action action, Collection<Identifier> recipeIdsToChange, Collection<Identifier> recipeIdsToInit, boolean guiOpen, boolean filteringCraftable, boolean furnaceGuiOpen, boolean furnaceFilteringCraftable) -
Method Summary
Modifier and Type Method Description voidapply(ClientPlayPacketListener clientPlayPacketListener)UnlockRecipesS2CPacket.ActiongetAction()List<Identifier>getRecipeIdsToChange()List<Identifier>getRecipeIdsToInit()booleanisFilteringCraftable()booleanisFurnaceFilteringCraftable()booleanisFurnaceGuiOpen()booleanisGuiOpen()voidread(PacketByteBuf buf)voidwrite(PacketByteBuf buf)
-
Field Details
-
action
-
recipeIdsToChange
-
recipeIdsToInit
-
guiOpen
private boolean guiOpen -
filteringCraftable
private boolean filteringCraftable -
furnaceGuiOpen
private boolean furnaceGuiOpen -
furnaceFilteringCraftable
private boolean furnaceFilteringCraftable
-
-
Constructor Details
-
UnlockRecipesS2CPacket
public UnlockRecipesS2CPacket() -
UnlockRecipesS2CPacket
public UnlockRecipesS2CPacket(UnlockRecipesS2CPacket.Action action, Collection<Identifier> recipeIdsToChange, Collection<Identifier> recipeIdsToInit, boolean guiOpen, boolean filteringCraftable, boolean furnaceGuiOpen, boolean furnaceFilteringCraftable)
-
-
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
-
isGuiOpen
@Environment(CLIENT) public boolean isGuiOpen() -
isFilteringCraftable
@Environment(CLIENT) public boolean isFilteringCraftable() -
isFurnaceGuiOpen
@Environment(CLIENT) public boolean isFurnaceGuiOpen() -
isFurnaceFilteringCraftable
@Environment(CLIENT) public boolean isFurnaceFilteringCraftable() -
getAction
-