mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-04 03:56:41 +00:00
Merge upstream changes through 7961fa58
Signed-off-by: Byron Marohn <combustible@live.com>
This commit is contained in:
@ -41,7 +41,7 @@ public class BlockChangeLimiter extends AbstractDelegateExtent {
|
||||
* Create a new instance.
|
||||
*
|
||||
* @param extent the extent
|
||||
* @param limit the limit (>= 0) or -1 for no limit
|
||||
* @param limit the limit (>= 0) or -1 for no limit
|
||||
*/
|
||||
public BlockChangeLimiter(Extent extent, int limit) {
|
||||
super(extent);
|
||||
@ -51,7 +51,7 @@ public class BlockChangeLimiter extends AbstractDelegateExtent {
|
||||
/**
|
||||
* Get the limit.
|
||||
*
|
||||
* @return the limit (>= 0) or -1 for no limit
|
||||
* @return the limit (>= 0) or -1 for no limit
|
||||
*/
|
||||
public int getLimit() {
|
||||
return limit;
|
||||
@ -60,7 +60,7 @@ public class BlockChangeLimiter extends AbstractDelegateExtent {
|
||||
/**
|
||||
* Set the limit.
|
||||
*
|
||||
* @param limit the limit (>= 0) or -1 for no limit
|
||||
* @param limit the limit (>= 0) or -1 for no limit
|
||||
*/
|
||||
public void setLimit(int limit) {
|
||||
checkArgument(limit >= -1, "limit >= -1 required");
|
||||
|
@ -17,7 +17,6 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
package com.sk89q.worldedit.internal.annotation;
|
||||
|
||||
import com.sk89q.worldedit.Vector;
|
||||
|
@ -40,7 +40,7 @@ import java.util.Map;
|
||||
* <p>Supported operators:</p>
|
||||
* <p>
|
||||
* <ul>
|
||||
* <li>Logical: &&, ||, ! (unary)</li>
|
||||
* <li>Logical: &&, ||, ! (unary)</li>
|
||||
* <li>Bitwise: ~ (unary), >>, <<</li>
|
||||
* <li>Arithmetic: +, -, *, /, % (modulo), ^ (power), - (unary), --, ++ (prefix only)</li>
|
||||
* <li>Comparison: <=, >=, >, <, ==, !=, ~= (near)</li>
|
||||
|
@ -112,7 +112,7 @@ public class SimpleDispatcher implements Dispatcher {
|
||||
@Override
|
||||
public Object call(String arguments, CommandLocals locals, String[] parentCommands) throws CommandException {
|
||||
// We have permission for this command if we have permissions for subcommands
|
||||
if (!testPermission(locals)) {
|
||||
if (parentCommands.length != 0 && !testPermission(locals)) {
|
||||
throw new CommandPermissionsException();
|
||||
}
|
||||
|
||||
|
@ -201,7 +201,7 @@ public class ParametricCallable extends AParametricCallable {
|
||||
@Override
|
||||
public Object call(String stringArguments, CommandLocals locals, String[] parentCommands) throws CommandException {
|
||||
// Test permission
|
||||
if (!testPermission(locals)) {
|
||||
if (parentCommands.length != 0 && !testPermission(locals)) {
|
||||
throw new CommandPermissionsException();
|
||||
}
|
||||
locals.putIfAbsent(CommandCallable.class, this);
|
||||
|
@ -221,7 +221,7 @@ public enum Style {
|
||||
* ChatColor.COLOR_CODE color code character. The alternate color code character will only be replaced
|
||||
* if it is immediately followed by 0-9, A-F, a-f, K-O, k-o, R or r.
|
||||
*
|
||||
* @param altColorChar The alternate color code character to replace. Ex: &
|
||||
* @param altColorChar The alternate color code character to replace. Ex: &
|
||||
* @param textToTranslate Text containing the alternate color code character.
|
||||
* @return Text containing the ChatColor.COLOR_CODE color code character.
|
||||
*/
|
||||
|
@ -99,7 +99,7 @@ public interface BlockType extends FawePattern, Comparable<BlockTypes> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the properties of this BlockType in a key->property mapping.
|
||||
* Gets the properties of this BlockType in a {@code key->property} mapping.
|
||||
*
|
||||
* @return The properties map
|
||||
*/
|
||||
|
@ -219,19 +219,24 @@ public enum BlockTypes implements BlockType {
|
||||
DARK_PRISMARINE_SLAB,
|
||||
DARK_PRISMARINE_STAIRS,
|
||||
DAYLIGHT_DETECTOR,
|
||||
DEAD_BRAIN_CORAL,
|
||||
DEAD_BRAIN_CORAL_BLOCK,
|
||||
DEAD_BRAIN_CORAL_FAN,
|
||||
DEAD_BRAIN_CORAL_WALL_FAN,
|
||||
DEAD_BUBBLE_CORAL,
|
||||
DEAD_BUBBLE_CORAL_BLOCK,
|
||||
DEAD_BUBBLE_CORAL_FAN,
|
||||
DEAD_BUBBLE_CORAL_WALL_FAN,
|
||||
DEAD_BUSH,
|
||||
DEAD_FIRE_CORAL,
|
||||
DEAD_FIRE_CORAL_BLOCK,
|
||||
DEAD_FIRE_CORAL_FAN,
|
||||
DEAD_FIRE_CORAL_WALL_FAN,
|
||||
DEAD_HORN_CORAL,
|
||||
DEAD_HORN_CORAL_BLOCK,
|
||||
DEAD_HORN_CORAL_FAN,
|
||||
DEAD_HORN_CORAL_WALL_FAN,
|
||||
DEAD_TUBE_CORAL,
|
||||
DEAD_TUBE_CORAL_BLOCK,
|
||||
DEAD_TUBE_CORAL_FAN,
|
||||
DEAD_TUBE_CORAL_WALL_FAN,
|
||||
@ -654,11 +659,6 @@ public enum BlockTypes implements BlockType {
|
||||
YELLOW_WOOL,
|
||||
ZOMBIE_HEAD,
|
||||
ZOMBIE_WALL_HEAD,
|
||||
DEAD_BRAIN_CORAL,
|
||||
DEAD_BUBBLE_CORAL,
|
||||
DEAD_FIRE_CORAL,
|
||||
DEAD_HORN_CORAL,
|
||||
DEAD_TUBE_CORAL,
|
||||
|
||||
;
|
||||
|
||||
|
@ -245,15 +245,20 @@ public enum ItemTypes implements ItemType {
|
||||
DARK_PRISMARINE_SLAB,
|
||||
DARK_PRISMARINE_STAIRS,
|
||||
DAYLIGHT_DETECTOR,
|
||||
DEAD_BRAIN_CORAL,
|
||||
DEAD_BRAIN_CORAL_BLOCK,
|
||||
DEAD_BRAIN_CORAL_FAN,
|
||||
DEAD_BUBBLE_CORAL,
|
||||
DEAD_BUBBLE_CORAL_BLOCK,
|
||||
DEAD_BUBBLE_CORAL_FAN,
|
||||
DEAD_BUSH,
|
||||
DEAD_FIRE_CORAL,
|
||||
DEAD_FIRE_CORAL_BLOCK,
|
||||
DEAD_FIRE_CORAL_FAN,
|
||||
DEAD_HORN_CORAL,
|
||||
DEAD_HORN_CORAL_BLOCK,
|
||||
DEAD_HORN_CORAL_FAN,
|
||||
DEAD_TUBE_CORAL,
|
||||
DEAD_TUBE_CORAL_BLOCK,
|
||||
DEAD_TUBE_CORAL_FAN,
|
||||
DEBUG_STICK,
|
||||
|
@ -46,8 +46,8 @@ public abstract class ChunkStore implements Closeable {
|
||||
public static final int DATA_VERSION_MC_1_13 = 1519;
|
||||
|
||||
/**
|
||||
* >> to chunk
|
||||
* << from chunk
|
||||
* {@code >>} - to chunk
|
||||
* {@code <<} - from chunk
|
||||
*/
|
||||
public static final int CHUNK_SHIFTS = 4;
|
||||
|
||||
|
Reference in New Issue
Block a user