Record Class SmelteryBurner.Fuel
java.lang.Object
java.lang.Record
io.github.pylonmc.pylon.base.content.machines.smelting.SmelteryBurner.Fuel
- All Implemented Interfaces:
net.kyori.adventure.key.Keyed,org.bukkit.Keyed
- Enclosing class:
SmelteryBurner
public static record SmelteryBurner.Fuel(@NotNull org.bukkit.NamespacedKey key, @NotNull org.bukkit.inventory.ItemStack material, double temperature, long burnTimeSeconds)
extends Record
implements org.bukkit.Keyed
-
Constructor Summary
ConstructorsConstructorDescriptionFuel(@NotNull org.bukkit.NamespacedKey key, @NotNull org.bukkit.inventory.ItemStack material, double temperature, long burnTimeSeconds) Creates an instance of aFuelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns 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.ItemStackmaterial()Returns the value of thematerialrecord component.doubleReturns the value of thetemperaturerecord 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 material, double temperature, long burnTimeSeconds) Creates an instance of aFuelrecord class.- Parameters:
key- the value for thekeyrecord componentmaterial- the value for thematerialrecord componenttemperature- the value for thetemperaturerecord componentburnTimeSeconds- the value for theburnTimeSecondsrecord component
-
-
Method Details
-
getKey
@NotNull public @NotNull org.bukkit.NamespacedKey getKey()- Specified by:
getKeyin interfaceorg.bukkit.Keyed
-
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 '=='. -
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
-
material
@NotNull public @NotNull org.bukkit.inventory.ItemStack material()Returns the value of thematerialrecord component.- Returns:
- the value of the
materialrecord component
-
temperature
public double temperature()Returns the value of thetemperaturerecord component.- Returns:
- the value of the
temperaturerecord component
-
burnTimeSeconds
public long burnTimeSeconds()Returns the value of theburnTimeSecondsrecord component.- Returns:
- the value of the
burnTimeSecondsrecord component
-