Record Class RecipeBookSettingsPacket
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.server.play.RecipeBookSettingsPacket
- All Implemented Interfaces:
SendablePacket,ServerPacket,ServerPacket.Play
public record RecipeBookSettingsPacket(boolean craftingRecipeBookOpen, boolean craftingRecipeBookFilterActive, boolean smeltingRecipeBookOpen, boolean smeltingRecipeBookFilterActive, boolean blastFurnaceRecipeBookOpen, boolean blastFurnaceRecipeBookFilterActive, boolean smokerRecipeBookOpen, boolean smokerRecipeBookFilterActive)
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 -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRecipeBookSettingsPacket(boolean craftingRecipeBookOpen, boolean craftingRecipeBookFilterActive, boolean smeltingRecipeBookOpen, boolean smeltingRecipeBookFilterActive, boolean blastFurnaceRecipeBookOpen, boolean blastFurnaceRecipeBookFilterActive, boolean smokerRecipeBookOpen, boolean smokerRecipeBookFilterActive) Creates an instance of aRecipeBookSettingsPacketrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theblastFurnaceRecipeBookFilterActiverecord component.booleanReturns the value of theblastFurnaceRecipeBookOpenrecord component.booleanReturns the value of thecraftingRecipeBookFilterActiverecord component.booleanReturns the value of thecraftingRecipeBookOpenrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thesmeltingRecipeBookFilterActiverecord component.booleanReturns the value of thesmeltingRecipeBookOpenrecord component.booleanReturns the value of thesmokerRecipeBookFilterActiverecord component.booleanReturns the value of thesmokerRecipeBookOpenrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
RecipeBookSettingsPacket
public RecipeBookSettingsPacket(boolean craftingRecipeBookOpen, boolean craftingRecipeBookFilterActive, boolean smeltingRecipeBookOpen, boolean smeltingRecipeBookFilterActive, boolean blastFurnaceRecipeBookOpen, boolean blastFurnaceRecipeBookFilterActive, boolean smokerRecipeBookOpen, boolean smokerRecipeBookFilterActive) Creates an instance of aRecipeBookSettingsPacketrecord class.- Parameters:
craftingRecipeBookOpen- the value for thecraftingRecipeBookOpenrecord componentcraftingRecipeBookFilterActive- the value for thecraftingRecipeBookFilterActiverecord componentsmeltingRecipeBookOpen- the value for thesmeltingRecipeBookOpenrecord componentsmeltingRecipeBookFilterActive- the value for thesmeltingRecipeBookFilterActiverecord componentblastFurnaceRecipeBookOpen- the value for theblastFurnaceRecipeBookOpenrecord componentblastFurnaceRecipeBookFilterActive- the value for theblastFurnaceRecipeBookFilterActiverecord componentsmokerRecipeBookOpen- the value for thesmokerRecipeBookOpenrecord componentsmokerRecipeBookFilterActive- the value for thesmokerRecipeBookFilterActiverecord component
-
-
Method Details
-
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. All components in this record class are compared with '=='. -
craftingRecipeBookOpen
public boolean craftingRecipeBookOpen()Returns the value of thecraftingRecipeBookOpenrecord component.- Returns:
- the value of the
craftingRecipeBookOpenrecord component
-
craftingRecipeBookFilterActive
public boolean craftingRecipeBookFilterActive()Returns the value of thecraftingRecipeBookFilterActiverecord component.- Returns:
- the value of the
craftingRecipeBookFilterActiverecord component
-
smeltingRecipeBookOpen
public boolean smeltingRecipeBookOpen()Returns the value of thesmeltingRecipeBookOpenrecord component.- Returns:
- the value of the
smeltingRecipeBookOpenrecord component
-
smeltingRecipeBookFilterActive
public boolean smeltingRecipeBookFilterActive()Returns the value of thesmeltingRecipeBookFilterActiverecord component.- Returns:
- the value of the
smeltingRecipeBookFilterActiverecord component
-
blastFurnaceRecipeBookOpen
public boolean blastFurnaceRecipeBookOpen()Returns the value of theblastFurnaceRecipeBookOpenrecord component.- Returns:
- the value of the
blastFurnaceRecipeBookOpenrecord component
-
blastFurnaceRecipeBookFilterActive
public boolean blastFurnaceRecipeBookFilterActive()Returns the value of theblastFurnaceRecipeBookFilterActiverecord component.- Returns:
- the value of the
blastFurnaceRecipeBookFilterActiverecord component
-
smokerRecipeBookOpen
public boolean smokerRecipeBookOpen()Returns the value of thesmokerRecipeBookOpenrecord component.- Returns:
- the value of the
smokerRecipeBookOpenrecord component
-
smokerRecipeBookFilterActive
public boolean smokerRecipeBookFilterActive()Returns the value of thesmokerRecipeBookFilterActiverecord component.- Returns:
- the value of the
smokerRecipeBookFilterActiverecord component
-