mirror of https://github.com/FabricMC/yarn.git
Particle group (#2176)
* Particle group Signed-off-by: liach <liach@users.noreply.github.com> * Update mappings/net/minecraft/client/particle/ParticleGroup.mapping Co-authored-by: YanisBft <doublecraft.official@gmail.com> Co-authored-by: liach <liach@users.noreply.github.com> Co-authored-by: YanisBft <doublecraft.official@gmail.com>
This commit is contained in:
parent
429408355a
commit
e80f2e3513
|
@ -77,6 +77,12 @@ CLASS net/minecraft/class_703 net/minecraft/client/particle/Particle
|
|||
METHOD method_3086 isAlive ()Z
|
||||
METHOD method_3087 scale (F)Lnet/minecraft/class_703;
|
||||
ARG 1 scale
|
||||
METHOD method_34019 getGroup ()Ljava/util/Optional;
|
||||
COMMENT Returns the optional group that this particle belongs to.
|
||||
COMMENT
|
||||
COMMENT <p>A particle group restricts the number of particles from the group that
|
||||
COMMENT can be rendered in a client world. If the particle does not have a group,
|
||||
COMMENT it is not restricted.
|
||||
METHOD method_34753 setVelocity (DDD)V
|
||||
ARG 1 velocityX
|
||||
ARG 3 velocityY
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
CLASS net/minecraft/class_5878 net/minecraft/client/particle/ParticleGroup
|
||||
COMMENT A group for particles. This group imposes a limit on the numbers of
|
||||
COMMENT particles from this group rendered in a particle manager. Additional
|
||||
COMMENT particles will be discarded when attempted to be rendered.
|
||||
COMMENT
|
||||
COMMENT @see Particle#getGroup()
|
||||
FIELD field_29077 SPORE_BLOSSOM_AIR Lnet/minecraft/class_5878;
|
||||
COMMENT The group for the {@linkplain net.minecraft.particle.ParticleTypes#SPORE_BLOSSOM_AIR
|
||||
COMMENT minecraft:spore_blossom_air} particle type. It has a count limit of 1000.
|
||||
FIELD field_29078 maxCount I
|
||||
METHOD <init> (I)V
|
||||
COMMENT Creates a particle group with a custom {@code max} particle count.
|
||||
ARG 1 maxCount
|
||||
COMMENT the maximum number of a type of particle allowed
|
||||
METHOD method_34045 getMaxCount ()I
|
||||
COMMENT Returns the maximum count of particles from this group that can be
|
||||
COMMENT rendered in a particle manager.
|
|
@ -2,6 +2,7 @@ CLASS net/minecraft/class_702 net/minecraft/client/particle/ParticleManager
|
|||
FIELD field_17820 PARTICLE_TEXTURE_SHEETS Ljava/util/List;
|
||||
FIELD field_18300 spriteAwareFactories Ljava/util/Map;
|
||||
FIELD field_18301 particleAtlasTexture Lnet/minecraft/class_1059;
|
||||
FIELD field_29072 groupCounts Lit/unimi/dsi/fastutil/objects/Object2IntOpenHashMap;
|
||||
FIELD field_3830 particles Ljava/util/Map;
|
||||
FIELD field_3831 textureManager Lnet/minecraft/class_1060;
|
||||
FIELD field_3832 random Ljava/util/Random;
|
||||
|
@ -12,6 +13,9 @@ CLASS net/minecraft/class_702 net/minecraft/client/particle/ParticleManager
|
|||
METHOD <init> (Lnet/minecraft/class_638;Lnet/minecraft/class_1060;)V
|
||||
ARG 1 world
|
||||
ARG 2 textureManager
|
||||
METHOD method_18126 (Lnet/minecraft/class_3999;Ljava/util/Queue;)V
|
||||
ARG 1 sheet
|
||||
ARG 2 queue
|
||||
METHOD method_18829 clearAtlas ()V
|
||||
METHOD method_18834 registerFactory (Lnet/minecraft/class_2396;Lnet/minecraft/class_702$class_4091;)V
|
||||
ARG 1 type
|
||||
|
@ -29,6 +33,9 @@ CLASS net/minecraft/class_702 net/minecraft/client/particle/ParticleManager
|
|||
ARG 1 pos
|
||||
ARG 2 state
|
||||
METHOD method_3048 tickParticles (Ljava/util/Collection;)V
|
||||
COMMENT Ticks all particles belonging to the same texture sheet.
|
||||
ARG 1 particles
|
||||
COMMENT a collection of particles from the same sheet
|
||||
METHOD method_3049 renderParticles (Lnet/minecraft/class_4587;Lnet/minecraft/class_4597$class_4598;Lnet/minecraft/class_765;Lnet/minecraft/class_4184;F)V
|
||||
ARG 1 matrices
|
||||
ARG 4 camera
|
||||
|
@ -65,6 +72,15 @@ CLASS net/minecraft/class_702 net/minecraft/client/particle/ParticleManager
|
|||
ARG 1 entity
|
||||
ARG 2 parameters
|
||||
METHOD method_3062 registerDefaultFactories ()V
|
||||
METHOD method_34021 canAdd (Lnet/minecraft/class_5878;)Z
|
||||
COMMENT Returns if another particle from {@code group} can be rendered by this
|
||||
COMMENT manager.
|
||||
ARG 1 group
|
||||
METHOD method_34022 addTo (Lnet/minecraft/class_5878;I)V
|
||||
ARG 1 group
|
||||
ARG 2 count
|
||||
METHOD method_34023 (Lnet/minecraft/class_5878;)V
|
||||
ARG 1 group
|
||||
CLASS class_4090 SimpleSpriteProvider
|
||||
FIELD field_18303 sprites Ljava/util/List;
|
||||
METHOD method_18838 setSprites (Ljava/util/List;)V
|
||||
|
|
Loading…
Reference in New Issue