Interface ICablePart

All Superinterfaces:
net.minecraft.world.Clearable, ICustomCableConnection, IPart

public interface ICablePart extends IPart
Implemented on the IParts cable objects that can be placed at the center of IPartHosts.
  • Method Details

    • supportsBuses

      BusSupport supportsBuses()
      does this cable support buses?
    • getCableColor

      AEColor getCableColor()
      Returns:
      the current color of the cable.
    • getCableConnectionType

      AECableType getCableConnectionType()
      Returns:
      the Cable type.
    • changeColor

      boolean changeColor(AEColor newColor, net.minecraft.world.entity.player.Player who)
      Change the color of the cable, this should cost a small amount of dye, or something.
      Parameters:
      newColor - new color
      Returns:
      if the color change was successful.
    • setExposedOnSides

      void setExposedOnSides(EnumSet<net.minecraft.core.Direction> sides)
      Change sides on the cables node. Called by AE, do not invoke.
      Parameters:
      sides - sides of cable
    • isConnected

      boolean isConnected(net.minecraft.core.Direction side)
      used to tests if a cable connects to neighbors visually.
      Parameters:
      side - neighbor side
      Returns:
      true if this side is currently connects to an external block.