3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-26 02:50:06 +01:00

Moved EntityType to its own class to hopefully fix the unexplainable IllegalAccessErrors.

Dieser Commit ist enthalten in:
sk89q 2011-05-01 13:55:38 -07:00
Ursprung 8840403669
Commit 7dcb4da83b
4 geänderte Dateien mit 14 neuen und 14 gelöschten Zeilen

Datei anzeigen

@ -0,0 +1,13 @@
package com.sk89q.worldedit;
/**
* List of removable entity types.
*/
public enum EntityType {
ARROWS,
ITEMS,
PAINTINGS,
BOATS,
MINECARTS,
TNT,
}

Datei anzeigen

@ -30,18 +30,6 @@ import com.sk89q.worldedit.regions.Region;
* @author sk89q * @author sk89q
*/ */
public abstract class LocalWorld { public abstract class LocalWorld {
/**
* List of removable entity types.
*/
public enum EntityType {
ARROWS,
ITEMS,
PAINTINGS,
BOATS,
MINECARTS,
TNT,
}
/** /**
* Random generator. * Random generator.
*/ */

Datei anzeigen

@ -421,7 +421,7 @@ public class BukkitWorld extends LocalWorld {
* @return * @return
*/ */
@Override @Override
public int removeEntities(EntityType type, Vector origin, int radius) { public int removeEntities(LocalWorld.EntityType type, Vector origin, int radius) {
int num = 0; int num = 0;
double radiusSq = Math.pow(radius, 2); double radiusSq = Math.pow(radius, 2);

Datei anzeigen

@ -24,7 +24,6 @@ import com.sk89q.minecraft.util.commands.Command;
import com.sk89q.minecraft.util.commands.CommandContext; import com.sk89q.minecraft.util.commands.CommandContext;
import com.sk89q.minecraft.util.commands.CommandPermissions; import com.sk89q.minecraft.util.commands.CommandPermissions;
import com.sk89q.worldedit.*; import com.sk89q.worldedit.*;
import com.sk89q.worldedit.LocalWorld.EntityType;
import com.sk89q.worldedit.blocks.BaseBlock; import com.sk89q.worldedit.blocks.BaseBlock;
import com.sk89q.worldedit.patterns.*; import com.sk89q.worldedit.patterns.*;
import com.sk89q.worldedit.regions.CuboidRegion; import com.sk89q.worldedit.regions.CuboidRegion;