类 StateHolder<O,S>

java.lang.Object
net.minecraft.world.level.block.state.StateHolder<O,S>
直接已知子类:
BlockBehaviour.BlockStateBase, FluidState

public abstract class StateHolder<O,S> extends Object
  • 字段详细资料

    • NAME_TAG

      public static final String NAME_TAG
      另请参阅:
    • PROPERTIES_TAG

      public static final String PROPERTIES_TAG
      另请参阅:
    • PROPERTY_ENTRY_TO_STRING_FUNCTION

      private static final Function<Map.Entry<Property<?>,Comparable<?>>,String> PROPERTY_ENTRY_TO_STRING_FUNCTION
    • owner

      protected final O owner
    • values

      private final com.google.common.collect.ImmutableMap<Property<?>,Comparable<?>> values
    • neighbours

      private com.google.common.collect.Table<Property<?>,Comparable<?>,S> neighbours
    • propertiesCodec

      protected final com.mojang.serialization.MapCodec<S> propertiesCodec
  • 构造器详细资料

    • StateHolder

      protected StateHolder(O pOwner, com.google.common.collect.ImmutableMap<Property<?>,Comparable<?>> pValues, com.mojang.serialization.MapCodec<S> pPropertiesCodec)
  • 方法详细资料