mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 17:57:38 +00:00
Moved EntityType to its own class to hopefully fix the unexplainable IllegalAccessErrors.
This commit is contained in:
parent
8840403669
commit
7dcb4da83b
13
src/main/java/com/sk89q/worldedit/EntityType.java
Normal file
13
src/main/java/com/sk89q/worldedit/EntityType.java
Normal file
@ -0,0 +1,13 @@
|
||||
package com.sk89q.worldedit;
|
||||
|
||||
/**
|
||||
* List of removable entity types.
|
||||
*/
|
||||
public enum EntityType {
|
||||
ARROWS,
|
||||
ITEMS,
|
||||
PAINTINGS,
|
||||
BOATS,
|
||||
MINECARTS,
|
||||
TNT,
|
||||
}
|
@ -30,18 +30,6 @@ import com.sk89q.worldedit.regions.Region;
|
||||
* @author sk89q
|
||||
*/
|
||||
public abstract class LocalWorld {
|
||||
/**
|
||||
* List of removable entity types.
|
||||
*/
|
||||
public enum EntityType {
|
||||
ARROWS,
|
||||
ITEMS,
|
||||
PAINTINGS,
|
||||
BOATS,
|
||||
MINECARTS,
|
||||
TNT,
|
||||
}
|
||||
|
||||
/**
|
||||
* Random generator.
|
||||
*/
|
||||
|
@ -421,7 +421,7 @@ public class BukkitWorld extends LocalWorld {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int removeEntities(EntityType type, Vector origin, int radius) {
|
||||
public int removeEntities(LocalWorld.EntityType type, Vector origin, int radius) {
|
||||
int num = 0;
|
||||
double radiusSq = Math.pow(radius, 2);
|
||||
|
||||
|
@ -24,7 +24,6 @@ import com.sk89q.minecraft.util.commands.Command;
|
||||
import com.sk89q.minecraft.util.commands.CommandContext;
|
||||
import com.sk89q.minecraft.util.commands.CommandPermissions;
|
||||
import com.sk89q.worldedit.*;
|
||||
import com.sk89q.worldedit.LocalWorld.EntityType;
|
||||
import com.sk89q.worldedit.blocks.BaseBlock;
|
||||
import com.sk89q.worldedit.patterns.*;
|
||||
import com.sk89q.worldedit.regions.CuboidRegion;
|
||||
|
Loading…
Reference in New Issue
Block a user