Package net.minecraft.state
Class State<O,S>
java.lang.Object
net.minecraft.state.State<O,S>
- Direct Known Subclasses:
AbstractBlock.AbstractBlockState,FluidState
- Mappings:
Namespace Name named net/minecraft/state/Stateintermediary net/minecraft/class_2688official ebs
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.mojang.serialization.MapCodec<S> static final Stringprotected final Ostatic final Stringprivate static final Function<Map.Entry<Property<?>, Comparable<?>>, String> private final Reference2ObjectArrayMap<Property<?>, Comparable<?>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedState(O owner, Reference2ObjectArrayMap<Property<?>, Comparable<?>> propertyMap, com.mojang.serialization.MapCodec<S> codec) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected static <O,S extends State<O, S>>
com.mojang.serialization.Codec<S> createCodec(com.mojang.serialization.Codec<O> codec, Function<O, S> ownerToStateFunction) voidcreateWithMap(Map<Map<Property<?>, Comparable<?>>, S> states) <T extends Comparable<T>>
Sfinal boolean<T extends Comparable<T>>
T<T extends Comparable<T>>
TMap<Property<?>, Comparable<?>> protected static <T> Tprivate <T extends Comparable<T>>
TgetNullable(Property<T> property) <T extends Comparable<T>>
Optional<T> getOrEmpty(Property<T> property) Collection<Property<?>> inthashCode()private Map<Property<?>, Comparable<?>> toMapWith(Property<?> property, Comparable<?> value) toString()<T extends Comparable<T>,V extends T>
Sprivate <T extends Comparable<T>,V extends T>
Swith(Property<T> property, V newValue, Comparable<?> oldValue) <T extends Comparable<T>,V extends T>
SwithIfExists(Property<T> property, V value)
-
Field Details
-
NAME
- See Also:
- Mappings:
Namespace Name Mixin selector named NAMELnet/minecraft/state/State;NAME:Ljava/lang/String;intermediary field_31385Lnet/minecraft/class_2688;field_31385:Ljava/lang/String;official bLebs;b:Ljava/lang/String;
-
PROPERTIES
- See Also:
- Mappings:
Namespace Name Mixin selector named PROPERTIESLnet/minecraft/state/State;PROPERTIES:Ljava/lang/String;intermediary field_31386Lnet/minecraft/class_2688;field_31386:Ljava/lang/String;official cLebs;c:Ljava/lang/String;
-
PROPERTY_MAP_PRINTER
- Mappings:
Namespace Name Mixin selector named PROPERTY_MAP_PRINTERLnet/minecraft/state/State;PROPERTY_MAP_PRINTER:Ljava/util/function/Function;intermediary field_24737Lnet/minecraft/class_2688;field_24737:Ljava/util/function/Function;official aLebs;a:Ljava/util/function/Function;
-
owner
- Mappings:
Namespace Name Mixin selector named ownerLnet/minecraft/state/State;owner:Ljava/lang/Object;intermediary field_24739Lnet/minecraft/class_2688;field_24739:Ljava/lang/Object;official dLebs;d:Ljava/lang/Object;
-
propertyMap
- Mappings:
Namespace Name Mixin selector named propertyMapLnet/minecraft/state/State;propertyMap:Lit/unimi/dsi/fastutil/objects/Reference2ObjectArrayMap;intermediary field_24738Lnet/minecraft/class_2688;field_24738:Lit/unimi/dsi/fastutil/objects/Reference2ObjectArrayMap;official fLebs;f:Lit/unimi/dsi/fastutil/objects/Reference2ObjectArrayMap;
-
withMap
- Mappings:
Namespace Name Mixin selector named withMapLnet/minecraft/state/State;withMap:Ljava/util/Map;intermediary field_24741Lnet/minecraft/class_2688;field_24741:Ljava/util/Map;official gLebs;g:Ljava/util/Map;
-
codec
- Mappings:
Namespace Name Mixin selector named codecLnet/minecraft/state/State;codec:Lcom/mojang/serialization/MapCodec;intermediary field_24740Lnet/minecraft/class_2688;field_24740:Lcom/mojang/serialization/MapCodec;official eLebs;e:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
State
protected State(O owner, Reference2ObjectArrayMap<Property<?>, Comparable<?>> propertyMap, com.mojang.serialization.MapCodec<S> codec) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/state/State;<init>(Ljava/lang/Object;Lit/unimi/dsi/fastutil/objects/Reference2ObjectArrayMap;Lcom/mojang/serialization/MapCodec;)Vintermediary <init>Lnet/minecraft/class_2688;<init>(Ljava/lang/Object;Lit/unimi/dsi/fastutil/objects/Reference2ObjectArrayMap;Lcom/mojang/serialization/MapCodec;)Vofficial <init>Lebs;<init>(Ljava/lang/Object;Lit/unimi/dsi/fastutil/objects/Reference2ObjectArrayMap;Lcom/mojang/serialization/MapCodec;)V
-
-
Method Details
-
cycle
- Mappings:
Namespace Name Mixin selector named cycleLnet/minecraft/state/State;cycle(Lnet/minecraft/state/property/Property;)Ljava/lang/Object;intermediary method_28493Lnet/minecraft/class_2688;method_28493(Lnet/minecraft/class_2769;)Ljava/lang/Object;official aLebs;a(Lect;)Ljava/lang/Object;
-
getNext
- Mappings:
Namespace Name Mixin selector named getNextLnet/minecraft/state/State;getNext(Ljava/util/List;Ljava/lang/Object;)Ljava/lang/Object;intermediary method_28495Lnet/minecraft/class_2688;method_28495(Ljava/util/List;Ljava/lang/Object;)Ljava/lang/Object;official aLebs;a(Ljava/util/List;Ljava/lang/Object;)Ljava/lang/Object;
-
toString
-
equals
-
hashCode
public int hashCode() -
getProperties
- Mappings:
Namespace Name Mixin selector named getPropertiesLnet/minecraft/state/State;getProperties()Ljava/util/Collection;intermediary method_28501Lnet/minecraft/class_2688;method_28501()Ljava/util/Collection;official FLebs;F()Ljava/util/Collection;
-
contains
- Mappings:
Namespace Name Mixin selector named containsLnet/minecraft/state/State;contains(Lnet/minecraft/state/property/Property;)Zintermediary method_28498Lnet/minecraft/class_2688;method_28498(Lnet/minecraft/class_2769;)Zofficial bLebs;b(Lect;)Z
-
get
- Mappings:
Namespace Name Mixin selector named getLnet/minecraft/state/State;get(Lnet/minecraft/state/property/Property;)Ljava/lang/Comparable;intermediary method_11654Lnet/minecraft/class_2688;method_11654(Lnet/minecraft/class_2769;)Ljava/lang/Comparable;official cLebs;c(Lect;)Ljava/lang/Comparable;
-
getOrEmpty
- Mappings:
Namespace Name Mixin selector named getOrEmptyLnet/minecraft/state/State;getOrEmpty(Lnet/minecraft/state/property/Property;)Ljava/util/Optional;intermediary method_28500Lnet/minecraft/class_2688;method_28500(Lnet/minecraft/class_2769;)Ljava/util/Optional;official dLebs;d(Lect;)Ljava/util/Optional;
-
get
- Mappings:
Namespace Name Mixin selector named getLnet/minecraft/state/State;get(Lnet/minecraft/state/property/Property;Ljava/lang/Comparable;)Ljava/lang/Comparable;intermediary method_61767Lnet/minecraft/class_2688;method_61767(Lnet/minecraft/class_2769;Ljava/lang/Comparable;)Ljava/lang/Comparable;official aLebs;a(Lect;Ljava/lang/Comparable;)Ljava/lang/Comparable;
-
getNullable
- Mappings:
Namespace Name Mixin selector named getNullableLnet/minecraft/state/State;getNullable(Lnet/minecraft/state/property/Property;)Ljava/lang/Comparable;intermediary method_61768Lnet/minecraft/class_2688;method_61768(Lnet/minecraft/class_2769;)Ljava/lang/Comparable;official eLebs;e(Lect;)Ljava/lang/Comparable;
-
with
- Mappings:
Namespace Name Mixin selector named withLnet/minecraft/state/State;with(Lnet/minecraft/state/property/Property;Ljava/lang/Comparable;)Ljava/lang/Object;intermediary method_11657Lnet/minecraft/class_2688;method_11657(Lnet/minecraft/class_2769;Ljava/lang/Comparable;)Ljava/lang/Object;official bLebs;b(Lect;Ljava/lang/Comparable;)Ljava/lang/Object;
-
withIfExists
- Mappings:
Namespace Name Mixin selector named withIfExistsLnet/minecraft/state/State;withIfExists(Lnet/minecraft/state/property/Property;Ljava/lang/Comparable;)Ljava/lang/Object;intermediary method_47968Lnet/minecraft/class_2688;method_47968(Lnet/minecraft/class_2769;Ljava/lang/Comparable;)Ljava/lang/Object;official cLebs;c(Lect;Ljava/lang/Comparable;)Ljava/lang/Object;
-
with
private <T extends Comparable<T>,V extends T> S with(Property<T> property, V newValue, Comparable<?> oldValue) - Mappings:
Namespace Name Mixin selector named withLnet/minecraft/state/State;with(Lnet/minecraft/state/property/Property;Ljava/lang/Comparable;Ljava/lang/Comparable;)Ljava/lang/Object;intermediary method_64216Lnet/minecraft/class_2688;method_64216(Lnet/minecraft/class_2769;Ljava/lang/Comparable;Ljava/lang/Comparable;)Ljava/lang/Object;official aLebs;a(Lect;Ljava/lang/Comparable;Ljava/lang/Comparable;)Ljava/lang/Object;
-
createWithMap
- Mappings:
Namespace Name Mixin selector named createWithMapLnet/minecraft/state/State;createWithMap(Ljava/util/Map;)Vintermediary method_28496Lnet/minecraft/class_2688;method_28496(Ljava/util/Map;)Vofficial aLebs;a(Ljava/util/Map;)V
-
toMapWith
- Mappings:
Namespace Name Mixin selector named toMapWithLnet/minecraft/state/State;toMapWith(Lnet/minecraft/state/property/Property;Ljava/lang/Comparable;)Ljava/util/Map;intermediary method_28499Lnet/minecraft/class_2688;method_28499(Lnet/minecraft/class_2769;Ljava/lang/Comparable;)Ljava/util/Map;official dLebs;d(Lect;Ljava/lang/Comparable;)Ljava/util/Map;
-
getEntries
- Mappings:
Namespace Name Mixin selector named getEntriesLnet/minecraft/state/State;getEntries()Ljava/util/Map;intermediary method_11656Lnet/minecraft/class_2688;method_11656()Ljava/util/Map;official GLebs;G()Ljava/util/Map;
-
createCodec
protected static <O,S extends State<O, com.mojang.serialization.Codec<S> createCodecS>> (com.mojang.serialization.Codec<O> codec, Function<O, S> ownerToStateFunction) - Mappings:
Namespace Name Mixin selector named createCodecLnet/minecraft/state/State;createCodec(Lcom/mojang/serialization/Codec;Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;intermediary method_28494Lnet/minecraft/class_2688;method_28494(Lcom/mojang/serialization/Codec;Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;official aLebs;a(Lcom/mojang/serialization/Codec;Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
-