Interface BundledRedstoneProvider

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 BundledRedstoneProvider
This interface is used to provide bundled redstone output for blocks.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    getBundledRedstoneOutput(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side)
    Produce an bundled redstone output from a block location.
  • Method Details

    • getBundledRedstoneOutput

      int getBundledRedstoneOutput(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side)
      Produce an bundled redstone output from a block location.
      Parameters:
      world - The world this block is in.
      pos - The position this block is at.
      side - The side to extract the bundled redstone output from.
      Returns:
      A number in the range 0-65535 to indicate this block is providing output, or -1 if you do not wish to handle this block.
      See Also: