Interface ParticleTextureSheet


@Environment(CLIENT) public interface ParticleTextureSheet
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. begin(BufferBuilder, TextureManager) is first called to set up render state, and after each particle has emitted geometry, draw(Tessellator) is called to draw to a target buffer.

Mappings:
Namespace Name
official fbr
intermediary net/minecraft/class_3999
named net/minecraft/client/particle/ParticleTextureSheet
  • Field Details

    • TERRAIN_SHEET

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

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

      static final ParticleTextureSheet PARTICLE_SHEET_TRANSLUCENT
      Mappings:
      Namespace Name Mixin selector
      official c Lfbr;c:Lfbr;
      intermediary field_17829 Lnet/minecraft/class_3999;field_17829:Lnet/minecraft/class_3999;
      named PARTICLE_SHEET_TRANSLUCENT Lnet/minecraft/client/particle/ParticleTextureSheet;PARTICLE_SHEET_TRANSLUCENT:Lnet/minecraft/client/particle/ParticleTextureSheet;
    • PARTICLE_SHEET_LIT

      static final ParticleTextureSheet PARTICLE_SHEET_LIT
      Mappings:
      Namespace Name Mixin selector
      official d Lfbr;d:Lfbr;
      intermediary field_17830 Lnet/minecraft/class_3999;field_17830:Lnet/minecraft/class_3999;
      named PARTICLE_SHEET_LIT Lnet/minecraft/client/particle/ParticleTextureSheet;PARTICLE_SHEET_LIT:Lnet/minecraft/client/particle/ParticleTextureSheet;
    • CUSTOM

      static final ParticleTextureSheet CUSTOM
      Mappings:
      Namespace Name Mixin selector
      official e Lfbr;e:Lfbr;
      intermediary field_17831 Lnet/minecraft/class_3999;field_17831:Lnet/minecraft/class_3999;
      named CUSTOM Lnet/minecraft/client/particle/ParticleTextureSheet;CUSTOM:Lnet/minecraft/client/particle/ParticleTextureSheet;
    • NO_RENDER

      static final ParticleTextureSheet NO_RENDER
      Mappings:
      Namespace Name Mixin selector
      official f Lfbr;f:Lfbr;
      intermediary field_17832 Lnet/minecraft/class_3999;field_17832:Lnet/minecraft/class_3999;
      named NO_RENDER Lnet/minecraft/client/particle/ParticleTextureSheet;NO_RENDER:Lnet/minecraft/client/particle/ParticleTextureSheet;
  • Method Details

    • begin

      void begin(BufferBuilder builder, TextureManager textureManager)
      Called to set up OpenGL render state for drawing particles of a given type.
      Parameters:
      builder - the buffer particles will draw to in Particle.buildGeometry(VertexConsumer, Camera, float)
      textureManager - texture loading context
      Mappings:
      Namespace Name Mixin selector
      official a Lfbr;a(Ledy;Lfom;)V
      intermediary method_18130 Lnet/minecraft/class_3999;method_18130(Lnet/minecraft/class_287;Lnet/minecraft/class_1060;)V
      named begin Lnet/minecraft/client/particle/ParticleTextureSheet;begin(Lnet/minecraft/client/render/BufferBuilder;Lnet/minecraft/client/texture/TextureManager;)V
    • draw

      void draw(Tessellator tessellator)
      Called after all particles of a sheet have finished drawing.
      Parameters:
      tessellator - the Tessellator all particles in this sheet drew to
      Mappings:
      Namespace Name Mixin selector
      official a Lfbr;a(Leef;)V
      intermediary method_18131 Lnet/minecraft/class_3999;method_18131(Lnet/minecraft/class_289;)V
      named draw Lnet/minecraft/client/particle/ParticleTextureSheet;draw(Lnet/minecraft/client/render/Tessellator;)V