Record Class UnlockRecipesPacket
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.server.play.UnlockRecipesPacket
- All Implemented Interfaces:
NetworkBuffer.Writer
,SendablePacket
,ServerPacket
,ServerPacket.Play
public record UnlockRecipesPacket(int mode, boolean craftingRecipeBookOpen, boolean craftingRecipeBookFilterActive, boolean smeltingRecipeBookOpen, boolean smeltingRecipeBookFilterActive, boolean blastFurnaceRecipeBookOpen, boolean blastFurnaceRecipeBookFilterActive, boolean smokerRecipeBookOpen, boolean smokerRecipeBookFilterActive, @NotNull List<String> recipeIds, @UnknownNullability List<String> initRecipeIds)
extends Record
implements ServerPacket.Play
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minestom.server.network.packet.server.ServerPacket
ServerPacket.ComponentHolding, ServerPacket.Configuration, ServerPacket.Login, ServerPacket.Play, ServerPacket.Status
-
Constructor Summary
ConstructorDescriptionUnlockRecipesPacket
(int mode, boolean craftingRecipeBookOpen, boolean craftingRecipeBookFilterActive, boolean smeltingRecipeBookOpen, boolean smeltingRecipeBookFilterActive, boolean blastFurnaceRecipeBookOpen, boolean blastFurnaceRecipeBookFilterActive, boolean smokerRecipeBookOpen, boolean smokerRecipeBookFilterActive, @NotNull List<String> recipeIds, @UnknownNullability List<String> initRecipeIds) Creates an instance of aUnlockRecipesPacket
record class.UnlockRecipesPacket
(@NotNull NetworkBuffer reader) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of theblastFurnaceRecipeBookFilterActive
record component.boolean
Returns the value of theblastFurnaceRecipeBookOpen
record component.boolean
Returns the value of thecraftingRecipeBookFilterActive
record component.boolean
Returns the value of thecraftingRecipeBookOpen
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theinitRecipeIds
record component.int
mode()
Returns the value of themode
record component.int
playId()
Returns the value of therecipeIds
record component.boolean
Returns the value of thesmeltingRecipeBookFilterActive
record component.boolean
Returns the value of thesmeltingRecipeBookOpen
record component.boolean
Returns the value of thesmokerRecipeBookFilterActive
record component.boolean
Returns the value of thesmokerRecipeBookOpen
record component.final String
toString()
Returns a string representation of this record class.void
write
(@NotNull NetworkBuffer writer) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minestom.server.network.packet.server.ServerPacket
getId
-
Constructor Details
-
UnlockRecipesPacket
public UnlockRecipesPacket(int mode, boolean craftingRecipeBookOpen, boolean craftingRecipeBookFilterActive, boolean smeltingRecipeBookOpen, boolean smeltingRecipeBookFilterActive, boolean blastFurnaceRecipeBookOpen, boolean blastFurnaceRecipeBookFilterActive, boolean smokerRecipeBookOpen, boolean smokerRecipeBookFilterActive, @NotNull @NotNull List<String> recipeIds, @UnknownNullability List<String> initRecipeIds) Creates an instance of aUnlockRecipesPacket
record class.- Parameters:
mode
- the value for themode
record componentcraftingRecipeBookOpen
- the value for thecraftingRecipeBookOpen
record componentcraftingRecipeBookFilterActive
- the value for thecraftingRecipeBookFilterActive
record componentsmeltingRecipeBookOpen
- the value for thesmeltingRecipeBookOpen
record componentsmeltingRecipeBookFilterActive
- the value for thesmeltingRecipeBookFilterActive
record componentblastFurnaceRecipeBookOpen
- the value for theblastFurnaceRecipeBookOpen
record componentblastFurnaceRecipeBookFilterActive
- the value for theblastFurnaceRecipeBookFilterActive
record componentsmokerRecipeBookOpen
- the value for thesmokerRecipeBookOpen
record componentsmokerRecipeBookFilterActive
- the value for thesmokerRecipeBookFilterActive
record componentrecipeIds
- the value for therecipeIds
record componentinitRecipeIds
- the value for theinitRecipeIds
record component
-
UnlockRecipesPacket
-
-
Method Details
-
write
- Specified by:
write
in interfaceNetworkBuffer.Writer
-
playId
public int playId()- Specified by:
playId
in interfaceServerPacket.Play
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
mode
public int mode()Returns the value of themode
record component.- Returns:
- the value of the
mode
record component
-
craftingRecipeBookOpen
public boolean craftingRecipeBookOpen()Returns the value of thecraftingRecipeBookOpen
record component.- Returns:
- the value of the
craftingRecipeBookOpen
record component
-
craftingRecipeBookFilterActive
public boolean craftingRecipeBookFilterActive()Returns the value of thecraftingRecipeBookFilterActive
record component.- Returns:
- the value of the
craftingRecipeBookFilterActive
record component
-
smeltingRecipeBookOpen
public boolean smeltingRecipeBookOpen()Returns the value of thesmeltingRecipeBookOpen
record component.- Returns:
- the value of the
smeltingRecipeBookOpen
record component
-
smeltingRecipeBookFilterActive
public boolean smeltingRecipeBookFilterActive()Returns the value of thesmeltingRecipeBookFilterActive
record component.- Returns:
- the value of the
smeltingRecipeBookFilterActive
record component
-
blastFurnaceRecipeBookOpen
public boolean blastFurnaceRecipeBookOpen()Returns the value of theblastFurnaceRecipeBookOpen
record component.- Returns:
- the value of the
blastFurnaceRecipeBookOpen
record component
-
blastFurnaceRecipeBookFilterActive
public boolean blastFurnaceRecipeBookFilterActive()Returns the value of theblastFurnaceRecipeBookFilterActive
record component.- Returns:
- the value of the
blastFurnaceRecipeBookFilterActive
record component
-
smokerRecipeBookOpen
public boolean smokerRecipeBookOpen()Returns the value of thesmokerRecipeBookOpen
record component.- Returns:
- the value of the
smokerRecipeBookOpen
record component
-
smokerRecipeBookFilterActive
public boolean smokerRecipeBookFilterActive()Returns the value of thesmokerRecipeBookFilterActive
record component.- Returns:
- the value of the
smokerRecipeBookFilterActive
record component
-
recipeIds
Returns the value of therecipeIds
record component.- Returns:
- the value of the
recipeIds
record component
-
initRecipeIds
Returns the value of theinitRecipeIds
record component.- Returns:
- the value of the
initRecipeIds
record component
-