Record Class ParticleController.Type
java.lang.Object
java.lang.Record
at.minecraftschurli.mods.arsmagicalegacy.api.client.particle.ParticleController.Type
- Record Components:
id- The id of the controller.codec- TheMapCodecof the controller.
- Enclosing interface:
ParticleController
public static record ParticleController.Type(net.minecraft.resources.Identifier id, com.mojang.serialization.MapCodec<? extends ParticleController> codec)
extends Record
The registered type of a
ParticleController.-
Constructor Summary
ConstructorsConstructorDescriptionType(net.minecraft.resources.Identifier id, com.mojang.serialization.MapCodec<? extends ParticleController> codec) Creates an instance of aTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<? extends ParticleController> codec()Returns the value of thecodecrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.resources.Identifierid()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Type
public Type(net.minecraft.resources.Identifier id, com.mojang.serialization.MapCodec<? extends ParticleController> codec) Creates an instance of aTyperecord class.
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
id
-
codec
-