File tree Expand file tree Collapse file tree 3 files changed +15
-11
lines changed
api/src/org/apollo/game/plugins/api Expand file tree Collapse file tree 3 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,11 @@ package org.apollo.game.plugins.api
2
2
3
3
import org.apollo.game.model.Position
4
4
5
- // Support destructuring a Position into its components.
6
-
7
- operator fun Position.component1 (): Int = x
8
- operator fun Position.component2 (): Int = y
9
- operator fun Position.component3 (): Int = height
5
+ /* *
6
+ * Support destructuring a Position into its components.
7
+ */
8
+ object Position {
9
+ operator fun Position.component1 (): Int = x
10
+ operator fun Position.component2 (): Int = y
11
+ operator fun Position.component3 (): Int = height
12
+ }
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ package org.apollo.game.plugins.area
2
2
3
3
import org.apollo.game.model.Position
4
4
import org.apollo.game.model.entity.Player
5
- import org.apollo.game.plugins.api.component1
6
- import org.apollo.game.plugins.api.component2
7
- import org.apollo.game.plugins.api.component3
5
+ import org.apollo.game.plugins.api.Position. component1
6
+ import org.apollo.game.plugins.api.Position. component2
7
+ import org.apollo.game.plugins.api.Position. component3
8
8
9
9
/* *
10
10
* An area in the game world.
Original file line number Diff line number Diff line change
1
+
1
2
import com.google.common.primitives.Ints
2
3
import org.apollo.game.model.Position
3
4
import org.apollo.game.model.entity.setting.PrivilegeLevel
4
5
import org.apollo.game.plugin.util.command.valid_arg_length
5
- import org.apollo.game.plugins.api.component1
6
- import org.apollo.game.plugins.api.component2
7
- import org.apollo.game.plugins.api.component3
6
+ import org.apollo.game.plugins.api.Position. component1
7
+ import org.apollo.game.plugins.api.Position. component2
8
+ import org.apollo.game.plugins.api.Position. component3
8
9
9
10
/* *
10
11
* Sends the player's position.
You can’t perform that action at this time.
0 commit comments