Interface FabricBlockState


public interface FabricBlockState
General-purpose Fabric-provided extensions for BlockState, matching the functionality provided in FabricBlock.

Note: This interface is automatically implemented on all block states via Mixin and interface injection.

  • Method Summary

    Modifier and Type
    Method
    Description
    default net.minecraft.block.BlockState
    getAppearance(net.minecraft.world.BlockRenderView renderView, net.minecraft.util.math.BlockPos pos, net.minecraft.util.math.Direction side, @Nullable net.minecraft.block.BlockState sourceState, @Nullable net.minecraft.util.math.BlockPos sourcePos)
    Return the current appearance of the block, i.e.
  • Method Details

    • getAppearance

      default net.minecraft.block.BlockState getAppearance(net.minecraft.world.BlockRenderView renderView, net.minecraft.util.math.BlockPos pos, net.minecraft.util.math.Direction side, @Nullable @Nullable net.minecraft.block.BlockState sourceState, @Nullable @Nullable net.minecraft.util.math.BlockPos sourcePos)
      Return the current appearance of the block, i.e. which block state this block reports to look like on a given side.
      Parameters:
      renderView - the world this block is in
      pos - position of this block, whose appearance is being queried
      side - the side for which the appearance is being queried
      sourceState - (optional) state of the block that is querying the appearance, or null if unknown
      sourcePos - (optional) position of the block that is querying the appearance, or null if unknown
      Returns:
      the appearance of the block on the given side; the original state can be returned if there is no better option
      See Also: