Properly handled Rellekka's sailing map
This commit is contained in:
@@ -435,6 +435,25 @@ object ContentAPI {
|
||||
player.interfaceManager.open(Component(id))
|
||||
}
|
||||
|
||||
/**
|
||||
* Opens the given interface as an overlay for the given player
|
||||
* @param player the player to open the interface for
|
||||
* @param id the ID of the interface to open
|
||||
*/
|
||||
@JvmStatic
|
||||
fun openOverlay(player: Player, id: Int){
|
||||
player.interfaceManager.openOverlay(Component(id))
|
||||
}
|
||||
|
||||
/**
|
||||
* Closes any open overlays for the given player
|
||||
* @param player the player to close for
|
||||
*/
|
||||
@JvmStatic
|
||||
fun closeOverlay(player: Player){
|
||||
player.interfaceManager.closeOverlay()
|
||||
}
|
||||
|
||||
/**
|
||||
* Runs the given Emote for the given Entity
|
||||
* @param entity the entity to run the emote on
|
||||
@@ -1094,4 +1113,16 @@ object ContentAPI {
|
||||
ZoneBuilder.configure(zone)
|
||||
zone.register(borders)
|
||||
}
|
||||
|
||||
/**
|
||||
* Animates a component of an interface.
|
||||
* @param player the player to animate the interface for.
|
||||
* @param iface the ID of the interface to animate.
|
||||
* @param child the child on the interface to animate.
|
||||
* @param anim the ID of the animation to use.
|
||||
*/
|
||||
@JvmStatic
|
||||
fun animateInterface(player: Player, iface: Int, child: Int, anim: Int){
|
||||
player.packetDispatch.sendAnimationInterface(anim,iface,child)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user