YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
YATS.api.I6WayWrenchable Interface Reference
Inheritance diagram for YATS.api.I6WayWrenchable:
YATS.tile.TileAdvExtractor YATS.tile.TileExtractor YATS.tile.TileRoutingMarshaller

Public Member Functions

void RotateTo (ForgeDirection direction)
 
ForgeDirection GetCurrentFacing ()
 

Public Attributes

ForgeDirection currentfacing = ForgeDirection.UNKNOWN
 

Detailed Description

I6WayWrenchable is the simple and easy API to let your blocks be rotated by the YATS Spanner.

Recommended implementation is in the block, not the tile entity.

Member Function Documentation

ForgeDirection YATS.api.I6WayWrenchable.GetCurrentFacing ( )

This is the get accessor for the block's ForgeDirection.

Returns
The ForgeDirection the block is currently facing.

Implemented in YATS.tile.TileAdvExtractor, YATS.tile.TileExtractor, and YATS.tile.TileRoutingMarshaller.

void YATS.api.I6WayWrenchable.RotateTo ( ForgeDirection  direction)

This is the set accessor for the block's ForgeDirection.

Parameters
directionThe ForgeDirection to rotate to.

Implemented in YATS.tile.TileAdvExtractor, YATS.tile.TileExtractor, and YATS.tile.TileRoutingMarshaller.

Member Data Documentation

ForgeDirection YATS.api.I6WayWrenchable.currentfacing = ForgeDirection.UNKNOWN

This field is the block's current facing.


The documentation for this interface was generated from the following file: