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 ParticleRenderType
private final String
The field for thename
record component.static final ParticleRenderType
static final ParticleRenderType
static final ParticleRenderType
private final RenderType
The field for therenderType
record component.static final ParticleRenderType
private final boolean
The field for thetranslucent
record component. -
Constructor Summary
ConstructorsConstructorDescriptionParticleRenderType
(String name, RenderType renderType) ParticleRenderType
(String name, RenderType renderType, boolean translucent) Creates an instance of aParticleRenderType
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.name()
Returns the value of thename
record component.Returns the value of therenderType
record component.final String
toString()
Returns a string representation of this record class.boolean
Returns the value of thetranslucent
record component.
-
Field Details
-
name
The field for thename
record component. -
renderType
The field for therenderType
record component. -
translucent
private final boolean translucentThe field for thetranslucent
record component. -
TERRAIN_SHEET
-
PARTICLE_SHEET_OPAQUE
-
PARTICLE_SHEET_TRANSLUCENT
-
CUSTOM
-
NO_RENDER
-
-
Constructor Details
-
ParticleRenderType
-
ParticleRenderType
Creates an instance of aParticleRenderType
record class.- Parameters:
name
- the value for thename
record componentrenderType
- the value for therenderType
record componenttranslucent
- the value for thetranslucent
record 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 thename
record component.- Returns:
- the value of the
name
record component
-
renderType
Returns the value of therenderType
record component.- Returns:
- the value of the
renderType
record component
-
translucent
public boolean translucent()Returns the value of thetranslucent
record component.- Returns:
- the value of the
translucent
record component
-