Record Class NaturalSpawner
java.lang.Object
java.lang.Record
dev.wyck.wrapper.entity.data.NaturalSpawner
- Record Components:
type- the type of entity that spawnsminCount- the minimum number of entities that can spawnmaxCount- the maximum number of entities that can spawn
@NullMarked
@AsOf("2.3.0")
public record NaturalSpawner(EntityType type, int minCount, int maxCount)
extends Record
Represents a natural spawner.
- Since:
- 2.3.0
-
Constructor Summary
ConstructorsConstructorDescriptionNaturalSpawner(EntityType type, int minCount, int maxCount) Creates an instance of aNaturalSpawnerrecord 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.intmaxCount()Returns the value of themaxCountrecord component.intminCount()Returns the value of theminCountrecord component.static NaturalSpawnerof(EntityType type, int minCount, int maxCount) final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Method Details
-
of
-
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. -
type
-
minCount
-
maxCount
-