Package net.minecraft.client.particle
Record Class ParticleRenderType
java.lang.Object
java.lang.Record
net.minecraft.client.particle.ParticleRenderType
public record ParticleRenderType(String name, @Nullable RenderType renderType, boolean translucent)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ParticleRenderTypeprivate final StringThe field for thenamerecord component.static final ParticleRenderTypestatic final ParticleRenderTypestatic final ParticleRenderTypeprivate final RenderTypeThe field for therenderTyperecord component.static final ParticleRenderTypeprivate final booleanThe field for thetranslucentrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionParticleRenderType(String name, RenderType renderType) ParticleRenderType(String name, RenderType renderType, boolean translucent) Creates an instance of aParticleRenderTyperecord 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.name()Returns the value of thenamerecord component.Returns the value of therenderTyperecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetranslucentrecord component.
-
Field Details
-
name
The field for thenamerecord component. -
renderType
The field for therenderTyperecord component. -
translucent
private final boolean translucentThe field for thetranslucentrecord component. -
TERRAIN_SHEET
-
PARTICLE_SHEET_OPAQUE
-
PARTICLE_SHEET_TRANSLUCENT
-
CUSTOM
-
NO_RENDER
-
-
Constructor Details
-
ParticleRenderType
-
ParticleRenderType
Creates an instance of aParticleRenderTyperecord class.- Parameters:
name- the value for thenamerecord componentrenderType- the value for therenderTyperecord componenttranslucent- the value for thetranslucentrecord component
-
-
Method Details
-
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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
renderType
Returns the value of therenderTyperecord component.- Returns:
- the value of the
renderTyperecord component
-
translucent
public boolean translucent()Returns the value of thetranslucentrecord component.- Returns:
- the value of the
translucentrecord component
-