mirror of https://github.com/FabricMC/yarn.git
Add Javadoc for property classes (#1789)
This commit is contained in:
parent
cd6d0e6ccc
commit
591ab2cc4f
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue