Record Class SchematicLoader.ArenaSpawnData
java.lang.Object
java.lang.Record
xericker.arenalegends.core.instance.schematic.SchematicLoader.ArenaSpawnData
- Enclosing class:
SchematicLoader
public static record SchematicLoader.ArenaSpawnData(org.bukkit.Location center, org.bukkit.Location team1, org.bukkit.Location team2)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionArenaSpawnData(org.bukkit.Location center, org.bukkit.Location team1, org.bukkit.Location team2) Creates an instance of aArenaSpawnDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.Locationcenter()Returns the value of thecenterrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.bukkit.Locationteam1()Returns the value of theteam1record component.org.bukkit.Locationteam2()Returns the value of theteam2record component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ArenaSpawnData
public ArenaSpawnData(org.bukkit.Location center, org.bukkit.Location team1, org.bukkit.Location team2) Creates an instance of aArenaSpawnDatarecord class.- Parameters:
center- the value for thecenterrecord componentteam1- the value for theteam1record componentteam2- the value for theteam2record component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
center
public org.bukkit.Location center()Returns the value of thecenterrecord component.- Returns:
- the value of the
centerrecord component
-
team1
public org.bukkit.Location team1()Returns the value of theteam1record component.- Returns:
- the value of the
team1record component
-
team2
public org.bukkit.Location team2()Returns the value of theteam2record component.- Returns:
- the value of the
team2record component
-