Particle and sound classes (#1717)

* Particle and sound classes

* Update ParticleType.mapping
This commit is contained in:
YanisBft 2020-08-27 10:21:13 +02:00 committed by GitHub
parent f16f3a8551
commit 4dc428383a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 31 additions and 12 deletions

View File

@ -1,2 +1,5 @@
CLASS net/minecraft/class_2400 net/minecraft/particle/DefaultParticleType CLASS net/minecraft/class_2400 net/minecraft/particle/DefaultParticleType
FIELD field_11259 PARAMETER_FACTORY Lnet/minecraft/class_2394$class_2395; FIELD field_11259 PARAMETER_FACTORY Lnet/minecraft/class_2394$class_2395;
FIELD field_25127 codec Lcom/mojang/serialization/Codec;
METHOD <init> (Z)V
ARG 1 alwaysShow

View File

@ -1,8 +1,10 @@
CLASS net/minecraft/class_2396 net/minecraft/particle/ParticleType CLASS net/minecraft/class_2396 net/minecraft/particle/ParticleType
FIELD field_11196 shouldAlwaysSpawn Z FIELD field_11196 alwaysShow Z
FIELD field_11197 parametersFactory Lnet/minecraft/class_2394$class_2395; FIELD field_11197 parametersFactory Lnet/minecraft/class_2394$class_2395;
METHOD <init> (ZLnet/minecraft/class_2394$class_2395;)V METHOD <init> (ZLnet/minecraft/class_2394$class_2395;)V
ARG 1 shouldAlwaysShow ARG 1 alwaysShow
COMMENT whether this particle type should appear regardless of {@linkplain GameOptions#particles particle mode}
ARG 2 parametersFactory ARG 2 parametersFactory
METHOD method_10298 getParametersFactory ()Lnet/minecraft/class_2394$class_2395; METHOD method_10298 getParametersFactory ()Lnet/minecraft/class_2394$class_2395;
METHOD method_10299 shouldAlwaysSpawn ()Z METHOD method_10299 shouldAlwaysSpawn ()Z
METHOD method_29138 getCodec ()Lcom/mojang/serialization/Codec;

View File

@ -1,4 +1,5 @@
CLASS net/minecraft/class_2398 net/minecraft/particle/ParticleTypes CLASS net/minecraft/class_2398 net/minecraft/particle/ParticleTypes
FIELD field_25125 TYPE_CODEC Lcom/mojang/serialization/Codec;
METHOD method_10303 register (Ljava/lang/String;Z)Lnet/minecraft/class_2400; METHOD method_10303 register (Ljava/lang/String;Z)Lnet/minecraft/class_2400;
ARG 0 name ARG 0 name
ARG 1 alwaysShow ARG 1 alwaysShow

View File

@ -1,10 +1,11 @@
CLASS net/minecraft/class_4967 net/minecraft/sound/BiomeAdditionsSound CLASS net/minecraft/class_4967 net/minecraft/sound/BiomeAdditionsSound
COMMENT Represents an "additions sound" for a biome. COMMENT Represents an "additions sound" for a biome.
FIELD field_23144 event Lnet/minecraft/class_3414; FIELD field_23144 sound Lnet/minecraft/class_3414;
FIELD field_23145 chance D FIELD field_23145 chance D
FIELD field_24673 CODEC Lcom/mojang/serialization/Codec;
METHOD <init> (Lnet/minecraft/class_3414;D)V METHOD <init> (Lnet/minecraft/class_3414;D)V
ARG 1 event ARG 1 sound
ARG 2 chance ARG 2 chance
METHOD method_26098 getEvent ()Lnet/minecraft/class_3414; METHOD method_26098 getSound ()Lnet/minecraft/class_3414;
METHOD method_26099 getChance ()D METHOD method_26099 getChance ()D
COMMENT Returns the chance of this addition sound to play at any tick. COMMENT Returns the chance of this addition sound to play at any tick.

View File

@ -1,16 +1,16 @@
CLASS net/minecraft/class_4968 net/minecraft/sound/BiomeMoodSound CLASS net/minecraft/class_4968 net/minecraft/sound/BiomeMoodSound
FIELD field_23146 CAVE Lnet/minecraft/class_4968; FIELD field_23146 CAVE Lnet/minecraft/class_4968;
FIELD field_23147 event Lnet/minecraft/class_3414; FIELD field_23147 sound Lnet/minecraft/class_3414;
FIELD field_23148 cultivationTicks I FIELD field_23148 cultivationTicks I
FIELD field_23149 spawnRange I FIELD field_23149 spawnRange I
FIELD field_23150 extraDistance D FIELD field_23150 extraDistance D
FIELD field_24674 CODEC Lcom/mojang/serialization/Codec; FIELD field_24674 CODEC Lcom/mojang/serialization/Codec;
METHOD <init> (Lnet/minecraft/class_3414;IID)V METHOD <init> (Lnet/minecraft/class_3414;IID)V
ARG 1 event ARG 1 sound
ARG 2 cultivationTicks ARG 2 cultivationTicks
ARG 3 spawnRange ARG 3 spawnRange
ARG 4 extraDistance ARG 4 extraDistance
METHOD method_26100 getEvent ()Lnet/minecraft/class_3414; METHOD method_26100 getSound ()Lnet/minecraft/class_3414;
METHOD method_26101 getCultivationTicks ()I METHOD method_26101 getCultivationTicks ()I
COMMENT Returns the ticks it takes for entering the mood environment (a totally COMMENT Returns the ticks it takes for entering the mood environment (a totally
COMMENT dark cave) to playing the mood sound, or the inverse of the per-tick. COMMENT dark cave) to playing the mood sound, or the inverse of the per-tick.

View File

@ -1,6 +1,15 @@
CLASS net/minecraft/class_5195 net/minecraft/sound/MusicSound CLASS net/minecraft/class_5195 net/minecraft/sound/MusicSound
FIELD field_24057 event Lnet/minecraft/class_3414; FIELD field_24057 sound Lnet/minecraft/class_3414;
FIELD field_24058 minDelay I
FIELD field_24059 maxDelay I
FIELD field_24060 replaceCurrentMusic Z
FIELD field_24627 CODEC Lcom/mojang/serialization/Codec; FIELD field_24627 CODEC Lcom/mojang/serialization/Codec;
METHOD <init> (Lnet/minecraft/class_3414;IIZ)V METHOD <init> (Lnet/minecraft/class_3414;IIZ)V
ARG 1 event ARG 1 sound
METHOD method_27279 getEvent ()Lnet/minecraft/class_3414; ARG 2 minDelay
ARG 3 maxDelay
ARG 4 replaceCurrentMusic
METHOD method_27279 getSound ()Lnet/minecraft/class_3414;
METHOD method_27280 getMinDelay ()I
METHOD method_27281 getMaxDelay ()I
METHOD method_27282 shouldReplaceCurrentMusic ()Z

View File

@ -1,6 +1,6 @@
CLASS net/minecraft/class_3419 net/minecraft/sound/SoundCategory CLASS net/minecraft/class_3419 net/minecraft/sound/SoundCategory
FIELD field_15249 name Ljava/lang/String; FIELD field_15249 name Ljava/lang/String;
FIELD field_15257 NAME_MAP Ljava/util/Map; FIELD field_15257 BY_NAME Ljava/util/Map;
METHOD <init> (Ljava/lang/String;ILjava/lang/String;)V METHOD <init> (Ljava/lang/String;ILjava/lang/String;)V
ARG 3 name ARG 3 name
METHOD method_14840 getName ()Ljava/lang/String; METHOD method_14840 getName ()Ljava/lang/String;

View File

@ -1,5 +1,8 @@
CLASS net/minecraft/class_3414 net/minecraft/sound/SoundEvent CLASS net/minecraft/class_3414 net/minecraft/sound/SoundEvent
FIELD field_14533 id Lnet/minecraft/class_2960; FIELD field_14533 id Lnet/minecraft/class_2960;
FIELD field_24628 CODEC Lcom/mojang/serialization/Codec;
METHOD <init> (Lnet/minecraft/class_2960;)V METHOD <init> (Lnet/minecraft/class_2960;)V
ARG 1 id ARG 1 id
METHOD method_14833 getId ()Lnet/minecraft/class_2960; METHOD method_14833 getId ()Lnet/minecraft/class_2960;
METHOD method_28132 (Lnet/minecraft/class_3414;)Lnet/minecraft/class_2960;
ARG 0 soundEvent