Interface BlockStateMeta

    • Method Detail

      • hasBlockState

        boolean hasBlockState()
        Returns whether the item has a block state currently attached to it.
        Returns:
        whether a block state is already attached
      • setBlockState

        void setBlockState​(@NotNull
                           @NotNull BlockState blockState)
        Attaches a copy of the passed block state to the item.
        Parameters:
        blockState - the block state to attach to the block.
        Throws:
        IllegalArgumentException - if the blockState is null or invalid for this item.