Record Class ConjureParticleOptions
java.lang.Object
java.lang.Record
at.petrak.hexcasting.common.particles.ConjureParticleOptions
- All Implemented Interfaces:
net.minecraft.core.particles.ParticleOptions
public record ConjureParticleOptions(int color)
extends Record
implements net.minecraft.core.particles.ParticleOptions
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.core.particles.ParticleOptions
net.minecraft.core.particles.ParticleOptions.Deserializer<T extends net.minecraft.core.particles.ParticleOptions> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.core.particles.ParticleOptions.Deserializer<ConjureParticleOptions> -
Constructor Summary
ConstructorsConstructorDescriptionConjureParticleOptions(int color) Creates an instance of aConjureParticleOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcolor()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.net.minecraft.core.particles.ParticleType<?>getType()final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.voidwriteToNetwork(net.minecraft.network.FriendlyByteBuf buf)
-
Field Details
-
DESERIALIZER
public static final net.minecraft.core.particles.ParticleOptions.Deserializer<ConjureParticleOptions> DESERIALIZER
-
-
Constructor Details
-
ConjureParticleOptions
public ConjureParticleOptions(int color) Creates an instance of aConjureParticleOptionsrecord class.- Parameters:
color- the value for thecolorrecord component
-
-
Method Details
-
getType
public net.minecraft.core.particles.ParticleType<?> getType()- Specified by:
getTypein interfacenet.minecraft.core.particles.ParticleOptions
-
writeToNetwork
public void writeToNetwork(net.minecraft.network.FriendlyByteBuf buf) - Specified by:
writeToNetworkin interfacenet.minecraft.core.particles.ParticleOptions
-
writeToString
- Specified by:
writeToStringin interfacenet.minecraft.core.particles.ParticleOptions
-
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 with '=='. -
color
public int color()Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-