Add Javadoc for property classes (#1789)

This commit is contained in:
enbrain 2020-10-11 23:59:33 +09:00 committed by GitHub
parent cd6d0e6ccc
commit 591ab2cc4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -5,6 +5,14 @@ CLASS net/minecraft/class_2758 net/minecraft/state/property/IntProperty
ARG 2 min
ARG 3 max
METHOD method_11867 of (Ljava/lang/String;II)Lnet/minecraft/class_2758;
COMMENT Creates an integer property.
COMMENT
COMMENT <p>{@code min} must be non-negative and {@code max} must be greater than {@code min}.
COMMENT
COMMENT <p>Note that this method takes O({@code max} - {@code min}) time as it computes all possible values during instantiation.
ARG 0 name
COMMENT the name of the property
ARG 1 min
COMMENT the minimum value the property can take
ARG 2 max
COMMENT the maximum value the property can take

View File

@ -9,6 +9,7 @@ CLASS net/minecraft/class_2769 net/minecraft/state/property/Property
ARG 2 type
METHOD method_11799 computeHashCode ()I
METHOD method_11898 getValues ()Ljava/util/Collection;
COMMENT Returns all possible values the property can take.
METHOD method_11899 getName ()Ljava/lang/String;
METHOD method_11900 parse (Ljava/lang/String;)Ljava/util/Optional;
ARG 1 name