diff --git a/mappings/net/minecraft/state/property/BooleanProperty.mapping b/mappings/net/minecraft/state/property/BooleanProperty.mapping index 44860cf7fb..cca2a7c935 100644 --- a/mappings/net/minecraft/state/property/BooleanProperty.mapping +++ b/mappings/net/minecraft/state/property/BooleanProperty.mapping @@ -1,6 +1,13 @@ CLASS net/minecraft/class_2746 net/minecraft/state/property/BooleanProperty + COMMENT Represents a property that has boolean values. + COMMENT + COMMENT
See {@link net.minecraft.state.property.Properties} for example
+ COMMENT usages.
FIELD field_12575 values Lcom/google/common/collect/ImmutableSet;
METHOD See {@link net.minecraft.state.property.Properties} for example
+ COMMENT usages.
METHOD Notes on the enum class:
+ COMMENT See {@link net.minecraft.state.property.Properties} for example
+ COMMENT usages.
FIELD field_12595 values Lcom/google/common/collect/ImmutableSet;
FIELD field_12596 byName Ljava/util/Map;
METHOD See notes on the enum class.
+ COMMENT
+ COMMENT @throws IllegalArgumentException if multiple values have the same name
+ COMMENT
+ COMMENT @see #of(String, Class)
ARG 0 name
- COMMENT the name of this property
+ COMMENT the name of the property; see {@linkplain Property#name the note on the
+ COMMENT name}
ARG 1 type
- COMMENT the type this property contains
+ COMMENT the type of the values the property contains
ARG 2 values
- COMMENT the values this property could contain
+ COMMENT the values the property contains; required to have 2 or more values
METHOD method_11848 of (Ljava/lang/String;Ljava/lang/Class;Ljava/util/function/Predicate;)Lnet/minecraft/class_2754;
- COMMENT Creates an enum property.
+ COMMENT Creates an enum property with the values allowed by the given filter.
+ COMMENT
+ COMMENT See notes on the enum class.
+ COMMENT
+ COMMENT @throws IllegalArgumentException if multiple values have the same name
+ COMMENT
+ COMMENT @see #of(String, Class)
ARG 0 name
- COMMENT the name of this property
+ COMMENT the name of the property; see {@linkplain Property#name the note on the
+ COMMENT name}
ARG 1 type
- COMMENT the type this property contains
+ COMMENT the type of the values the property contains
ARG 2 filter
- COMMENT a filter that specifies if a value is allowed
+ COMMENT the filter which specifies if a value is allowed; required to allow 2
+ COMMENT or more values
METHOD method_11849 of (Ljava/lang/String;Ljava/lang/Class;[Ljava/lang/Enum;)Lnet/minecraft/class_2754;
+ COMMENT Creates an enum property with the given values.
+ COMMENT
+ COMMENT See notes on the enum class.
+ COMMENT
+ COMMENT @throws IllegalArgumentException if multiple values have the same name
+ COMMENT
+ COMMENT @see #of(String, Class)
ARG 0 name
+ COMMENT the name of the property; see {@linkplain Property#name the note on the
+ COMMENT name}
ARG 1 type
+ COMMENT the type of the values the property contains
ARG 2 values
+ COMMENT the values the property contains; required to have 2 or more values
METHOD method_11850 of (Ljava/lang/String;Ljava/lang/Class;)Lnet/minecraft/class_2754;
- COMMENT Creates an enum property.
+ COMMENT Creates an enum property with all values of the given enum class.
+ COMMENT
+ COMMENT See notes on the enum class.
+ COMMENT
+ COMMENT @throws IllegalArgumentException if multiple values have the same name
ARG 0 name
- COMMENT the name of this property
+ COMMENT the name of the property; see {@linkplain Property#name the note on the
+ COMMENT name}
ARG 1 type
- COMMENT the type this property contains
+ COMMENT the type of the values the property contains
diff --git a/mappings/net/minecraft/state/property/IntProperty.mapping b/mappings/net/minecraft/state/property/IntProperty.mapping
index 5f6902a8ee..1ab957b3c5 100644
--- a/mappings/net/minecraft/state/property/IntProperty.mapping
+++ b/mappings/net/minecraft/state/property/IntProperty.mapping
@@ -1,4 +1,8 @@
CLASS net/minecraft/class_2758 net/minecraft/state/property/IntProperty
+ COMMENT Represents a property that has integer values.
+ COMMENT
+ COMMENT See {@link net.minecraft.state.property.Properties} for example
+ COMMENT usages.
FIELD field_12614 values Lcom/google/common/collect/ImmutableSet;
METHOD {@code min} must be non-negative and {@code max} must be greater than {@code min}.
+ COMMENT Note that this method computes all possible values.
COMMENT
- COMMENT Note that this method takes O({@code max} - {@code min}) time as it computes all possible values during instantiation.
+ COMMENT @throws IllegalArgumentException if {@code 0 <= min < max} is not
+ COMMENT satisfied
ARG 0 name
- COMMENT the name of the property
+ COMMENT the name of the property; see {@linkplain Property#name the note on the
+ COMMENT name}
ARG 1 min
- COMMENT the minimum value the property can take
+ COMMENT the minimum value the property contains
ARG 2 max
- COMMENT the maximum value the property can take
+ COMMENT the maximum value the property contains
diff --git a/mappings/net/minecraft/state/property/Property.mapping b/mappings/net/minecraft/state/property/Property.mapping
index c51ba6ec1c..793dc5e93a 100644
--- a/mappings/net/minecraft/state/property/Property.mapping
+++ b/mappings/net/minecraft/state/property/Property.mapping
@@ -1,6 +1,13 @@
CLASS net/minecraft/class_2769 net/minecraft/state/property/Property
FIELD field_24742 type Ljava/lang/Class;
FIELD field_24743 name Ljava/lang/String;
+ COMMENT The name of this property.
+ COMMENT
+ COMMENT Note that the name is required to match the {@linkplain
+ COMMENT net.minecraft.state.StateManager#VALID_NAME_PATTERN valid name pattern}.
+ COMMENT Otherwise, {@link IllegalArgumentException} will be thrown during the
+ COMMENT {@linkplain net.minecraft.state.StateManager.Builder#validate(Property)
+ COMMENT validation of a property}.
FIELD field_24744 hashCodeCache Ljava/lang/Integer;
FIELD field_24745 codec Lcom/mojang/serialization/Codec;
FIELD field_25670 valueCodec Lcom/mojang/serialization/Codec;
@@ -11,13 +18,16 @@ CLASS net/minecraft/class_2769 net/minecraft/state/property/Property
ARG 1 o
METHOD method_11799 computeHashCode ()I
METHOD method_11898 getValues ()Ljava/util/Collection;
- COMMENT Returns all possible values the property can take.
+ COMMENT Returns all possible values of this property.
METHOD method_11899 getName ()Ljava/lang/String;
+ COMMENT Returns the name of this property.
METHOD method_11900 parse (Ljava/lang/String;)Ljava/util/Optional;
ARG 1 name
METHOD method_11901 name (Ljava/lang/Comparable;)Ljava/lang/String;
+ COMMENT Returns the name of the given value of this property.
ARG 1 value
METHOD method_11902 getType ()Ljava/lang/Class;
+ COMMENT Returns the type of the values of this property.
METHOD method_28504 (Ljava/lang/String;)Lcom/mojang/serialization/DataResult;
ARG 1 value
METHOD method_30041 createValue (Lnet/minecraft/class_2688;)Lnet/minecraft/class_2769$class_4933;
+ COMMENT
+ COMMENT
+ COMMENT