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.

invalid reference
#begin(Tessellator, TextureManager)
is first called to set up render state.
Mappings:
Namespace Name
named net/minecraft/client/particle/ParticleTextureSheet
intermediary net/minecraft/class_3999
official gjm
named name
intermediary comp_3340
official f
named renderType
intermediary comp_3341
official g
  • Field Details Link icon

    • name Link icon

      private final String name
      The field for the name record component.
    • renderType Link icon

      @Nullable private final @Nullable RenderLayer renderType
      The field for the renderType record component.
    • TERRAIN_SHEET Link icon

      public static final ParticleTextureSheet TERRAIN_SHEET
      Mappings:
      Namespace Name Mixin selector
      named TERRAIN_SHEET Lnet/minecraft/client/particle/ParticleTextureSheet;TERRAIN_SHEET:Lnet/minecraft/client/particle/ParticleTextureSheet;
      intermediary field_17827 Lnet/minecraft/class_3999;field_17827:Lnet/minecraft/class_3999;
      official a Lgjm;a:Lgjm;
    • PARTICLE_SHEET_OPAQUE Link icon

      public static final ParticleTextureSheet PARTICLE_SHEET_OPAQUE
      Mappings:
      Namespace Name Mixin selector
      named PARTICLE_SHEET_OPAQUE Lnet/minecraft/client/particle/ParticleTextureSheet;PARTICLE_SHEET_OPAQUE:Lnet/minecraft/client/particle/ParticleTextureSheet;
      intermediary field_17828 Lnet/minecraft/class_3999;field_17828:Lnet/minecraft/class_3999;
      official b Lgjm;b:Lgjm;
    • PARTICLE_SHEET_TRANSLUCENT Link icon

      public static final ParticleTextureSheet PARTICLE_SHEET_TRANSLUCENT
      Mappings:
      Namespace Name Mixin selector
      named PARTICLE_SHEET_TRANSLUCENT Lnet/minecraft/client/particle/ParticleTextureSheet;PARTICLE_SHEET_TRANSLUCENT:Lnet/minecraft/client/particle/ParticleTextureSheet;
      intermediary field_17829 Lnet/minecraft/class_3999;field_17829:Lnet/minecraft/class_3999;
      official c Lgjm;c:Lgjm;
    • CUSTOM Link icon

      public static final ParticleTextureSheet CUSTOM
      Mappings:
      Namespace Name Mixin selector
      named CUSTOM Lnet/minecraft/client/particle/ParticleTextureSheet;CUSTOM:Lnet/minecraft/client/particle/ParticleTextureSheet;
      intermediary field_17831 Lnet/minecraft/class_3999;field_17831:Lnet/minecraft/class_3999;
      official d Lgjm;d:Lgjm;
    • NO_RENDER Link icon

      public static final ParticleTextureSheet NO_RENDER
      Mappings:
      Namespace Name Mixin selector
      named NO_RENDER Lnet/minecraft/client/particle/ParticleTextureSheet;NO_RENDER:Lnet/minecraft/client/particle/ParticleTextureSheet;
      intermediary field_17832 Lnet/minecraft/class_3999;field_17832:Lnet/minecraft/class_3999;
      official e Lgjm;e:Lgjm;
  • Constructor Details Link icon

  • Method Details Link icon

    • toString Link icon

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode Link icon

      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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals Link icon

      public final boolean equals(Object object)
      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 Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • name Link icon

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • renderType Link icon

      @Nullable public @Nullable RenderLayer renderType()
      Returns the value of the renderType record component.
      Returns:
      the value of the renderType record component