Improves comments for Stargate events, and adds a new event for teleporting entities
Adds information about what events can be used for Tries to clarify event comments where possible Renames The StargatePortalEvent to StargatePlayerPortalEvent Adds StargateEntityPortalEvent Makes the StargateEntityPortalEvent trigger whenever a vehicle is teleported Removes the unused event name for all events
This commit is contained in:
@ -6,7 +6,9 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* This event should be called whenever a stargate is deactivated
|
||||
* <p>A deactivation is usually caused by no activity for a set amount of time.</p>
|
||||
*
|
||||
* <p>A deactivation is usually caused by no activity for a set amount of time.
|
||||
* This event can only be used to listen for de-activation events.</p>
|
||||
*/
|
||||
@SuppressWarnings("unused")
|
||||
public class StargateDeactivateEvent extends StargateEvent {
|
||||
@ -19,7 +21,7 @@ public class StargateDeactivateEvent extends StargateEvent {
|
||||
* @param portal <p>The portal which was deactivated</p>
|
||||
*/
|
||||
public StargateDeactivateEvent(Portal portal) {
|
||||
super("StargateDeactivateEvent", portal);
|
||||
super(portal);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user