Record Class Biorefinery.Fuel
java.lang.Object
java.lang.Record
io.github.pylonmc.pylon.content.machines.diesel.production.Biorefinery.Fuel
- All Implemented Interfaces:
net.kyori.adventure.key.Keyed, org.bukkit.Keyed
- Enclosing class:
Biorefinery
public static record Biorefinery.Fuel(@NotNull org.bukkit.NamespacedKey key, @NotNull org.bukkit.inventory.ItemStack stack, int burnTimeSeconds)
extends Record
implements org.bukkit.Keyed
-
Constructor Summary
ConstructorsConstructorDescriptionFuel(@NotNull org.bukkit.NamespacedKey key, @NotNull org.bukkit.inventory.ItemStack stack, int burnTimeSeconds) Creates an instance of aFuelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theburnTimeSecondsrecord component.final booleanIndicates whether some other object is "equal to" this one.@NotNull org.bukkit.NamespacedKeygetKey()final inthashCode()Returns a hash code value for this object.@NotNull org.bukkit.NamespacedKeykey()Returns the value of thekeyrecord component.@NotNull org.bukkit.inventory.ItemStackstack()Returns the value of thestackrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Fuel
public Fuel(@NotNull @NotNull org.bukkit.NamespacedKey key, @NotNull @NotNull org.bukkit.inventory.ItemStack stack, int burnTimeSeconds) Creates an instance of aFuelrecord class.- Parameters:
key- the value for thekeyrecord componentstack- the value for thestackrecord componentburnTimeSeconds- the value for theburnTimeSecondsrecord component
-
-
Method Details
-
getKey
@NotNull public @NotNull org.bukkit.NamespacedKey getKey()- Specified by:
getKeyin interfaceorg.bukkit.Keyed
-
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
-
stack
@NotNull public @NotNull org.bukkit.inventory.ItemStack stack()Returns the value of thestackrecord component.- Returns:
- the value of the
stackrecord component
-
burnTimeSeconds
public int burnTimeSeconds()Returns the value of theburnTimeSecondsrecord component.- Returns:
- the value of the
burnTimeSecondsrecord component
-