Package net.minecraft.client.particle
Record Class ParticleTextureSheet
java.lang.Object
java.lang.Record
net.minecraft.client.particle.ParticleTextureSheet
- Record Components:
name-renderType-
@Environment(CLIENT)
public record ParticleTextureSheet(String name, @Nullable RenderLayer renderType)
extends Record
Defines rendering setup and draw logic for particles based on their requirements for depth checking, textures, and transparency.
Each Particle returns a sheet in Particle.getType().
When particles are rendered, each sheet will be drawn once.
- Mappings:
Namespace Name named net/minecraft/client/particle/ParticleTextureSheetintermediary net/minecraft/class_3999official gpbnamed nameintermediary comp_3340official fnamed renderTypeintermediary comp_3341official g
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ParticleTextureSheetprivate final StringThe field for thenamerecord component.static final ParticleTextureSheetstatic final ParticleTextureSheetstatic final ParticleTextureSheetprivate final @Nullable RenderLayerThe field for therenderTyperecord component.static final ParticleTextureSheet -
Constructor Summary
Constructors -
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.
-
Field Details
-
name
The field for thenamerecord component. -
renderType
The field for therenderTyperecord component. -
TERRAIN_SHEET
- Mappings:
Namespace Name Mixin selector named TERRAIN_SHEETLnet/minecraft/client/particle/ParticleTextureSheet;TERRAIN_SHEET:Lnet/minecraft/client/particle/ParticleTextureSheet;intermediary field_17827Lnet/minecraft/class_3999;field_17827:Lnet/minecraft/class_3999;official aLgpb;a:Lgpb;
-
PARTICLE_SHEET_OPAQUE
- Mappings:
Namespace Name Mixin selector named PARTICLE_SHEET_OPAQUELnet/minecraft/client/particle/ParticleTextureSheet;PARTICLE_SHEET_OPAQUE:Lnet/minecraft/client/particle/ParticleTextureSheet;intermediary field_17828Lnet/minecraft/class_3999;field_17828:Lnet/minecraft/class_3999;official bLgpb;b:Lgpb;
-
PARTICLE_SHEET_TRANSLUCENT
- Mappings:
Namespace Name Mixin selector named PARTICLE_SHEET_TRANSLUCENTLnet/minecraft/client/particle/ParticleTextureSheet;PARTICLE_SHEET_TRANSLUCENT:Lnet/minecraft/client/particle/ParticleTextureSheet;intermediary field_17829Lnet/minecraft/class_3999;field_17829:Lnet/minecraft/class_3999;official cLgpb;c:Lgpb;
-
CUSTOM
- Mappings:
Namespace Name Mixin selector named CUSTOMLnet/minecraft/client/particle/ParticleTextureSheet;CUSTOM:Lnet/minecraft/client/particle/ParticleTextureSheet;intermediary field_17831Lnet/minecraft/class_3999;field_17831:Lnet/minecraft/class_3999;official dLgpb;d:Lgpb;
-
NO_RENDER
- Mappings:
Namespace Name Mixin selector named NO_RENDERLnet/minecraft/client/particle/ParticleTextureSheet;NO_RENDER:Lnet/minecraft/client/particle/ParticleTextureSheet;intermediary field_17832Lnet/minecraft/class_3999;field_17832:Lnet/minecraft/class_3999;official eLgpb;e:Lgpb;
-
-
Constructor Details
-
ParticleTextureSheet
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
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
-