Record Class SimplifiedSpawning
java.lang.Object
java.lang.Record
com.pixelmonmod.pixelmon.api.spawning.SimplifiedSpawning
public record SimplifiedSpawning(OptionalInt minY, OptionalInt maxY, List<WorldTime> times, List<WeatherType> weathers, List<net.minecraft.tags.TagEntry> biomes, List<String> structures)
extends Record
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSimplifiedSpawning(Optional<Integer> minY, Optional<Integer> maxY, List<WorldTime> times, List<WeatherType> weathers, List<net.minecraft.tags.TagEntry> biomes, List<String> structures) SimplifiedSpawning(OptionalInt minY, OptionalInt maxY, List<WorldTime> times, List<WeatherType> weathers, List<net.minecraft.tags.TagEntry> biomes, List<String> structures) Creates an instance of aSimplifiedSpawningrecord class. -
Method Summary
Modifier and TypeMethodDescriptionList<net.minecraft.tags.TagEntry> biomes()Returns the value of thebiomesrecord component.static SimplifiedSpawning.Builderbuilder()static SimplifiedSpawning.Builderbuilder(SimplifiedSpawning spawning) combine(SimplifiedSpawning other) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.maxY()Returns the value of themaxYrecord component.minY()Returns the value of theminYrecord component.Returns the value of thestructuresrecord component.times()Returns the value of thetimesrecord component.final StringtoString()Returns a string representation of this record class.weathers()Returns the value of theweathersrecord component.
-
Field Details
-
CODEC
-
-
Constructor Details
-
SimplifiedSpawning
-
SimplifiedSpawning
public SimplifiedSpawning(OptionalInt minY, OptionalInt maxY, List<WorldTime> times, List<WeatherType> weathers, List<net.minecraft.tags.TagEntry> biomes, List<String> structures) Creates an instance of aSimplifiedSpawningrecord class.- Parameters:
minY- the value for theminYrecord componentmaxY- the value for themaxYrecord componenttimes- the value for thetimesrecord componentweathers- the value for theweathersrecord componentbiomes- the value for thebiomesrecord componentstructures- the value for thestructuresrecord component
-
-
Method Details
-
combine
-
builder
-
builder
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
minY
Returns the value of theminYrecord component.- Returns:
- the value of the
minYrecord component
-
maxY
Returns the value of themaxYrecord component.- Returns:
- the value of the
maxYrecord component
-
times
Returns the value of thetimesrecord component.- Returns:
- the value of the
timesrecord component
-
weathers
Returns the value of theweathersrecord component.- Returns:
- the value of the
weathersrecord component
-
biomes
Returns the value of thebiomesrecord component.- Returns:
- the value of the
biomesrecord component
-
structures
Returns the value of thestructuresrecord component.- Returns:
- the value of the
structuresrecord component
-