Record Class Wave
java.lang.Object
java.lang.Record
xyz.stachel.zombiesutils.api.game.resources.waves.Wave
public record Wave(int ticks, ZombieBatch[] zombies, int zombie_count, WaveTag[] tags)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionWave(int ticks, ZombieBatch[] zombies, int zombie_count, WaveTag[] tags) Creates an instance of aWaverecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.WaveTag[]tags()Returns the value of thetagsrecord component.intticks()Returns the value of theticksrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thezombie_countrecord component.zombies()Returns the value of thezombiesrecord component.
-
Constructor Details
-
Wave
Creates an instance of aWaverecord class.- Parameters:
ticks- the value for theticksrecord componentzombies- the value for thezombiesrecord componentzombie_count- the value for thezombie_countrecord componenttags- the value for thetagsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
ticks
public int ticks()Returns the value of theticksrecord component.- Returns:
- the value of the
ticksrecord component
-
zombies
Returns the value of thezombiesrecord component.- Returns:
- the value of the
zombiesrecord component
-
zombie_count
public int zombie_count()Returns the value of thezombie_countrecord component.- Returns:
- the value of the
zombie_countrecord component
-
tags
Returns the value of thetagsrecord component.- Returns:
- the value of the
tagsrecord component
-