net.minecraft.world.level.block.state.properties

public abstract class Property<T extends Comparable<T>>

dyx
net.minecraft.world.level.block.state.properties.Property
net.minecraft.class_2769
net.minecraft.state.property.Property
net.minecraft.world.level.block.state.properties.IBlockState

Field summary

Modifier and TypeField
private final Class<T>
a
clazz
field_24742
type
private final String
b
name
field_24743
name
private Integer
c
hashCode
field_24744
hashCodeCache
private final com.mojang.serialization.Codec<T>
d
codec
field_24745
codec
private final com.mojang.serialization.Codec<Property$Value<T>>
e
valueCodec
field_25670
valueCodec

Constructor summary

ModifierConstructor
protected (String name, Class<T> type)

Method summary

Modifier and TypeMethod
public Property$Value<T>
c(T arg0)
value(T arg0)
method_30042(T arg0)
createValue(T value)
public Property$Value<T>
a(dxx<?, ?> arg0)
value(StateHolder<?, ?> arg0)
method_30041(class_2688<?, ?> arg0)
createValue(State<?, ?> state)
public Stream<Property$Value<T>>
c()
getAllValues()
method_30043()
stream()
public com.mojang.serialization.Codec<T>
d()
codec()
method_35308()
getCodec()
public com.mojang.serialization.Codec<Property$Value<T>>
e()
valueCodec()
method_30044()
getValueCodec()
public String
f()
getName()
method_11899()
getName()
public Class<T>
g()
getValueClass()
method_11902()
getType()
public abstract List<T>
a()
getPossibleValues()
method_11898()
getValues()
public abstract String
b(T arg0)
getName(T arg0)
method_11901(T arg0)
name(T value)
public abstract Optional<T>
b(String arg0)
getValue(String arg0)
method_11900(String arg0)
parse(String name)
public abstract int
a(T arg0)
getInternalIndex(T arg0)
method_64218(T arg0)
ordinal(T value)
public int
b()
generateHashCode()
method_11799()
computeHashCode()
public <U, S extends StateHolder<?, S>> com.mojang.serialization.DataResult<S>
a(com.mojang.serialization.DynamicOps<U> arg0, S arg1, U arg2)
parseValue(com.mojang.serialization.DynamicOps<U> arg0, S arg1, U arg2)
method_35307(com.mojang.serialization.DynamicOps<U> arg0, S arg1, U arg2)
parse(com.mojang.serialization.DynamicOps<U> ops, S state, U input)