SetInteractionMode

class SetInteractionMode : OutgoingGameMessage

Sets the interaction mode for a specific world.

Tile interaction modes table:

| Id |   Type   |
|:--:|:--------:|
| 0 | Disabled |
| 1 | Walk |
| 2 | Heading |

Entity interaction modes table:

| Id |     Type     |
|:--:|:------------:|
| 0 | Disabled |
| 1 | Enabled |
| 2 | Examine Only |

Constructors

Link copied to clipboard
constructor(worldId: Int, tileInteractionMode: Int, entityInteractionMode: Int)

Properties

Link copied to clipboard
open override val category: ServerProtCategory
Link copied to clipboard

sets the entity interaction mode. See the table above.

Link copied to clipboard

sets the tile interaction mode. See the table above.

Link copied to clipboard

the id of the world to modify. If the value is -2, the default behaviour for all worlds is changed.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open fun estimateSize(): Int
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String