-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from ClubObsidian/3.0.0
3.0.0
- Loading branch information
Showing
46 changed files
with
1,954 additions
and
1,881 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Copyright 2021 Club Obsidian and contributors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.clubobsidian.trident; | ||
|
||
/** | ||
* Interface to implement Cancelable. | ||
* Events should implement this interface | ||
* if the event should be able to be cancelled. | ||
* | ||
* @author virustotalop | ||
*/ | ||
public interface Cancellable { | ||
|
||
/** | ||
* Returns if the event is cancelled. | ||
* | ||
* @return if the event is cancelled | ||
*/ | ||
boolean isCancelled(); | ||
|
||
/** | ||
* Set whether or not for an event to be cancelled. | ||
*/ | ||
void setCancelled(boolean cancel); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
/* | ||
Copyright 2019 Club Obsidian and contributors. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
/* | ||
* Copyright 2021 Club Obsidian and contributors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.clubobsidian.trident; | ||
|
||
/** | ||
* Superclass of all events. Events should | ||
* extend this class. | ||
* | ||
* | ||
* @author virustotalop | ||
*/ | ||
public abstract class Event { | ||
/** | ||
* Uses reflection getClass().getSimpleName() to return | ||
* the name of the event class. | ||
* @return name of the event | ||
*/ | ||
public String getName() | ||
{ | ||
return this.getClass().getSimpleName(); | ||
} | ||
|
||
/** | ||
* Uses reflection getClass().getSimpleName() to return | ||
* the name of the event class. | ||
* | ||
* @return name of the event | ||
*/ | ||
public String getName() { | ||
return this.getClass().getSimpleName(); | ||
} | ||
} |
Oops, something went wrong.