Package foundry.veil.api.quasar.data
Record Class EmitterSettings
java.lang.Object
java.lang.Record
foundry.veil.api.quasar.data.EmitterSettings
public record EmitterSettings(List<net.minecraft.core.Holder<EmitterShapeSettings>> emitterShapeSettingsHolders, net.minecraft.core.Holder<ParticleSettings> particleSettingsHolder, boolean forceSpawn)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEmitterSettings(List<net.minecraft.core.Holder<EmitterShapeSettings>> emitterShapeSettingsHolders, net.minecraft.core.Holder<ParticleSettings> particleSettingsHolder, boolean forceSpawn) Creates an instance of aEmitterSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionList<net.minecraft.core.Holder<EmitterShapeSettings>> Returns the value of theemitterShapeSettingsHoldersrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theforceSpawnrecord component.final inthashCode()Returns a hash code value for this object.net.minecraft.core.Holder<ParticleSettings> Returns the value of theparticleSettingsHolderrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
EmitterSettings
public EmitterSettings(List<net.minecraft.core.Holder<EmitterShapeSettings>> emitterShapeSettingsHolders, net.minecraft.core.Holder<ParticleSettings> particleSettingsHolder, boolean forceSpawn) Creates an instance of aEmitterSettingsrecord class.- Parameters:
emitterShapeSettingsHolders- the value for theemitterShapeSettingsHoldersrecord componentparticleSettingsHolder- the value for theparticleSettingsHolderrecord componentforceSpawn- the value for theforceSpawnrecord component
-
-
Method Details
-
emitterShapeSettings
-
particleSettings
-
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 '=='. -
emitterShapeSettingsHolders
Returns the value of theemitterShapeSettingsHoldersrecord component.- Returns:
- the value of the
emitterShapeSettingsHoldersrecord component
-
particleSettingsHolder
Returns the value of theparticleSettingsHolderrecord component.- Returns:
- the value of the
particleSettingsHolderrecord component
-
forceSpawn
public boolean forceSpawn()Returns the value of theforceSpawnrecord component.- Returns:
- the value of the
forceSpawnrecord component
-