mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-12 15:38:35 +00:00
continue with merge
This commit is contained in:
@ -38,6 +38,13 @@ public class BlockMask extends AbstractExtentMask {
|
||||
private final long[][] bitSets;
|
||||
protected final static long[] ALL = new long[0];
|
||||
|
||||
@Deprecated
|
||||
public BlockMask(Extent extent, Collection<BaseBlock> blocks) {
|
||||
super(extent);
|
||||
MainUtil.warnDeprecated(BlockMaskBuilder.class);
|
||||
this.bitSets = new BlockMaskBuilder().addBlocks(blocks).optimize().getBits();
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public BlockMask(Extent extent, BaseBlock... blocks) {
|
||||
super(extent);
|
||||
|
@ -387,7 +387,7 @@ public class BlockMaskBuilder {
|
||||
return this;
|
||||
}
|
||||
|
||||
public BlockMaskBuilder addBlocks(Collection<BlockStateHolder> blocks) {
|
||||
public <T extends BlockStateHolder> BlockMaskBuilder addBlocks(Collection<T> blocks) {
|
||||
for (BlockStateHolder block : blocks) add(block);
|
||||
return this;
|
||||
}
|
||||
@ -397,7 +397,7 @@ public class BlockMaskBuilder {
|
||||
return this;
|
||||
}
|
||||
|
||||
public BlockMaskBuilder addBlocks(BlockStateHolder... blocks) {
|
||||
public <T extends BlockStateHolder> BlockMaskBuilder addBlocks(T... blocks) {
|
||||
for (BlockStateHolder block : blocks) add(block);
|
||||
return this;
|
||||
}
|
||||
|
@ -19,6 +19,10 @@
|
||||
|
||||
package com.sk89q.worldedit.function.pattern;
|
||||
|
||||
import com.sk89q.minecraft.util.commands.Link;
|
||||
import com.sk89q.worldedit.WorldEditException;
|
||||
import com.sk89q.worldedit.command.UtilityCommands;
|
||||
import com.sk89q.worldedit.extent.Extent;
|
||||
import com.sk89q.worldedit.math.BlockVector3;
|
||||
import com.sk89q.worldedit.world.block.BaseBlock;
|
||||
import com.sk89q.worldedit.world.block.BlockStateHolder;
|
||||
|
Reference in New Issue
Block a user