RoomUtils

object RoomUtils

A collection of methods for dungeon room specific information.

These include coordinate transformations and obtaining the correct data from config files.

Author

Aton

Functions

Link copied to clipboard

Gets the auto action data for the specified room (this can also be a region). If none exits it will create a blank entry.

Link copied to clipboard

Gets the extras data for the specified room (this can also be a region). If none exits it will create a blank entry.

Link copied to clipboard
fun getRealPos(blockPos: BlockPos, roomPair: Pair<Room, Int>): BlockPos

Transforms the given room relative coordinates to absolute coordinates.

Link copied to clipboard
fun getRelativePos(blockPos: BlockPos, roomPair: Pair<Room, Int>): BlockPos

Transforms the given blockPos in absolute world coordinates to the corresponding room relative position for the given room with given rotation.

Link copied to clipboard

Gets the auto action data for the specified room (this can also be a region).

Link copied to clipboard

Fetches information about the Tile with the given core from the rooms resource rooms.json.

Link copied to clipboard

Gets the extras data for the specified room (this can also be a region).

Link copied to clipboard
fun getRotatedPos(blockPos: BlockPos, rotation: Int): BlockPos

Rotates the given blockPos for a room with rotation to rotation 0.

Link copied to clipboard
fun getRotatedPosSet(posSet: MutableSet<BlockPos>, rotation: Int): MutableSet<BlockPos>

Rotates the coordinates within the given posSet for a room with rotation to rotation 0.

Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard