Map some 20w15a new classes (entities, enchantments) (#1269)

* Map some 20w15a new classes (entities, enchantments)

Signed-off-by: liach <liach@users.noreply.github.com>

* Some javadocs

* Just refer by id

Signed-off-by: liach <liach@users.noreply.github.com>

* Fix bad class name

Signed-off-by: liach <liach@users.noreply.github.com>

Co-authored-by: liach <liach@users.noreply.github.com>
This commit is contained in:
liach 2020-04-08 15:48:41 -05:00 committed by GitHub
parent cf0ef0a6bd
commit 159546e8cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 56 additions and 6 deletions

View File

@ -0,0 +1,7 @@
CLASS net/minecraft/class_5168 net/minecraft/block/dispenser/ShearsDispenserBehavior
METHOD method_27162 tryShearBlock (Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Z
ARG 0 world
ARG 1 pos
METHOD method_27163 tryShearEntity (Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Z
ARG 0 world
ARG 1 pos

View File

@ -1,4 +0,0 @@
CLASS net/minecraft/class_5146
METHOD method_6576 setSaddled (Lnet/minecraft/class_3419;)V
METHOD method_6725 isSaddled ()Z
METHOD method_6765 canBeSaddled ()Z

View File

@ -1,2 +0,0 @@
CLASS net/minecraft/class_5147
METHOD method_6636 dropItems (Lnet/minecraft/class_3419;)V

View File

@ -0,0 +1,2 @@
CLASS net/minecraft/class_5167 net/minecraft/client/render/entity/feature/HorseMarkingFeatureRenderer
FIELD field_23938 TEXTURES Ljava/util/Map;

View File

@ -0,0 +1,7 @@
CLASS net/minecraft/class_5146 net/minecraft/entity/Saddleable
COMMENT Represents an entity that can be saddled, either by a player or a
COMMENT dispenser.
METHOD method_6576 saddle (Lnet/minecraft/class_3419;)V
ARG 1 sound
METHOD method_6725 isSaddled ()Z
METHOD method_6765 canBeSaddled ()Z

View File

@ -0,0 +1,6 @@
CLASS net/minecraft/class_5147 net/minecraft/entity/Shearable
COMMENT Represents an entity that can be sheared, either by a player or a
COMMENT dispenser.
METHOD method_27072 isShearable ()Z
METHOD method_6636 sheared (Lnet/minecraft/class_3419;)V
ARG 1 shearedSoundCategory

View File

@ -0,0 +1,8 @@
CLASS net/minecraft/class_5149 net/minecraft/entity/passive/HorseColor
FIELD field_23823 VALUES [Lnet/minecraft/class_5149;
FIELD field_23824 index I
METHOD <init> (Ljava/lang/String;II)V
ARG 3 index
METHOD method_27082 getIndex ()I
METHOD method_27083 byIndex (I)Lnet/minecraft/class_5149;
ARG 0 index

View File

@ -3,6 +3,11 @@ CLASS net/minecraft/class_1498 net/minecraft/entity/passive/HorseEntity
FIELD field_6990 VARIANT Lnet/minecraft/class_2940;
METHOD method_18445 equipArmor (Lnet/minecraft/class_1799;)V
ARG 1 stack
METHOD method_27076 setVariant (Lnet/minecraft/class_5149;Lnet/minecraft/class_5148;)V
ARG 1 color
ARG 2 marking
METHOD method_27077 getColor ()Lnet/minecraft/class_5149;
METHOD method_27078 getMarking ()Lnet/minecraft/class_5148;
METHOD method_6783 setVariant (I)V
ARG 1 variant
METHOD method_6786 getArmorType ()Lnet/minecraft/class_1799;

View File

@ -0,0 +1,8 @@
CLASS net/minecraft/class_5148 net/minecraft/entity/passive/HorseMarking
FIELD field_23813 VALUES [Lnet/minecraft/class_5148;
FIELD field_23814 index I
METHOD <init> (Ljava/lang/String;II)V
ARG 3 index
METHOD method_27079 getIndex ()I
METHOD method_27080 byIndex (I)Lnet/minecraft/class_5148;
ARG 0 index

View File

@ -1,5 +1,6 @@
CLASS net/minecraft/class_1738 net/minecraft/item/ArmorItem
FIELD field_21976 knockbackResistance F
FIELD field_23741 attributeModifiers Lcom/google/common/collect/Multimap;
FIELD field_7876 MODIFIERS [Ljava/util/UUID;
FIELD field_7877 toughness F
FIELD field_7878 protection I

View File

@ -0,0 +1,2 @@
CLASS net/minecraft/class_5150 net/minecraft/item/Vanishable
COMMENT Represents a type of item that can have the {@code minecraft:vanishing_curse} enchantment.

View File

@ -0,0 +1,4 @@
CLASS net/minecraft/class_5151 net/minecraft/item/Wearable
COMMENT Represents a type of item that is wearable in an armor equipment slot.
COMMENT
COMMENT <p>This type of item can be targeted by the {@code minecraft:binding_curse} enchantment.</p>

View File

@ -19,6 +19,12 @@ CLASS net/minecraft/class_156 net/minecraft/util/Util
METHOD method_22321 getInnermostMessage (Ljava/lang/Throwable;)Ljava/lang/String;
ARG 0 t
METHOD method_24155 throwUnchecked (Ljava/lang/Throwable;)V
METHOD method_27172 getRandom ([ILjava/util/Random;)I
ARG 0 array
ARG 1 random
METHOD method_27173 getRandom ([Ljava/lang/Object;Ljava/util/Random;)Ljava/lang/Object;
ARG 0 array
ARG 1 random
METHOD method_645 previous (Ljava/lang/Iterable;Ljava/lang/Object;)Ljava/lang/Object;
METHOD method_646 createTranslationKey (Ljava/lang/String;Lnet/minecraft/class_2960;)Ljava/lang/String;
ARG 0 type