Record Class GeyserSmithingRecipe.Transform
java.lang.Object
java.lang.Record
org.geysermc.geyser.inventory.recipe.GeyserSmithingRecipe.Transform
- All Implemented Interfaces:
GeyserRecipe<org.cloudburstmc.protocol.bedrock.data.inventory.crafting.recipe.SmithingTransformRecipeData>,GeyserSmithingRecipe<org.cloudburstmc.protocol.bedrock.data.inventory.crafting.recipe.SmithingTransformRecipeData>
- Enclosing interface:
GeyserSmithingRecipe<T extends org.cloudburstmc.protocol.bedrock.data.inventory.crafting.recipe.RecipeData>
public static record GeyserSmithingRecipe.Transform(int id, int netId, org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay template, org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay base, org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay addition, org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay result)
extends Record
implements GeyserSmithingRecipe<org.cloudburstmc.protocol.bedrock.data.inventory.crafting.recipe.SmithingTransformRecipeData>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.geysermc.geyser.inventory.recipe.GeyserSmithingRecipe
GeyserSmithingRecipe.RecipeDataConstructor<T extends org.cloudburstmc.protocol.bedrock.data.inventory.crafting.recipe.RecipeData>, GeyserSmithingRecipe.Transform, GeyserSmithingRecipe.Trim -
Constructor Summary
ConstructorsConstructorDescriptionTransform(int id, int netId, org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay template, org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay base, org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay addition, org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay result) Creates an instance of aTransformrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplayaddition()Returns the value of theadditionrecord component.List<org.cloudburstmc.protocol.bedrock.data.inventory.crafting.recipe.SmithingTransformRecipeData> asRecipeData(GeyserSession session) org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplaybase()Returns the value of thebaserecord component.final booleanIndicates whether some other object is "equal to" this one.List<org.cloudburstmc.protocol.bedrock.data.inventory.crafting.recipe.SmithingTransformRecipeData> getCraftingDataList(org.cloudburstmc.protocol.bedrock.packet.CraftingDataPacket craftingDataPacket) final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.intnetId()Returns the value of thenetIdrecord component.of(int id, int netId, org.geysermc.mcprotocollib.protocol.data.game.recipe.display.SmithingRecipeDisplay display) org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplayresult()Returns the value of theresultrecord component.org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplaytemplate()Returns the value of thetemplaterecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.geyser.inventory.recipe.GeyserSmithingRecipe
addToPacket, asRecipeData, isShaped, matches
-
Constructor Details
-
Transform
public Transform(int id, int netId, org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay template, org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay base, org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay addition, org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay result) Creates an instance of aTransformrecord class.- Parameters:
id- the value for theidrecord componentnetId- the value for thenetIdrecord componenttemplate- the value for thetemplaterecord componentbase- the value for thebaserecord componentaddition- the value for theadditionrecord componentresult- the value for theresultrecord component
-
-
Method Details
-
of
public static GeyserSmithingRecipe.Transform of(int id, int netId, org.geysermc.mcprotocollib.protocol.data.game.recipe.display.SmithingRecipeDisplay display) -
getCraftingDataList
public List<org.cloudburstmc.protocol.bedrock.data.inventory.crafting.recipe.SmithingTransformRecipeData> getCraftingDataList(org.cloudburstmc.protocol.bedrock.packet.CraftingDataPacket craftingDataPacket) - Specified by:
getCraftingDataListin interfaceGeyserSmithingRecipe<org.cloudburstmc.protocol.bedrock.data.inventory.crafting.recipe.SmithingTransformRecipeData>
-
asRecipeData
public List<org.cloudburstmc.protocol.bedrock.data.inventory.crafting.recipe.SmithingTransformRecipeData> asRecipeData(GeyserSession session) - Specified by:
asRecipeDatain interfaceGeyserRecipe<org.cloudburstmc.protocol.bedrock.data.inventory.crafting.recipe.SmithingTransformRecipeData>
-
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 '=='. -
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
netId
public int netId()Returns the value of thenetIdrecord component.- Returns:
- the value of the
netIdrecord component
-
template
public org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay template()Returns the value of thetemplaterecord component.- Specified by:
templatein interfaceGeyserSmithingRecipe<org.cloudburstmc.protocol.bedrock.data.inventory.crafting.recipe.SmithingTransformRecipeData>- Returns:
- the value of the
templaterecord component
-
base
public org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay base()Returns the value of thebaserecord component.- Specified by:
basein interfaceGeyserSmithingRecipe<org.cloudburstmc.protocol.bedrock.data.inventory.crafting.recipe.SmithingTransformRecipeData>- Returns:
- the value of the
baserecord component
-
addition
public org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay addition()Returns the value of theadditionrecord component.- Specified by:
additionin interfaceGeyserSmithingRecipe<org.cloudburstmc.protocol.bedrock.data.inventory.crafting.recipe.SmithingTransformRecipeData>- Returns:
- the value of the
additionrecord component
-
result
public org.geysermc.mcprotocollib.protocol.data.game.recipe.display.slot.SlotDisplay result()Returns the value of theresultrecord component.- Specified by:
resultin interfaceGeyserRecipe<org.cloudburstmc.protocol.bedrock.data.inventory.crafting.recipe.SmithingTransformRecipeData>- Returns:
- the value of the
resultrecord component
-