mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-05 20:36:42 +00:00
Added new Pattern interface.
This commit is contained in:
@ -22,10 +22,9 @@ package com.sk89q.worldedit.patterns;
|
||||
import com.sk89q.worldedit.blocks.BaseBlock;
|
||||
|
||||
/**
|
||||
* Gives a block a chance.
|
||||
*
|
||||
* @author sk89q
|
||||
* @deprecated Will be removed in the future -- there is no replacement
|
||||
*/
|
||||
@Deprecated
|
||||
public class BlockChance {
|
||||
/**
|
||||
* Block.
|
||||
|
@ -23,11 +23,9 @@ import com.sk89q.worldedit.*;
|
||||
import com.sk89q.worldedit.blocks.BaseBlock;
|
||||
|
||||
/**
|
||||
* Used to get the block to set. This can be used to implement a pattern
|
||||
* for when setting a region with blocks.
|
||||
*
|
||||
* @author sk89q
|
||||
* @deprecated See {@link com.sk89q.worldedit.function.pattern.Pattern}
|
||||
*/
|
||||
@Deprecated
|
||||
public interface Pattern {
|
||||
/**
|
||||
* Get a block for a position. This return value of this method does
|
||||
|
@ -19,17 +19,18 @@
|
||||
|
||||
package com.sk89q.worldedit.patterns;
|
||||
|
||||
import java.util.Random;
|
||||
import java.util.List;
|
||||
import java.util.ArrayList;
|
||||
import com.sk89q.worldedit.*;
|
||||
import com.sk89q.worldedit.Vector;
|
||||
import com.sk89q.worldedit.blocks.BaseBlock;
|
||||
import com.sk89q.worldedit.function.pattern.RandomPattern;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
/**
|
||||
* Pattern proportionally fills.
|
||||
*
|
||||
* @author sk89q
|
||||
* @deprecated See {@link RandomPattern}
|
||||
*/
|
||||
@Deprecated
|
||||
public class RandomFillPattern implements Pattern {
|
||||
/**
|
||||
* Random number generator.
|
||||
|
@ -21,12 +21,12 @@ package com.sk89q.worldedit.patterns;
|
||||
|
||||
import com.sk89q.worldedit.*;
|
||||
import com.sk89q.worldedit.blocks.BaseBlock;
|
||||
import com.sk89q.worldedit.function.pattern.BlockPattern;
|
||||
|
||||
/**
|
||||
* Always returns the same block type.
|
||||
*
|
||||
* @author sk89q
|
||||
* @deprecated See {@link BlockPattern}
|
||||
*/
|
||||
@Deprecated
|
||||
public class SingleBlockPattern implements Pattern {
|
||||
/**
|
||||
* Block type.
|
||||
|
Reference in New Issue
Block a user