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

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

cwr
net.minecraft.world.level.block.state.properties.Property
net.minecraft.class_2769
net.minecraft.state.property.Property
net.minecraft.src.C_2097_
net.minecraft.world.level.block.state.properties.IBlockState

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
public Property$Value<T>
b(T arg0)
value(T arg0)
method_30042(T arg0)
createValue(T value)
m_61699_(T arg0)
public Property$Value<T>
a(cvq<?, ?> arg0)
value(StateHolder<?, ?> arg0)
method_30041(class_2688<?, ?> arg0)
createValue(State<?, ?> state)
m_61694_(C_2068_<?, ?> arg0)
public Stream<Property$Value<T>>
c()
getAllValues()
method_30043()
stream()
m_61702_()
public com.mojang.serialization.Codec<T>
d()
codec()
method_35308()
getCodec()
m_156037_()
public com.mojang.serialization.Codec<Property$Value<T>>
e()
valueCodec()
method_30044()
getValueCodec()
m_61705_()
public String
f()
getName()
method_11899()
getName()
m_61708_()
public Class<T>
g()
getValueClass()
method_11902()
getType()
m_61709_()
public abstract Collection<T>
a()
getPossibleValues()
method_11898()
getValues()
m_6908_()
public abstract String
a(T arg0)
getName(T arg0)
method_11901(T arg0)
name(T value)
m_6940_(T arg0)
public abstract Optional<T>
b(String arg0)
getValue(String arg0)
method_11900(String arg0)
parse(String name)
m_6215_(String arg0)
public int
b()
generateHashCode()
method_11799()
computeHashCode()
m_6310_()
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)
m_156031_(com.mojang.serialization.DynamicOps<U> p_156033_, S p_156034_, U arg2)