Interface BlockEntityType

    • Method Detail

      • isValidBlock

        boolean isValidBlock​(BlockState block)
        Determines if the provided block is considered valid by the BlockEntity.

        It is up to the implementation to determine validity and what such a state is used for. In vanilla Minecraft, block entities will not tick if their block is not valid.

        Parameters:
        block - The block to test
        Returns:
        True if valid, false if not