project: Java 17 support, update deps, rework some stupid logic
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2019, HSJ <https://github.com/HSJ-OSRS>
|
||||
* Copyright (c) 2018, Matthew Steglinski <https://github.com/sainttx>
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -33,5 +33,5 @@ import net.runelite.api.Actor;
|
||||
@Value
|
||||
public class ActorDeath
|
||||
{
|
||||
Actor actor;
|
||||
private final Actor actor;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,31 @@
|
||||
/*
|
||||
* Copyright (c) 2016-2017, Abel Briggs
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
package net.runelite.api.events;
|
||||
|
||||
import net.runelite.api.Actor;
|
||||
import lombok.Data;
|
||||
import net.runelite.api.Actor;
|
||||
|
||||
/**
|
||||
* An event where the {@link Actor} has changed animations.
|
||||
|
||||
@@ -33,7 +33,6 @@ public class AreaSoundEffectPlayed
|
||||
{
|
||||
@Nullable
|
||||
private final Actor source;
|
||||
|
||||
private int soundId;
|
||||
private int sceneX;
|
||||
private int sceneY;
|
||||
|
||||
@@ -24,11 +24,11 @@
|
||||
*/
|
||||
package net.runelite.api.events;
|
||||
|
||||
import net.runelite.api.ChatMessageType;
|
||||
import net.runelite.api.MessageNode;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import net.runelite.api.ChatMessageType;
|
||||
import net.runelite.api.MessageNode;
|
||||
|
||||
/**
|
||||
* An event where a new chat message is received.
|
||||
|
||||
@@ -47,9 +47,9 @@ public class CommandExecuted
|
||||
/**
|
||||
* The name of the command entered.
|
||||
*/
|
||||
String command;
|
||||
private String command;
|
||||
/**
|
||||
* The command arguments that have been entered.
|
||||
*/
|
||||
String[] arguments;
|
||||
private String[] arguments;
|
||||
}
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
*/
|
||||
package net.runelite.api.events;
|
||||
|
||||
import lombok.Data;
|
||||
import net.runelite.api.DecorativeObject;
|
||||
import net.runelite.api.Tile;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* An event where the {@link DecorativeObject} attached to a {@link Tile}
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
*/
|
||||
package net.runelite.api.events;
|
||||
|
||||
import lombok.Data;
|
||||
import net.runelite.api.DecorativeObject;
|
||||
import net.runelite.api.Tile;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* An event where the {@link DecorativeObject} attached to a {@link Tile}
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
*/
|
||||
package net.runelite.api.events;
|
||||
|
||||
import lombok.Data;
|
||||
import net.runelite.api.DecorativeObject;
|
||||
import net.runelite.api.Tile;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* An event where a {@link DecorativeObject} is attached to a {@link Tile}.
|
||||
|
||||
@@ -30,6 +30,6 @@ import net.runelite.api.Skill;
|
||||
@Value
|
||||
public class FakeXpDrop
|
||||
{
|
||||
Skill skill;
|
||||
int xp;
|
||||
private final Skill skill;
|
||||
private final int xp;
|
||||
}
|
||||
|
||||
@@ -35,5 +35,5 @@ public class FriendsChatChanged
|
||||
/**
|
||||
* Whether or not the client is now in a friends chat.
|
||||
*/
|
||||
boolean joined;
|
||||
private boolean joined;
|
||||
}
|
||||
|
||||
@@ -33,5 +33,5 @@ public class FriendsChatMemberJoined
|
||||
/**
|
||||
* The member that joined
|
||||
*/
|
||||
FriendsChatMember member;
|
||||
private FriendsChatMember member;
|
||||
}
|
||||
|
||||
@@ -33,5 +33,5 @@ public class FriendsChatMemberLeft
|
||||
/**
|
||||
* The member that left
|
||||
*/
|
||||
FriendsChatMember member;
|
||||
private FriendsChatMember member;
|
||||
}
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
*/
|
||||
package net.runelite.api.events;
|
||||
|
||||
import lombok.Data;
|
||||
import net.runelite.api.GameObject;
|
||||
import net.runelite.api.Tile;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* An event where a {@link GameObject} on a {@link Tile} is removed.
|
||||
|
||||
@@ -37,9 +37,9 @@ public class GameObjectSpawned
|
||||
/**
|
||||
* The affected tile.
|
||||
*/
|
||||
Tile tile;
|
||||
private Tile tile;
|
||||
/**
|
||||
* The newly spawned game object.
|
||||
*/
|
||||
GameObject gameObject;
|
||||
private GameObject gameObject;
|
||||
}
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
*/
|
||||
package net.runelite.api.events;
|
||||
|
||||
import net.runelite.api.GameState;
|
||||
import lombok.Data;
|
||||
import net.runelite.api.GameState;
|
||||
|
||||
/**
|
||||
* An event where the clients game state has changed.
|
||||
|
||||
@@ -24,20 +24,21 @@
|
||||
*/
|
||||
package net.runelite.api.events;
|
||||
|
||||
import net.runelite.api.GrandExchangeOffer;
|
||||
import lombok.Data;
|
||||
import net.runelite.api.GrandExchangeOffer;
|
||||
import net.runelite.api.GrandExchangeOfferState;
|
||||
|
||||
/**
|
||||
* An event where a {GrandExchangeOffer} has been updated with
|
||||
* An event where a {@link GrandExchangeOffer} has been updated with
|
||||
* new information.
|
||||
* <p>
|
||||
* When the client initially logs in, this event is called for all grand
|
||||
* exchange slots with the {GrandExchangeOfferState#EMPTY} state,
|
||||
* exchange slots with the {@link GrandExchangeOfferState#EMPTY} state,
|
||||
* regardless of whether any slots have offers. Once the exchange is
|
||||
* initialized, the client then updates any offers with items as it
|
||||
* receives information from the server.
|
||||
* <p>
|
||||
* See {GrandExchangeOfferState} for potential states an offer
|
||||
* See {@link GrandExchangeOfferState} for potential states an offer
|
||||
* can change into.
|
||||
*/
|
||||
@Data
|
||||
|
||||
@@ -1,3 +1,27 @@
|
||||
/*
|
||||
* Copyright (c) 2018, Adam <Adam@sigterm.info>
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
package net.runelite.api.events;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
*/
|
||||
package net.runelite.api.events;
|
||||
|
||||
import net.runelite.api.GraphicsObject;
|
||||
import lombok.Value;
|
||||
import net.runelite.api.GraphicsObject;
|
||||
|
||||
/**
|
||||
* An event where a new {@link GraphicsObject} has been created.
|
||||
@@ -36,5 +36,5 @@ public class GraphicsObjectCreated
|
||||
/**
|
||||
* The newly created graphics object.
|
||||
*/
|
||||
GraphicsObject graphicsObject;
|
||||
private final GraphicsObject graphicsObject;
|
||||
}
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
*/
|
||||
package net.runelite.api.events;
|
||||
|
||||
import lombok.Data;
|
||||
import net.runelite.api.GroundObject;
|
||||
import net.runelite.api.Tile;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* An event where the {@link GroundObject} on a {@link Tile} has been changed.
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
*/
|
||||
package net.runelite.api.events;
|
||||
|
||||
import lombok.Data;
|
||||
import net.runelite.api.GroundObject;
|
||||
import net.runelite.api.Tile;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* An event where a {@link GroundObject} on a {@link Tile} has been removed.
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
*/
|
||||
package net.runelite.api.events;
|
||||
|
||||
import lombok.Data;
|
||||
import net.runelite.api.GroundObject;
|
||||
import net.runelite.api.Tile;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* An event where a {@link GroundObject} is added to a {@link Tile}.
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
*/
|
||||
package net.runelite.api.events;
|
||||
|
||||
import lombok.Data;
|
||||
import net.runelite.api.Actor;
|
||||
import net.runelite.api.Hitsplat;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* An event called when a {@link Hitsplat} is processed on an {@link Actor}.
|
||||
|
||||
@@ -1,7 +1,31 @@
|
||||
/*
|
||||
* Copyright (c) 2018, Adam <Adam@sigterm.info>
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
package net.runelite.api.events;
|
||||
|
||||
import net.runelite.api.Actor;
|
||||
import lombok.Value;
|
||||
import net.runelite.api.Actor;
|
||||
|
||||
/**
|
||||
* An event called when the actor an actor is interacting with changes
|
||||
@@ -9,10 +33,10 @@ import lombok.Value;
|
||||
@Value
|
||||
public class InteractingChanged
|
||||
{
|
||||
Actor source;
|
||||
private final Actor source;
|
||||
|
||||
/**
|
||||
* Target actor, may be null
|
||||
*/
|
||||
Actor target;
|
||||
private final Actor target;
|
||||
}
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
*/
|
||||
package net.runelite.api.events;
|
||||
|
||||
import net.runelite.api.ItemContainer;
|
||||
import lombok.Value;
|
||||
import net.runelite.api.ItemContainer;
|
||||
|
||||
/**
|
||||
* An event called whenever the stack size of an {@link net.runelite.api.Item}
|
||||
@@ -44,10 +44,10 @@ public class ItemContainerChanged
|
||||
/**
|
||||
* The modified container's ID.
|
||||
*/
|
||||
int containerId;
|
||||
private final int containerId;
|
||||
|
||||
/**
|
||||
* The modified item container.
|
||||
*/
|
||||
ItemContainer itemContainer;
|
||||
private final ItemContainer itemContainer;
|
||||
}
|
||||
|
||||
@@ -25,9 +25,8 @@
|
||||
package net.runelite.api.events;
|
||||
|
||||
import lombok.Value;
|
||||
import net.runelite.api.TileItem;
|
||||
import net.runelite.api.Tile;
|
||||
import lombok.Value;
|
||||
import net.runelite.api.TileItem;
|
||||
|
||||
/**
|
||||
* Called when an item pile despawns from the ground. When the client loads a new scene,
|
||||
@@ -36,6 +35,6 @@ import lombok.Value;
|
||||
@Value
|
||||
public class ItemDespawned
|
||||
{
|
||||
Tile tile;
|
||||
TileItem item;
|
||||
private final Tile tile;
|
||||
private final TileItem item;
|
||||
}
|
||||
|
||||
@@ -25,9 +25,8 @@
|
||||
package net.runelite.api.events;
|
||||
|
||||
import lombok.Value;
|
||||
import net.runelite.api.TileItem;
|
||||
import net.runelite.api.Tile;
|
||||
import lombok.Value;
|
||||
import net.runelite.api.TileItem;
|
||||
|
||||
/**
|
||||
* Called when the quantity of an item pile changes.
|
||||
@@ -35,8 +34,8 @@ import lombok.Value;
|
||||
@Value
|
||||
public class ItemQuantityChanged
|
||||
{
|
||||
TileItem item;
|
||||
Tile tile;
|
||||
int oldQuantity;
|
||||
int newQuantity;
|
||||
private final TileItem item;
|
||||
private final Tile tile;
|
||||
private final int oldQuantity;
|
||||
private final int newQuantity;
|
||||
}
|
||||
|
||||
@@ -25,9 +25,8 @@
|
||||
package net.runelite.api.events;
|
||||
|
||||
import lombok.Value;
|
||||
import net.runelite.api.TileItem;
|
||||
import net.runelite.api.Tile;
|
||||
import lombok.Value;
|
||||
import net.runelite.api.TileItem;
|
||||
|
||||
/**
|
||||
* Called when an item pile spawns on the ground. When the client loads a new scene,
|
||||
@@ -36,6 +35,6 @@ import lombok.Value;
|
||||
@Value
|
||||
public class ItemSpawned
|
||||
{
|
||||
Tile tile;
|
||||
TileItem item;
|
||||
private final Tile tile;
|
||||
private final TileItem item;
|
||||
}
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
*/
|
||||
package net.runelite.api.events;
|
||||
|
||||
import net.runelite.api.Nameable;
|
||||
import lombok.Value;
|
||||
import net.runelite.api.Nameable;
|
||||
|
||||
/**
|
||||
* An event where a {@link Nameable} has had their name changed.
|
||||
@@ -36,5 +36,5 @@ public class NameableNameChanged
|
||||
/**
|
||||
* The nameable that changed names.
|
||||
*/
|
||||
Nameable nameable;
|
||||
private final Nameable nameable;
|
||||
}
|
||||
|
||||
@@ -37,11 +37,10 @@ public class NpcChanged
|
||||
/**
|
||||
* The NPC of which the composition changed.
|
||||
*/
|
||||
NPC npc;
|
||||
|
||||
private final NPC npc;
|
||||
|
||||
/**
|
||||
* The old composition of the NPC
|
||||
*/
|
||||
NPCComposition old;
|
||||
}
|
||||
private final NPCComposition old;
|
||||
}
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
*/
|
||||
package net.runelite.api.events;
|
||||
|
||||
import lombok.Value;
|
||||
import net.runelite.api.Actor;
|
||||
import net.runelite.api.NPC;
|
||||
import lombok.Value;
|
||||
|
||||
/**
|
||||
* An event where an {@link NPC} has despawned.
|
||||
@@ -37,7 +37,7 @@ public class NpcDespawned
|
||||
/**
|
||||
* The despawned NPC.
|
||||
*/
|
||||
NPC npc;
|
||||
private final NPC npc;
|
||||
|
||||
public Actor getActor()
|
||||
{
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
*/
|
||||
package net.runelite.api.events;
|
||||
|
||||
import lombok.Value;
|
||||
import net.runelite.api.Actor;
|
||||
import net.runelite.api.NPC;
|
||||
import lombok.Value;
|
||||
|
||||
/**
|
||||
* An event where an {@link NPC} has spawned.
|
||||
@@ -37,7 +37,7 @@ public class NpcSpawned
|
||||
/**
|
||||
* The spawned NPC.
|
||||
*/
|
||||
NPC npc;
|
||||
private final NPC npc;
|
||||
|
||||
public Actor getActor()
|
||||
{
|
||||
|
||||
@@ -1,12 +1,39 @@
|
||||
/*
|
||||
* Copyright (c) 2018, Magic fTail
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
package net.runelite.api.events;
|
||||
|
||||
import net.runelite.api.Actor;
|
||||
import lombok.Value;
|
||||
import net.runelite.api.Actor;
|
||||
|
||||
/**
|
||||
* Event fired when an actors overhead text is changed.
|
||||
*/
|
||||
@Value
|
||||
public class OverheadTextChanged
|
||||
{
|
||||
Actor actor;
|
||||
private final Actor actor;
|
||||
|
||||
String overheadText;
|
||||
private final String overheadText;
|
||||
}
|
||||
@@ -24,9 +24,9 @@
|
||||
*/
|
||||
package net.runelite.api.events;
|
||||
|
||||
import lombok.Value;
|
||||
import net.runelite.api.Actor;
|
||||
import net.runelite.api.Player;
|
||||
import lombok.Value;
|
||||
|
||||
/**
|
||||
* An event where a {@link Player} has despawned.
|
||||
@@ -39,7 +39,7 @@ public class PlayerDespawned
|
||||
/**
|
||||
* The despawned player.
|
||||
*/
|
||||
Player player;
|
||||
private final Player player;
|
||||
|
||||
public Actor getActor()
|
||||
{
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
*/
|
||||
package net.runelite.api.events;
|
||||
|
||||
import lombok.Value;
|
||||
import net.runelite.api.Actor;
|
||||
import net.runelite.api.Player;
|
||||
import lombok.Value;
|
||||
|
||||
/**
|
||||
* An event where a {@link Player} has spawned.
|
||||
@@ -37,7 +37,7 @@ public class PlayerSpawned
|
||||
/**
|
||||
* The spawned player.
|
||||
*/
|
||||
Player player;
|
||||
private final Player player;
|
||||
|
||||
public Actor getActor()
|
||||
{
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
*/
|
||||
package net.runelite.api.events;
|
||||
|
||||
import net.runelite.api.HealthBar;
|
||||
import lombok.Data;
|
||||
import net.runelite.api.HealthBar;
|
||||
|
||||
@Data
|
||||
public class PostHealthBar
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
*/
|
||||
package net.runelite.api.events;
|
||||
|
||||
import lombok.Data;
|
||||
import net.runelite.api.Projectile;
|
||||
import net.runelite.api.coords.LocalPoint;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* An event called whenever a {@link Projectile} has moved towards a point.
|
||||
|
||||
@@ -37,4 +37,4 @@ public class RemovedFriend
|
||||
* The removed friend or ignore entry
|
||||
*/
|
||||
private final Nameable nameable;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
*/
|
||||
package net.runelite.api.events;
|
||||
|
||||
import net.runelite.api.Script;
|
||||
import lombok.Data;
|
||||
import net.runelite.api.Script;
|
||||
|
||||
/**
|
||||
* A callback from a runelite_callback opcode in a cs2
|
||||
|
||||
@@ -35,5 +35,5 @@ public class ScriptPostFired
|
||||
/**
|
||||
* The script id of the invoked script
|
||||
*/
|
||||
int scriptId;
|
||||
private final int scriptId;
|
||||
}
|
||||
|
||||
@@ -24,22 +24,22 @@
|
||||
*/
|
||||
package net.runelite.api.events;
|
||||
|
||||
import lombok.Value;
|
||||
import lombok.Data;
|
||||
import net.runelite.api.ScriptEvent;
|
||||
|
||||
/**
|
||||
* An event that is fired before the designated script is ran
|
||||
*/
|
||||
@Value
|
||||
@Data
|
||||
public class ScriptPreFired
|
||||
{
|
||||
/**
|
||||
* The script id of the invoked script
|
||||
*/
|
||||
int scriptId;
|
||||
private final int scriptId;
|
||||
|
||||
/**
|
||||
* The input of the script invoke, this will be null unless it is the root script
|
||||
*/
|
||||
ScriptEvent scriptEvent;
|
||||
private ScriptEvent scriptEvent;
|
||||
}
|
||||
|
||||
@@ -33,10 +33,8 @@ public class SoundEffectPlayed
|
||||
{
|
||||
@Nullable
|
||||
private final Actor source;
|
||||
|
||||
private int soundId;
|
||||
private int delay;
|
||||
private int npcid;
|
||||
|
||||
private boolean consumed;
|
||||
|
||||
|
||||
@@ -33,8 +33,8 @@ import net.runelite.api.Skill;
|
||||
@Value
|
||||
public class StatChanged
|
||||
{
|
||||
Skill skill;
|
||||
int xp;
|
||||
int level;
|
||||
int boostedLevel;
|
||||
private final Skill skill;
|
||||
private final int xp;
|
||||
private final int level;
|
||||
private final int boostedLevel;
|
||||
}
|
||||
|
||||
@@ -28,11 +28,10 @@ package net.runelite.api.events;
|
||||
import lombok.Value;
|
||||
|
||||
/**
|
||||
* An event where a client int var has changed.
|
||||
* @see net.runelite.api.VarClientInt
|
||||
*/
|
||||
@Value
|
||||
public class VarClientIntChanged
|
||||
{
|
||||
int index;
|
||||
private int index;
|
||||
}
|
||||
|
||||
@@ -28,11 +28,10 @@ package net.runelite.api.events;
|
||||
import lombok.Value;
|
||||
|
||||
/**
|
||||
* An event where a client var string has changed.
|
||||
* @see net.runelite.api.VarClientStr
|
||||
*/
|
||||
@Value
|
||||
public class VarClientStrChanged
|
||||
{
|
||||
int index;
|
||||
private int index;
|
||||
}
|
||||
|
||||
@@ -37,5 +37,5 @@ public class VolumeChanged
|
||||
AREA
|
||||
}
|
||||
|
||||
Type type;
|
||||
}
|
||||
private final Type type;
|
||||
}
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
*/
|
||||
package net.runelite.api.events;
|
||||
|
||||
import lombok.Data;
|
||||
import net.runelite.api.Tile;
|
||||
import net.runelite.api.WallObject;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* An event where the {@link WallObject} of a {@link Tile} has been changed.
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
*/
|
||||
package net.runelite.api.events;
|
||||
|
||||
import lombok.Data;
|
||||
import net.runelite.api.Tile;
|
||||
import net.runelite.api.WallObject;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* An event where a {@link WallObject} on a {@link Tile} has been removed.
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
*/
|
||||
package net.runelite.api.events;
|
||||
|
||||
import lombok.Data;
|
||||
import net.runelite.api.Tile;
|
||||
import net.runelite.api.WallObject;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* An event where a {@link WallObject} is added to a {@link Tile}.
|
||||
|
||||
@@ -36,4 +36,4 @@ import net.runelite.api.Client;
|
||||
*/
|
||||
public class WorldChanged
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,37 +1,37 @@
|
||||
/*
|
||||
* Copyright (c) 2018, Adam <Adam@sigterm.info>
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
package net.runelite.api.events;
|
||||
|
||||
import net.runelite.api.World;
|
||||
import lombok.Value;
|
||||
|
||||
/**
|
||||
* Event when the world list is loaded for the world switcher
|
||||
*/
|
||||
@Value
|
||||
public class WorldListLoad
|
||||
{
|
||||
World[] worlds;
|
||||
}
|
||||
/*
|
||||
* Copyright (c) 2018, Adam <Adam@sigterm.info>
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
package net.runelite.api.events;
|
||||
|
||||
import lombok.Value;
|
||||
import net.runelite.api.World;
|
||||
|
||||
/**
|
||||
* Event when the world list is loaded for the world switcher
|
||||
*/
|
||||
@Value
|
||||
public class WorldListLoad
|
||||
{
|
||||
private final World[] worlds;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user