@ApiStatus.NonExtendable public interface BlockState extends ResourcePackPart, net.kyori.adventure.key.Keyed, net.kyori.examination.Examinable
Blocks can also be compound of several models at the same time, called "multipart". The models are then used depending on the block states of the block
| Modifier and Type | Method and Description |
|---|---|
default void |
addTo(@NotNull ResourceContainer resourceContainer)
Adds this block state to the given resource container
|
@NotNull net.kyori.adventure.key.Key |
key() |
java.util.List<Selector> |
multipart() |
static BlockState |
of(net.kyori.adventure.key.Key key,
java.util.List<Selector> multipart)
Creates a new
BlockState instance from
the given block state multipart info |
static BlockState |
of(net.kyori.adventure.key.Key key,
java.util.Map<java.lang.String,MultiVariant> variants)
Creates a new
BlockState instance with
the given block state variants |
static BlockState |
of(net.kyori.adventure.key.Key key,
java.util.Map<java.lang.String,MultiVariant> variants,
java.util.List<Selector> multipart)
Creates a new
BlockState object from
the given values |
static BlockState |
of(net.kyori.adventure.key.Key key,
Selector... multipart) |
java.util.Map<java.lang.String,MultiVariant> |
variants() |
compound, compound@NotNull @NotNull net.kyori.adventure.key.Key key()
key in interface net.kyori.adventure.key.Keyedjava.util.Map<java.lang.String,MultiVariant> variants()
java.util.List<Selector> multipart()
default void addTo(@NotNull
@NotNull ResourceContainer resourceContainer)
addTo in interface ResourcePackPartresourceContainer - The resource containerstatic BlockState of(net.kyori.adventure.key.Key key, java.util.Map<java.lang.String,MultiVariant> variants, java.util.List<Selector> multipart)
BlockState object from
the given valuesvariants - The block state variantsmultipart - The block state variants
(multipart)BlockState instancestatic BlockState of(net.kyori.adventure.key.Key key, java.util.Map<java.lang.String,MultiVariant> variants)
BlockState instance with
the given block state variantsvariants - The block state variantsBlockState variantsstatic BlockState of(net.kyori.adventure.key.Key key, java.util.List<Selector> multipart)
BlockState instance from
the given block state multipart infomultipart - The block state cases to useBlockState instancestatic BlockState of(net.kyori.adventure.key.Key key, Selector... multipart)