Class StateHolder<O,S>

java.lang.Object
net.minecraft.state.StateHolder<O,S>
Direct Known Subclasses:
AbstractBlock.AbstractBlockState, FluidState

public abstract class StateHolder<O,S> extends Object
  • Field Details

    • 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
  • Constructor Details

    • StateHolder

      protected StateHolder(O p_i231879_1_, com.google.common.collect.ImmutableMap<Property<?>,Comparable<?>> p_i231879_2_, com.mojang.serialization.MapCodec<S> p_i231879_3_)
  • Method Details