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
-
Constructor Summary
ConstructorDescriptionEmitterSettings
(List<net.minecraft.core.Holder<EmitterShapeSettings>> emitterShapeSettingsHolders, net.minecraft.core.Holder<ParticleSettings> particleSettingsHolder, boolean forceSpawn) Creates an instance of aEmitterSettings
record class. -
Method Summary
Modifier and TypeMethodDescriptionList
<net.minecraft.core.Holder<EmitterShapeSettings>> Returns the value of theemitterShapeSettingsHolders
record component.final boolean
Indicates whether some other object is "equal to" this one.boolean
Returns the value of theforceSpawn
record component.final int
hashCode()
Returns a hash code value for this object.net.minecraft.core.Holder
<ParticleSettings> Returns the value of theparticleSettingsHolder
record component.final String
toString()
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 aEmitterSettings
record class.- Parameters:
emitterShapeSettingsHolders
- the value for theemitterShapeSettingsHolders
record componentparticleSettingsHolder
- the value for theparticleSettingsHolder
record componentforceSpawn
- the value for theforceSpawn
record 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 theemitterShapeSettingsHolders
record component.- Returns:
- the value of the
emitterShapeSettingsHolders
record component
-
particleSettingsHolder
Returns the value of theparticleSettingsHolder
record component.- Returns:
- the value of the
particleSettingsHolder
record component
-
forceSpawn
public boolean forceSpawn()Returns the value of theforceSpawn
record component.- Returns:
- the value of the
forceSpawn
record component
-