Interface BlockStateResolver

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface BlockStateResolver
Block state resolvers are responsible for mapping each BlockState of a block to an UnbakedModel. They replace the blockstates/ JSON files. One block can be mapped to only one block state resolver; multiple resolvers will not receive the same block.

Block state resolvers can be used to create custom block state formats or dynamically resolve block state models.

Use ModelResolver instead of this interface if interacting with the block and block states directly is not necessary. This includes custom model deserializers and loaders.

See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    The context for block state resolution.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Resolves the models for all block states of the block.