Package appeng.api.implementations.parts
Interface ICablePart
- All Superinterfaces:
net.minecraft.world.Clearable
,ICustomCableConnection
,IPart
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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.boolean
isConnected
(net.minecraft.core.Direction side) used to tests if a cable connects to neighbors visually.void
setExposedOnSides
(EnumSet<net.minecraft.core.Direction> sides) Change sides on the cables node.does this cable support buses?Methods inherited from interface appeng.api.parts.IPart
addAdditionalDrops, addEntityCrashInfo, addPartDrop, addToWorld, animateTick, canBePlacedOn, canConnectRedstone, clearContent, exportSettings, getBoxes, getCableConnectionLength, getDesiredConnectionType, getExternalCableConnectionType, getExternalFacingNode, getGridNode, getLightLevel, getModelData, getPartItem, getStaticModels, importSettings, isLadder, isProvidingStrongPower, isProvidingWeakPower, isSolid, onClicked, onEntityCollision, onNeighborChanged, onPlacement, onShiftClicked, onUpdateShape, onUseItemOn, onUseWithoutItem, readFromNBT, readFromStream, readVisualStateFromNBT, removeFromWorld, renderDynamic, requireDynamicRender, setPartHostInfo, writeToNBT, writeToStream, writeVisualStateToNBT
-
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
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
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.
-