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:
Ursprung
8840403669
Commit
7dcb4da83b
13
src/main/java/com/sk89q/worldedit/EntityType.java
Normale Datei
13
src/main/java/com/sk89q/worldedit/EntityType.java
Normale Datei
@ -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;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren