mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-06-26 06:14:42 +02:00
[BREAKING] Move interfaces that don't auto register outside of feature.
registry.feature is rather meant for stuff that registers automatically with adding as a component to the NoCheatPlus API. Package organization isn't done in a very consistent way, this is just taking a step into looking at how it would/could look like. Likely that kind of separation can't be kept, so things will in the end be organized by their main topic perhaps, and a registry implementation will have to state what will be registered in what way, and possibly have a method to allow checking what's possible to register.
This commit is contained in:
parent
fc90c7ef20
commit
65525f3c14
|
@ -14,7 +14,7 @@
|
|||
*/
|
||||
package fr.neatmonster.nocheatplus.checks.access;
|
||||
|
||||
import fr.neatmonster.nocheatplus.components.registry.feature.IData;
|
||||
import fr.neatmonster.nocheatplus.components.data.IData;
|
||||
|
||||
/**
|
||||
* This is for future purposes. Might remove...<br>
|
||||
|
|
|
@ -21,7 +21,7 @@ import org.bukkit.entity.Player;
|
|||
|
||||
import fr.neatmonster.nocheatplus.checks.Check;
|
||||
import fr.neatmonster.nocheatplus.checks.CheckType;
|
||||
import fr.neatmonster.nocheatplus.components.registry.feature.IData;
|
||||
import fr.neatmonster.nocheatplus.components.data.IData;
|
||||
import fr.neatmonster.nocheatplus.components.registry.feature.IRemoveData;
|
||||
import fr.neatmonster.nocheatplus.utilities.TickTask;
|
||||
import fr.neatmonster.nocheatplus.utilities.ds.count.ActionFrequency;
|
||||
|
|
|
@ -22,7 +22,7 @@ import fr.neatmonster.nocheatplus.checks.chat.analysis.engine.processors.FlatWor
|
|||
import fr.neatmonster.nocheatplus.checks.chat.analysis.engine.processors.SimilarWordsBKL;
|
||||
import fr.neatmonster.nocheatplus.checks.chat.analysis.engine.processors.WordPrefixes;
|
||||
import fr.neatmonster.nocheatplus.checks.chat.analysis.engine.processors.WordProcessor;
|
||||
import fr.neatmonster.nocheatplus.components.registry.feature.IData;
|
||||
import fr.neatmonster.nocheatplus.components.data.IData;
|
||||
|
||||
/**
|
||||
* Engine specific player data.
|
||||
|
|
|
@ -32,8 +32,8 @@ import fr.neatmonster.nocheatplus.checks.chat.analysis.engine.processors.Similar
|
|||
import fr.neatmonster.nocheatplus.checks.chat.analysis.engine.processors.WordPrefixes;
|
||||
import fr.neatmonster.nocheatplus.checks.chat.analysis.engine.processors.WordPrefixes.WordPrefixesSettings;
|
||||
import fr.neatmonster.nocheatplus.checks.chat.analysis.engine.processors.WordProcessor;
|
||||
import fr.neatmonster.nocheatplus.components.data.IData;
|
||||
import fr.neatmonster.nocheatplus.components.registry.feature.ConsistencyChecker;
|
||||
import fr.neatmonster.nocheatplus.components.registry.feature.IData;
|
||||
import fr.neatmonster.nocheatplus.components.registry.feature.IHaveCheckType;
|
||||
import fr.neatmonster.nocheatplus.components.registry.feature.IRemoveData;
|
||||
import fr.neatmonster.nocheatplus.config.ConfPaths;
|
||||
|
|
|
@ -45,7 +45,7 @@ import fr.neatmonster.nocheatplus.checks.moving.velocity.SimpleEntry;
|
|||
import fr.neatmonster.nocheatplus.checks.workaround.WRPT;
|
||||
import fr.neatmonster.nocheatplus.compat.blocks.BlockChangeTracker.BlockChangeEntry;
|
||||
import fr.neatmonster.nocheatplus.compat.blocks.BlockChangeTracker.BlockChangeReference;
|
||||
import fr.neatmonster.nocheatplus.components.registry.feature.ICanHandleTimeRunningBackwards;
|
||||
import fr.neatmonster.nocheatplus.components.data.ICanHandleTimeRunningBackwards;
|
||||
import fr.neatmonster.nocheatplus.utilities.CheckUtils;
|
||||
import fr.neatmonster.nocheatplus.utilities.PlayerLocation;
|
||||
import fr.neatmonster.nocheatplus.utilities.RichBoundsLocation;
|
||||
|
|
|
@ -82,9 +82,9 @@ import fr.neatmonster.nocheatplus.compat.BridgeEnchant;
|
|||
import fr.neatmonster.nocheatplus.compat.BridgeHealth;
|
||||
import fr.neatmonster.nocheatplus.compat.BridgeMisc;
|
||||
import fr.neatmonster.nocheatplus.compat.MCAccess;
|
||||
import fr.neatmonster.nocheatplus.components.data.IData;
|
||||
import fr.neatmonster.nocheatplus.components.modifier.IAttributeAccess;
|
||||
import fr.neatmonster.nocheatplus.components.registry.event.IGenericInstanceHandle;
|
||||
import fr.neatmonster.nocheatplus.components.registry.feature.IData;
|
||||
import fr.neatmonster.nocheatplus.components.registry.feature.IHaveCheckType;
|
||||
import fr.neatmonster.nocheatplus.components.registry.feature.INeedConfig;
|
||||
import fr.neatmonster.nocheatplus.components.registry.feature.INotifyReload;
|
||||
|
|
|
@ -21,7 +21,7 @@ import org.bukkit.entity.Player;
|
|||
|
||||
import fr.neatmonster.nocheatplus.checks.CheckType;
|
||||
import fr.neatmonster.nocheatplus.checks.access.CheckDataFactory;
|
||||
import fr.neatmonster.nocheatplus.components.registry.feature.ICanHandleTimeRunningBackwards;
|
||||
import fr.neatmonster.nocheatplus.components.data.ICanHandleTimeRunningBackwards;
|
||||
import fr.neatmonster.nocheatplus.utilities.ds.map.HashMapLOW;
|
||||
|
||||
/**
|
||||
|
|
|
@ -20,7 +20,7 @@ import org.bukkit.command.CommandMap;
|
|||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import fr.neatmonster.nocheatplus.components.registry.feature.IGetBlockCache;
|
||||
import fr.neatmonster.nocheatplus.components.map.IGetBlockCache;
|
||||
import fr.neatmonster.nocheatplus.utilities.BlockCache;
|
||||
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package fr.neatmonster.nocheatplus.components.registry.feature;
|
||||
package fr.neatmonster.nocheatplus.components.data;
|
||||
|
||||
/**
|
||||
* Use, if something better can be done instead of removing all data, in case
|
|
@ -12,7 +12,7 @@
|
|||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package fr.neatmonster.nocheatplus.components.registry.feature;
|
||||
package fr.neatmonster.nocheatplus.components.data;
|
||||
|
||||
/**
|
||||
* Some (player-related) data is held here.
|
|
@ -12,7 +12,7 @@
|
|||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package fr.neatmonster.nocheatplus.components.registry.feature;
|
||||
package fr.neatmonster.nocheatplus.components.map;
|
||||
|
||||
import fr.neatmonster.nocheatplus.utilities.BlockCache;
|
||||
|
|
@ -12,7 +12,7 @@
|
|||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package fr.neatmonster.nocheatplus.components.registry.feature;
|
||||
package fr.neatmonster.nocheatplus.components.map;
|
||||
|
||||
import fr.neatmonster.nocheatplus.components.registry.event.IHandle;
|
||||
import fr.neatmonster.nocheatplus.utilities.BlockCache;
|
|
@ -14,6 +14,8 @@
|
|||
*/
|
||||
package fr.neatmonster.nocheatplus.components.registry.feature;
|
||||
|
||||
import fr.neatmonster.nocheatplus.components.data.IData;
|
||||
|
||||
/**
|
||||
* Interface for component registration to allow cleanup for player data.<br>
|
||||
* NOTES:
|
||||
|
|
|
@ -47,11 +47,11 @@ import fr.neatmonster.nocheatplus.compat.BridgeMisc;
|
|||
import fr.neatmonster.nocheatplus.compat.versions.BukkitVersion;
|
||||
import fr.neatmonster.nocheatplus.compat.versions.GenericVersion;
|
||||
import fr.neatmonster.nocheatplus.compat.versions.ServerVersion;
|
||||
import fr.neatmonster.nocheatplus.components.data.ICanHandleTimeRunningBackwards;
|
||||
import fr.neatmonster.nocheatplus.components.registry.ComponentRegistry;
|
||||
import fr.neatmonster.nocheatplus.components.registry.feature.ComponentWithName;
|
||||
import fr.neatmonster.nocheatplus.components.registry.feature.ConsistencyChecker;
|
||||
import fr.neatmonster.nocheatplus.components.registry.feature.IDisableListener;
|
||||
import fr.neatmonster.nocheatplus.components.registry.feature.ICanHandleTimeRunningBackwards;
|
||||
import fr.neatmonster.nocheatplus.components.registry.feature.IHaveCheckType;
|
||||
import fr.neatmonster.nocheatplus.components.registry.feature.INeedConfig;
|
||||
import fr.neatmonster.nocheatplus.components.registry.feature.INotifyReload;
|
||||
|
|
|
@ -17,7 +17,7 @@ package fr.neatmonster.nocheatplus.players;
|
|||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
import fr.neatmonster.nocheatplus.components.registry.feature.IData;
|
||||
import fr.neatmonster.nocheatplus.components.data.IData;
|
||||
|
||||
/**
|
||||
* Central player data object.
|
||||
|
|
|
@ -16,8 +16,8 @@ package fr.neatmonster.nocheatplus.utilities;
|
|||
|
||||
import fr.neatmonster.nocheatplus.NCPAPIProvider;
|
||||
import fr.neatmonster.nocheatplus.compat.MCAccess;
|
||||
import fr.neatmonster.nocheatplus.components.map.IWrapBlockCache;
|
||||
import fr.neatmonster.nocheatplus.components.registry.event.IGenericInstanceHandle;
|
||||
import fr.neatmonster.nocheatplus.components.registry.feature.IWrapBlockCache;
|
||||
|
||||
/**
|
||||
* Wrap a BlockCache instance, and ensure on getting, that it is the latest
|
||||
|
|
Loading…
Reference in New Issue
Block a user