Package net.minecraft.client.particle
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 named net/minecraft/client/particle/ParticleTextureSheetintermediary net/minecraft/class_3999official gbi
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ParticleTextureSheetstatic final ParticleTextureSheetstatic final ParticleTextureSheetstatic final ParticleTextureSheetstatic final ParticleTextureSheetstatic final ParticleTextureSheet -
Method Summary
Modifier and TypeMethodDescriptionvoidbegin(BufferBuilder builder, TextureManager textureManager) Called to set up OpenGL render state for drawing particles of a given type.voiddraw(Tessellator tessellator) Called after all particles of a sheet have finished drawing.
-
Field Details
-
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 aLgbi;a:Lgbi;
-
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 bLgbi;b:Lgbi;
-
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 cLgbi;c:Lgbi;
-
PARTICLE_SHEET_LIT
- Mappings:
Namespace Name Mixin selector named PARTICLE_SHEET_LITLnet/minecraft/client/particle/ParticleTextureSheet;PARTICLE_SHEET_LIT:Lnet/minecraft/client/particle/ParticleTextureSheet;intermediary field_17830Lnet/minecraft/class_3999;field_17830:Lnet/minecraft/class_3999;official dLgbi;d:Lgbi;
-
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 eLgbi;e:Lgbi;
-
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 fLgbi;f:Lgbi;
-
-
Method Details
-
begin
Called to set up OpenGL render state for drawing particles of a given type.- Parameters:
builder- the buffer particles will draw to inParticle.buildGeometry(VertexConsumer, Camera, float)textureManager- texture loading context- Mappings:
Namespace Name Mixin selector named beginLnet/minecraft/client/particle/ParticleTextureSheet;begin(Lnet/minecraft/client/render/BufferBuilder;Lnet/minecraft/client/texture/TextureManager;)Vintermediary method_18130Lnet/minecraft/class_3999;method_18130(Lnet/minecraft/class_287;Lnet/minecraft/class_1060;)Vofficial aLgbi;a(Lezv;Lgpc;)V
-
draw
Called after all particles of a sheet have finished drawing.- Parameters:
tessellator- theTessellatorall particles in this sheet drew to- Mappings:
Namespace Name Mixin selector named drawLnet/minecraft/client/particle/ParticleTextureSheet;draw(Lnet/minecraft/client/render/Tessellator;)Vintermediary method_18131Lnet/minecraft/class_3999;method_18131(Lnet/minecraft/class_289;)Vofficial aLgbi;a(Lfac;)V
-