mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-08-27 19:04:33 +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
|
* @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.
|
||||||
*/
|
*/
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user