Class AnvilCommands
java.lang.Object
com.fastasyncworldedit.core.command.AnvilCommands
Deprecated.
Anvil classes were used on versions prior to 1.13 to trim chunks.
The way how it's been done was unsafe and led to issues back the years, hence it
hasn't been implemented in any modern version. Therefore the current
implementation is deprecated for removal without replacement.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
copy
(Player player, LocalSession session, EditSession editSession, Region selection) Deprecated.void
count
(Player player, EditSession editSession, Region selection, String argStr, boolean useData) Deprecated.void
countAll
(Player player, EditSession editSession, String folder, String argStr, boolean useData) Deprecated.void
debugfixroads
(Player player, String folder) Deprecated.void
deleteAllOldRegions
(Player player, String folder, String time) Deprecated.void
deleteAllUnclaimed
(Player player, int inhabitedTicks, int fileDurationMillis, boolean debug) Deprecated.void
deleteAllUnvisited
(Player player, String folder, int inhabitedTicks, int fileDurationMillis) Deprecated.void
deleteBiome
(Player player, String folder, BiomeType biome, boolean unsafe) Deprecated.void
deleteUnclaimed
(Player player, EditSession editSession, Region selection, int inhabitedTicks, int fileDurationMillis, boolean debug) Deprecated.void
distr
(Player player, EditSession editSession, Region selection, boolean useData) Deprecated.void
paste
(Player player, LocalSession session, EditSession editSession, boolean alignChunk) Deprecated.void
Deprecated.void
removeLayers
(Player player, EditSession editSession, Region selection, int id) Deprecated.void
replace
(Player player, EditSession editSession, Region selection, String from, String toStr, boolean useData) Deprecated.void
replaceAll
(Player player, String folder, String fromPattern, String toPatternStr, boolean useData) Deprecated.void
replaceAllPattern
(Player player, String folder, String from, Pattern toPattern, boolean useData, boolean useMap) Deprecated.void
replacePattern
(Player player, EditSession editSession, Region selection, String from, Pattern toPattern, boolean useData, boolean useMap) Deprecated.void
set
(Player player, EditSession editSession, Region selection, Pattern toPattern) Deprecated.void
trimAllAir
(Player player, String folder, boolean unsafe) Deprecated.void
trimAllPlots
(Player player, boolean deleteUnvisited) Deprecated.void
unset
(Player player, EditSession editSession, Region selection) Deprecated.
-
Constructor Details
-
AnvilCommands
Deprecated.Create a new instance.- Parameters:
worldEdit
- reference to WorldEdit
-
-
Method Details
-
replaceAll
public void replaceAll(Player player, String folder, @Arg(name="from",desc="String",def="") String fromPattern, String toPatternStr, @Switch(name='d',desc="Disable wildcard data matching") boolean useData) throws WorldEditException Deprecated.- Throws:
WorldEditException
-
remapall
Deprecated.- Throws:
WorldEditException
-
deleteAllUnvisited
public void deleteAllUnvisited(Player player, String folder, int inhabitedTicks, @Arg(desc="int",def="60000") int fileDurationMillis) throws WorldEditException Deprecated.- Throws:
WorldEditException
-
deleteAllUnclaimed
public void deleteAllUnclaimed(Player player, int inhabitedTicks, @Arg(desc="int",def="60000") int fileDurationMillis, @Switch(name='d',desc="The flag will debug the task") boolean debug) throws WorldEditException Deprecated.- Throws:
WorldEditException
-
deleteUnclaimed
public void deleteUnclaimed(Player player, EditSession editSession, Region selection, int inhabitedTicks, @Arg(desc="int",def="60000") int fileDurationMillis, @Switch(name='d',desc="The flag will debug the task") boolean debug) throws WorldEditException Deprecated.- Throws:
WorldEditException
-
deleteAllOldRegions
public void deleteAllOldRegions(Player player, String folder, String time) throws WorldEditException Deprecated.- Throws:
WorldEditException
-
trimAllPlots
public void trimAllPlots(Player player, @Switch(name='v',desc="Delete unvisited chunks") boolean deleteUnvisited) throws WorldEditException Deprecated.- Throws:
WorldEditException
-
deleteBiome
public void deleteBiome(Player player, String folder, BiomeType biome, @Switch(name='u',desc="The flag will run the task unsafe") boolean unsafe) Deprecated. -
trimAllAir
public void trimAllAir(Player player, String folder, @Switch(name='u',desc="The flag will run the task unsafe") boolean unsafe) throws WorldEditException Deprecated.- Throws:
WorldEditException
-
debugfixroads
Deprecated.- Throws:
WorldEditException
-
replaceAllPattern
public void replaceAllPattern(Player player, String folder, @Arg(desc="String",def="") String from, Pattern toPattern, @Switch(name='d',desc="The flag specifies the data to use") boolean useData, @Switch(name='m',desc="The flag specifies the map to use") boolean useMap) throws WorldEditException Deprecated.- Throws:
WorldEditException
-
countAll
public void countAll(Player player, EditSession editSession, String folder, String argStr, @Switch(name='d',desc="The flag specifies the data to use") boolean useData) throws WorldEditException Deprecated.- Throws:
WorldEditException
-
unset
public void unset(Player player, EditSession editSession, Region selection) throws WorldEditException Deprecated.- Throws:
WorldEditException
-
count
public void count(Player player, EditSession editSession, Region selection, String argStr, @Switch(name='d',desc="The flag specifies the data to use") boolean useData) throws WorldEditException Deprecated.- Throws:
WorldEditException
-
distr
public void distr(Player player, EditSession editSession, Region selection, @Switch(name='d',desc="The flag specifies the data to use") boolean useData) throws WorldEditException Deprecated.- Throws:
WorldEditException
-
replace
public void replace(Player player, EditSession editSession, Region selection, @Arg(desc="String",def="") String from, String toStr, @Switch(name='d',desc="The flag specifies the data to use") boolean useData) throws WorldEditException Deprecated.- Throws:
WorldEditException
-
replacePattern
public void replacePattern(Player player, EditSession editSession, Region selection, @Arg(desc="String",def="") String from, Pattern toPattern, @Switch(name='d',desc="The flag specifies the data to use") boolean useData, @Switch(name='m',desc="The flag specifies the map to use") boolean useMap) throws WorldEditException Deprecated.- Throws:
WorldEditException
-
set
public void set(Player player, EditSession editSession, Region selection, Pattern toPattern) throws WorldEditException Deprecated.- Throws:
WorldEditException
-
removeLayers
public void removeLayers(Player player, EditSession editSession, Region selection, int id) throws WorldEditException Deprecated.- Throws:
WorldEditException
-
copy
public void copy(Player player, LocalSession session, EditSession editSession, Region selection) throws WorldEditException Deprecated.- Throws:
WorldEditException
-
paste
public void paste(Player player, LocalSession session, EditSession editSession, @Switch(name='c',desc="Align to chunks") boolean alignChunk) throws WorldEditException, IOException Deprecated.- Throws:
WorldEditException
IOException
-