Record Class PipeBendingRecipe
java.lang.Object
java.lang.Record
io.github.pylonmc.pylon.recipes.PipeBendingRecipe
- Record Components:
input- the input item (respects amount)result- the output item (respects amount)particleItem- the item to use for particlestimeTicks- the recipe time in ticks
- All Implemented Interfaces:
io.github.pylonmc.rebar.recipe.RebarRecipe, net.kyori.adventure.key.Keyed, org.bukkit.Keyed
public record PipeBendingRecipe(@NotNull org.bukkit.NamespacedKey key, io.github.pylonmc.rebar.recipe.RecipeInput.Item input, @NotNull org.bukkit.inventory.ItemStack result, @NotNull org.bukkit.inventory.ItemStack particleItem, int timeTicks)
extends Record
implements io.github.pylonmc.rebar.recipe.RebarRecipe
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.pylonmc.rebar.recipe.RebarRecipe
io.github.pylonmc.rebar.recipe.RebarRecipe.Companion -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.github.pylonmc.rebar.recipe.RecipeType<PipeBendingRecipe> Fields inherited from interface io.github.pylonmc.rebar.recipe.RebarRecipe
Companion -
Constructor Summary
ConstructorsConstructorDescriptionPipeBendingRecipe(@NotNull org.bukkit.NamespacedKey key, io.github.pylonmc.rebar.recipe.RecipeInput.Item input, @NotNull org.bukkit.inventory.ItemStack result, @NotNull org.bukkit.inventory.ItemStack particleItem, int timeTicks) Creates an instance of aPipeBendingReciperecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull xyz.xenondevs.invui.gui.Guidisplay()final booleanIndicates whether some other object is "equal to" this one.@NotNull List<io.github.pylonmc.rebar.recipe.RecipeInput> @NotNull org.bukkit.NamespacedKeygetKey()@NotNull List<io.github.pylonmc.rebar.recipe.FluidOrItem> final inthashCode()Returns a hash code value for this object.io.github.pylonmc.rebar.recipe.RecipeInput.Iteminput()Returns the value of theinputrecord component.@NotNull org.bukkit.NamespacedKeykey()Returns the value of thekeyrecord component.@NotNull org.bukkit.inventory.ItemStackReturns the value of theparticleItemrecord component.@NotNull org.bukkit.inventory.ItemStackresult()Returns the value of theresultrecord component.intReturns the value of thetimeTicksrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface io.github.pylonmc.rebar.recipe.RebarRecipe
isHidden, isInput, isInput, isOutput, isOutput
-
Field Details
-
RECIPE_TYPE
-
-
Constructor Details
-
PipeBendingRecipe
public PipeBendingRecipe(@NotNull @NotNull org.bukkit.NamespacedKey key, @NotNull io.github.pylonmc.rebar.recipe.RecipeInput.Item input, @NotNull @NotNull org.bukkit.inventory.ItemStack result, @NotNull @NotNull org.bukkit.inventory.ItemStack particleItem, int timeTicks) Creates an instance of aPipeBendingReciperecord class.- Parameters:
key- the value for thekeyrecord componentinput- the value for theinputrecord componentresult- the value for theresultrecord componentparticleItem- the value for theparticleItemrecord componenttimeTicks- the value for thetimeTicksrecord component
-
-
Method Details
-
getKey
@NotNull public @NotNull org.bukkit.NamespacedKey getKey()- Specified by:
getKeyin interfaceorg.bukkit.Keyed
-
getInputs
- Specified by:
getInputsin interfaceio.github.pylonmc.rebar.recipe.RebarRecipe
-
getResults
- Specified by:
getResultsin interfaceio.github.pylonmc.rebar.recipe.RebarRecipe
-
display
@NotNull public @NotNull xyz.xenondevs.invui.gui.Gui display()- Specified by:
displayin interfaceio.github.pylonmc.rebar.recipe.RebarRecipe
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
key
@NotNull public @NotNull org.bukkit.NamespacedKey key()Returns the value of thekeyrecord component.- Specified by:
keyin interfacenet.kyori.adventure.key.Keyed- Specified by:
keyin interfaceorg.bukkit.Keyed- Returns:
- the value of the
keyrecord component
-
input
-
result
-
particleItem
@NotNull public @NotNull org.bukkit.inventory.ItemStack particleItem()Returns the value of theparticleItemrecord component.- Returns:
- the value of the
particleItemrecord component
-
timeTicks
-