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 official dcd
intermediary net/minecraft/class_2688
named net/minecraft/state/State
-
Field Summary
Modifier and TypeFieldDescriptionprotected final com.mojang.serialization.MapCodec<S>
private final ImmutableMap<Property<?>,
Comparable<?>> static final String
protected final O
static final String
private static final Function<Map.Entry<Property<?>,
Comparable<?>>, String> private Table<Property<?>,
Comparable<?>, S> -
Constructor Summary
ModifierConstructorDescriptionprotected
State
(O owner, ImmutableMap<Property<?>, Comparable<?>> entries, com.mojang.serialization.MapCodec<S> codec) -
Method Summary
Modifier and TypeMethodDescription<T extends Comparable<T>>
booleanprotected static <O,
S extends State<O, S>>
com.mojang.serialization.Codec<S>createCodec
(com.mojang.serialization.Codec<O> codec, Function<O, S> ownerToStateFunction) void
createWithTable
(Map<Map<Property<?>, Comparable<?>>, S> states) <T extends Comparable<T>>
S<T extends Comparable<T>>
TImmutableMap<Property<?>,
Comparable<?>> protected static <T> T
getNext
(Collection<T> values, T value) <T extends Comparable<T>>
Optional<T>getOrEmpty
(Property<T> property) Collection<Property<?>>
private Map<Property<?>,
Comparable<?>> toMapWith
(Property<?> property, Comparable<?> value) toString()
<T extends Comparable<T>,
V extends T>
S<T extends Comparable<T>,
V extends T>
SwithIfExists
(Property<T> property, V value)
-
Field Details
-
NAME
- See Also:
- Mappings:
Namespace Name Mixin selector official c
Ldcd;c:Ljava/lang/String;
intermediary field_31385
Lnet/minecraft/class_2688;field_31385:Ljava/lang/String;
named NAME
Lnet/minecraft/state/State;NAME:Ljava/lang/String;
-
PROPERTIES
- See Also:
- Mappings:
Namespace Name Mixin selector official d
Ldcd;d:Ljava/lang/String;
intermediary field_31386
Lnet/minecraft/class_2688;field_31386:Ljava/lang/String;
named PROPERTIES
Lnet/minecraft/state/State;PROPERTIES:Ljava/lang/String;
-
PROPERTY_MAP_PRINTER
- Mappings:
Namespace Name Mixin selector official a
Ldcd;a:Ljava/util/function/Function;
intermediary field_24737
Lnet/minecraft/class_2688;field_24737:Ljava/util/function/Function;
named PROPERTY_MAP_PRINTER
Lnet/minecraft/state/State;PROPERTY_MAP_PRINTER:Ljava/util/function/Function;
-
owner
- Mappings:
Namespace Name Mixin selector official e
Ldcd;e:Ljava/lang/Object;
intermediary field_24739
Lnet/minecraft/class_2688;field_24739:Ljava/lang/Object;
named owner
Lnet/minecraft/state/State;owner:Ljava/lang/Object;
-
entries
- Mappings:
Namespace Name Mixin selector official b
Ldcd;b:Lcom/google/common/collect/ImmutableMap;
intermediary field_24738
Lnet/minecraft/class_2688;field_24738:Lcom/google/common/collect/ImmutableMap;
named entries
Lnet/minecraft/state/State;entries:Lcom/google/common/collect/ImmutableMap;
-
withTable
- Mappings:
Namespace Name Mixin selector official g
Ldcd;g:Lcom/google/common/collect/Table;
intermediary field_24741
Lnet/minecraft/class_2688;field_24741:Lcom/google/common/collect/Table;
named withTable
Lnet/minecraft/state/State;withTable:Lcom/google/common/collect/Table;
-
codec
- Mappings:
Namespace Name Mixin selector official f
Ldcd;f:Lcom/mojang/serialization/MapCodec;
intermediary field_24740
Lnet/minecraft/class_2688;field_24740:Lcom/mojang/serialization/MapCodec;
named codec
Lnet/minecraft/state/State;codec:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
State
protected State(O owner, ImmutableMap<Property<?>, Comparable<?>> entries, com.mojang.serialization.MapCodec<S> codec) - Mappings:
Namespace Name Mixin selector official <init>
Ldcd;<init>(Ljava/lang/Object;Lcom/google/common/collect/ImmutableMap;Lcom/mojang/serialization/MapCodec;)V
intermediary <init>
Lnet/minecraft/class_2688;<init>(Ljava/lang/Object;Lcom/google/common/collect/ImmutableMap;Lcom/mojang/serialization/MapCodec;)V
named <init>
Lnet/minecraft/state/State;<init>(Ljava/lang/Object;Lcom/google/common/collect/ImmutableMap;Lcom/mojang/serialization/MapCodec;)V
-
-
Method Details
-
cycle
- Mappings:
Namespace Name Mixin selector official a
Ldcd;a(Ldde;)Ljava/lang/Object;
intermediary method_28493
Lnet/minecraft/class_2688;method_28493(Lnet/minecraft/class_2769;)Ljava/lang/Object;
named cycle
Lnet/minecraft/state/State;cycle(Lnet/minecraft/state/property/Property;)Ljava/lang/Object;
-
getNext
- Mappings:
Namespace Name Mixin selector official a
Ldcd;a(Ljava/util/Collection;Ljava/lang/Object;)Ljava/lang/Object;
intermediary method_28495
Lnet/minecraft/class_2688;method_28495(Ljava/util/Collection;Ljava/lang/Object;)Ljava/lang/Object;
named getNext
Lnet/minecraft/state/State;getNext(Ljava/util/Collection;Ljava/lang/Object;)Ljava/lang/Object;
-
toString
-
getProperties
- Mappings:
Namespace Name Mixin selector official B
Ldcd;B()Ljava/util/Collection;
intermediary method_28501
Lnet/minecraft/class_2688;method_28501()Ljava/util/Collection;
named getProperties
Lnet/minecraft/state/State;getProperties()Ljava/util/Collection;
-
contains
- Mappings:
Namespace Name Mixin selector official b
Ldcd;b(Ldde;)Z
intermediary method_28498
Lnet/minecraft/class_2688;method_28498(Lnet/minecraft/class_2769;)Z
named contains
Lnet/minecraft/state/State;contains(Lnet/minecraft/state/property/Property;)Z
-
get
- Mappings:
Namespace Name Mixin selector official c
Ldcd;c(Ldde;)Ljava/lang/Comparable;
intermediary method_11654
Lnet/minecraft/class_2688;method_11654(Lnet/minecraft/class_2769;)Ljava/lang/Comparable;
named get
Lnet/minecraft/state/State;get(Lnet/minecraft/state/property/Property;)Ljava/lang/Comparable;
-
getOrEmpty
- Mappings:
Namespace Name Mixin selector official d
Ldcd;d(Ldde;)Ljava/util/Optional;
intermediary method_28500
Lnet/minecraft/class_2688;method_28500(Lnet/minecraft/class_2769;)Ljava/util/Optional;
named getOrEmpty
Lnet/minecraft/state/State;getOrEmpty(Lnet/minecraft/state/property/Property;)Ljava/util/Optional;
-
with
- Mappings:
Namespace Name Mixin selector official a
Ldcd;a(Ldde;Ljava/lang/Comparable;)Ljava/lang/Object;
intermediary method_11657
Lnet/minecraft/class_2688;method_11657(Lnet/minecraft/class_2769;Ljava/lang/Comparable;)Ljava/lang/Object;
named with
Lnet/minecraft/state/State;with(Lnet/minecraft/state/property/Property;Ljava/lang/Comparable;)Ljava/lang/Object;
-
withIfExists
- Mappings:
Namespace Name Mixin selector official b
Ldcd;b(Ldde;Ljava/lang/Comparable;)Ljava/lang/Object;
intermediary method_47968
Lnet/minecraft/class_2688;method_47968(Lnet/minecraft/class_2769;Ljava/lang/Comparable;)Ljava/lang/Object;
named withIfExists
Lnet/minecraft/state/State;withIfExists(Lnet/minecraft/state/property/Property;Ljava/lang/Comparable;)Ljava/lang/Object;
-
createWithTable
- Mappings:
Namespace Name Mixin selector official a
Ldcd;a(Ljava/util/Map;)V
intermediary method_28496
Lnet/minecraft/class_2688;method_28496(Ljava/util/Map;)V
named createWithTable
Lnet/minecraft/state/State;createWithTable(Ljava/util/Map;)V
-
toMapWith
- Mappings:
Namespace Name Mixin selector official c
Ldcd;c(Ldde;Ljava/lang/Comparable;)Ljava/util/Map;
intermediary method_28499
Lnet/minecraft/class_2688;method_28499(Lnet/minecraft/class_2769;Ljava/lang/Comparable;)Ljava/util/Map;
named toMapWith
Lnet/minecraft/state/State;toMapWith(Lnet/minecraft/state/property/Property;Ljava/lang/Comparable;)Ljava/util/Map;
-
getEntries
- Mappings:
Namespace Name Mixin selector official C
Ldcd;C()Lcom/google/common/collect/ImmutableMap;
intermediary method_11656
Lnet/minecraft/class_2688;method_11656()Lcom/google/common/collect/ImmutableMap;
named getEntries
Lnet/minecraft/state/State;getEntries()Lcom/google/common/collect/ImmutableMap;
-
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 official a
Ldcd;a(Lcom/mojang/serialization/Codec;Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
intermediary method_28494
Lnet/minecraft/class_2688;method_28494(Lcom/mojang/serialization/Codec;Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
named createCodec
Lnet/minecraft/state/State;createCodec(Lcom/mojang/serialization/Codec;Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
-