| Modifier and Type | Method and Description |
|---|---|
BaseBlock |
WorldEdit.getBlock(Player player,
String id)
Deprecated.
|
BaseBlock |
WorldEdit.getBlock(Player player,
String arg,
boolean allAllowed)
Deprecated.
|
BaseBlock |
WorldEdit.getBlock(Player player,
String arg,
boolean allAllowed,
boolean allowNoData)
Deprecated.
|
BaseBlock |
EditSession.getBlock(Vector position) |
BaseBlock |
CuboidClipboard.getBlock(Vector position)
Deprecated.
Get the block at the given position.
|
BaseBlock |
LocalWorld.getLazyBlock(Vector position)
Deprecated.
|
BaseBlock |
EditSession.getLazyBlock(Vector position) |
BaseBlock |
CuboidClipboard.getPoint(Vector position)
Deprecated.
use
CuboidClipboard.getBlock(Vector) instead |
BaseBlock |
EditSession.rawGetBlock(Vector position)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
List<Countable<BaseBlock>> |
CuboidClipboard.getBlockDistributionWithData()
Deprecated.
Get the block distribution inside a clipboard with data values.
|
List<Countable<BaseBlock>> |
EditSession.getBlockDistributionWithData(Region region)
Get the block distribution (with data values) inside a region.
|
Set<BaseBlock> |
WorldEdit.getBlocks(Player player,
String list)
Deprecated.
|
Set<BaseBlock> |
WorldEdit.getBlocks(Player player,
String list,
boolean allAllowed)
Deprecated.
|
Set<BaseBlock> |
WorldEdit.getBlocks(Player player,
String list,
boolean allAllowed,
boolean allowNoData)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
int |
EditSession.fillXZ(Vector origin,
BaseBlock block,
double radius,
int depth,
boolean recursive)
Fills an area recursively in the X/Z directions.
|
int |
EditSession.makeCuboidFaces(Region region,
BaseBlock block)
Make the faces of the given region as if it was a
CuboidRegion. |
int |
EditSession.makeCuboidWalls(Region region,
BaseBlock block)
Make the walls (all faces but those parallel to the X-Z plane) of the given region
as if it was a
CuboidRegion. |
int |
EditSession.moveCuboidRegion(Region region,
Vector dir,
int distance,
boolean copyAir,
BaseBlock replacement)
Move the blocks in a region a certain direction.
|
int |
EditSession.moveRegion(Region region,
Vector dir,
int distance,
boolean copyAir,
BaseBlock replacement)
Move the blocks in a region a certain direction.
|
int |
EditSession.overlayCuboidBlocks(Region region,
BaseBlock block)
Places a layer of blocks on top of ground blocks in the given region
(as if it were a cuboid).
|
boolean |
EditSession.rawSetBlock(Vector position,
BaseBlock block)
Set a block, bypassing both history and block re-ordering.
|
void |
EditSession.rememberChange(Vector position,
BaseBlock existing,
BaseBlock block)
Deprecated.
Get the change set with
EditSession.getChangeSet() and add the change with that |
int |
EditSession.replaceBlocks(Region region,
Set<BaseBlock> filter,
BaseBlock replacement)
Replaces all the blocks matching a given filter, within a given region, to a block
returned by a given pattern.
|
boolean |
EditSession.setBlock(Vector position,
BaseBlock block) |
void |
CuboidClipboard.setBlock(Vector position,
BaseBlock block)
Deprecated.
Set the block at a position in the clipboard.
|
boolean |
EditSession.setBlock(Vector position,
BaseBlock block,
EditSession.Stage stage)
Set a block, bypassing both history and block re-ordering.
|
boolean |
EditSession.setBlockIfAir(Vector position,
BaseBlock block)
Deprecated.
Use your own method
|
int |
EditSession.setBlocks(Region region,
BaseBlock block)
Sets all the blocks inside a region to a given block type.
|
boolean |
EditSession.setChanceBlockIfAir(Vector position,
BaseBlock block,
double probability)
Set a block (only if a previous block was not there) if
Math.random()
returns a number less than the given probability. |
boolean |
EditSession.smartSetBlock(Vector position,
BaseBlock block)
Set a block, bypassing history but still utilizing block re-ordering.
|
| Modifier and Type | Method and Description |
|---|---|
int |
EditSession.countBlocks(Region region,
Set<BaseBlock> searchBlocks)
Count the number of blocks of a list of types in a region.
|
int |
EditSession.replaceBlocks(Region region,
Set<BaseBlock> filter,
BaseBlock replacement)
Replaces all the blocks matching a given filter, within a given region, to a block
returned by a given pattern.
|
int |
EditSession.replaceBlocks(Region region,
Set<BaseBlock> filter,
Pattern pattern)
Replaces all the blocks matching a given filter, within a given region, to a block
returned by a given pattern.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ChestBlock
Represents a chest block.
|
class |
ContainerBlock
Represents a block that stores items.
|
class |
DispenserBlock
Represents dispensers.
|
class |
FurnaceBlock
Represents a furnace block.
|
class |
LazyBlock
A implementation of a lazy block for
InputExtent.getLazyBlock(Vector)
that takes the block's ID and metadata, but will defer loading of NBT
data until time of access. |
class |
MobSpawnerBlock
A mob spawner block.
|
class |
NoteBlock
A note block.
|
class |
SignBlock
Represents a sign block.
|
class |
SkullBlock
A skull block.
|
| Modifier and Type | Method and Description |
|---|---|
BaseBlock |
BaseBlock.flip()
Deprecated.
|
BaseBlock |
BaseBlock.flip(CuboidClipboard.FlipDirection direction)
Deprecated.
Use
BlockData#flip(int, int, FlipDirection) |
static BaseBlock |
BlockType.getBlockForItem(int typeId,
int data)
Get the equivalent block for an item.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
BlockType.canPassThrough(BaseBlock block)
Checks whether a block can be passed through.
|
static double |
BlockType.centralTopLimit(BaseBlock block)
Returns the y offset a player falls to when falling onto the top of a block at xp+0.5/zp+0.5.
|
static boolean |
Blocks.containsFuzzy(Collection<? extends BaseBlock> collection,
BaseBlock o)
Checks whether a given block is in a list of base blocks.
|
static boolean |
BaseBlock.containsFuzzy(Collection<BaseBlock> collection,
BaseBlock o)
Deprecated.
|
boolean |
BaseBlock.equalsFuzzy(BaseBlock o)
Checks if the type is the same, and if data is the same if only data != -1.
|
static boolean |
BlockType.isNaturalTerrainBlock(BaseBlock block)
Checks if the block type is naturally occurring
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
Blocks.containsFuzzy(Collection<? extends BaseBlock> collection,
BaseBlock o)
Checks whether a given block is in a list of base blocks.
|
static boolean |
BaseBlock.containsFuzzy(Collection<BaseBlock> collection,
BaseBlock o)
Deprecated.
|
boolean |
BaseBlock.inIterable(Iterable<BaseBlock> iter)
Deprecated.
This method is silly, use
containsFuzzy(java.util.Collection, BaseBlock) instead. |
| Constructor and Description |
|---|
BaseBlock(BaseBlock other)
Create a clone of another block.
|
| Modifier and Type | Method and Description |
|---|---|
BaseBlock |
BukkitWorld.getBlock(Vector position) |
BaseBlock |
BukkitPlayer.getBlockInHand() |
BaseBlock |
BukkitWorld.getLazyBlock(Vector position) |
static BaseBlock |
BukkitUtil.toBlock(LocalWorld world,
org.bukkit.inventory.ItemStack itemStack) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
BukkitWorld.setBlock(Vector position,
BaseBlock block,
boolean notifyAndLight) |
| Modifier and Type | Method and Description |
|---|---|
BaseBlock |
BukkitImplAdapter.getBlock(org.bukkit.Location location)
Get the block at the given location.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
BukkitImplAdapter.setBlock(org.bukkit.Location location,
BaseBlock state,
boolean notifyAndLight)
Set the block at the given location.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RegionCommands.move(Player player,
EditSession editSession,
LocalSession session,
Region region,
int count,
Vector direction,
BaseBlock replace,
boolean moveSelection) |
| Constructor and Description |
|---|
BlockReplacer(BaseBlock targetBlock) |
LongRangeBuildTool(BaseBlock primary,
BaseBlock secondary) |
| Modifier and Type | Method and Description |
|---|---|
BaseBlock |
Player.getBlockInHand()
Get the Block that the player is holding.
|
| Modifier and Type | Method and Description |
|---|---|
Set<BaseBlock> |
BlockFactory.parseFromListInput(String input,
ParserContext context)
Return a set of blocks from a comma-delimited list of blocks.
|
| Modifier and Type | Method and Description |
|---|---|
BaseBlock |
AbstractPlayerActor.getBlockInHand() |
| Modifier and Type | Method and Description |
|---|---|
BaseBlock |
NullExtent.getBlock(Vector position) |
BaseBlock |
AbstractDelegateExtent.getBlock(Vector position) |
BaseBlock |
InputExtent.getBlock(Vector position)
Get a snapshot of the block at the given location.
|
BaseBlock |
NullExtent.getLazyBlock(Vector position) |
BaseBlock |
AbstractDelegateExtent.getLazyBlock(Vector position) |
BaseBlock |
InputExtent.getLazyBlock(Vector position)
Get a lazy, immutable snapshot of the block at the given location that only
immediately contains information about the block's type (and metadata).
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
NullExtent.setBlock(Vector position,
BaseBlock block) |
boolean |
OutputExtent.setBlock(Vector position,
BaseBlock block)
Change the block at the given location to the given block.
|
boolean |
AbstractDelegateExtent.setBlock(Vector location,
BaseBlock block) |
boolean |
MaskingExtent.setBlock(Vector location,
BaseBlock block) |
boolean |
ChangeSetExtent.setBlock(Vector location,
BaseBlock block) |
| Modifier and Type | Method and Description |
|---|---|
BaseBlock |
ForgetfulExtentBuffer.apply(Vector pos) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ForgetfulExtentBuffer.setBlock(Vector location,
BaseBlock block) |
| Modifier and Type | Method and Description |
|---|---|
BaseBlock |
LastAccessExtentCache.getLazyBlock(Vector position) |
| Modifier and Type | Method and Description |
|---|---|
BaseBlock |
BlockArrayClipboard.getBlock(Vector position) |
BaseBlock |
BlockArrayClipboard.getLazyBlock(Vector position) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
BlockArrayClipboard.setBlock(Vector position,
BaseBlock block) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
BlockBagExtent.setBlock(Vector position,
BaseBlock block) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractLoggingExtent.onBlockChange(Vector position,
BaseBlock newBlock)
Called when a block is being changed.
|
boolean |
AbstractLoggingExtent.setBlock(Vector position,
BaseBlock block) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
MultiStageReorder.setBlock(Vector location,
BaseBlock block) |
| Modifier and Type | Method and Description |
|---|---|
BaseBlock |
BlockTransformExtent.getBlock(Vector position) |
BaseBlock |
BlockTransformExtent.getLazyBlock(Vector position) |
static BaseBlock |
BlockTransformExtent.transform(BaseBlock block,
Transform transform,
BlockRegistry registry)
Transform the given block using the given transform.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
BlockTransformExtent.setBlock(Vector location,
BaseBlock block) |
static BaseBlock |
BlockTransformExtent.transform(BaseBlock block,
Transform transform,
BlockRegistry registry)
Transform the given block using the given transform.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
DataValidatorExtent.setBlock(Vector location,
BaseBlock block) |
boolean |
BlockChangeLimiter.setBlock(Vector location,
BaseBlock block) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
SurvivalModeExtent.setBlock(Vector location,
BaseBlock block) |
boolean |
FastModeExtent.setBlock(Vector location,
BaseBlock block) |
boolean |
BlockQuirkExtent.setBlock(Vector position,
BaseBlock block) |
boolean |
ChunkLoadingExtent.setBlock(Vector location,
BaseBlock block) |
| Modifier and Type | Method and Description |
|---|---|
Collection<BaseBlock> |
BlockMask.getBlocks()
Get the list of blocks that are tested with.
|
| Modifier and Type | Method and Description |
|---|---|
void |
BlockMask.add(BaseBlock... block)
Add the given blocks to the list of criteria.
|
| Modifier and Type | Method and Description |
|---|---|
void |
BlockMask.add(Collection<BaseBlock> blocks)
Add the given blocks to the list of criteria.
|
| Constructor and Description |
|---|
BlockMask(Extent extent,
BaseBlock... block)
Create a new block mask.
|
FuzzyBlockMask(Extent extent,
BaseBlock... block) |
| Constructor and Description |
|---|
BlockMask(Extent extent,
Collection<BaseBlock> blocks)
Create a new block mask.
|
FuzzyBlockMask(Extent extent,
Collection<BaseBlock> blocks) |
| Constructor and Description |
|---|
BlockMapEntryPlacer(Extent extent,
Iterator<Map.Entry<BlockVector,BaseBlock>> iterator)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
BaseBlock |
RandomPattern.apply(Vector position) |
BaseBlock |
Pattern.apply(Vector position)
Return a
BaseBlock for the given position. |
BaseBlock |
RepeatingExtentPattern.apply(Vector position) |
BaseBlock |
BlockPattern.apply(Vector position) |
BaseBlock |
ClipboardPattern.apply(Vector position) |
BaseBlock |
BlockPattern.getBlock()
Get the block.
|
| Modifier and Type | Method and Description |
|---|---|
void |
BlockPattern.setBlock(BaseBlock block)
Set the block that is returned.
|
| Constructor and Description |
|---|
BlockPattern(BaseBlock block)
Create a new pattern with the given block.
|
| Modifier and Type | Method and Description |
|---|---|
BaseBlock |
BlockChange.getCurrent()
Get the current block.
|
BaseBlock |
BlockChange.getPrevious()
Get the previous block.
|
| Constructor and Description |
|---|
BlockChange(BlockVector position,
BaseBlock previous,
BaseBlock current)
Create a new block change.
|
| Modifier and Type | Method and Description |
|---|---|
BaseBlock |
LocalWorldAdapter.getBlock(Vector position) |
BaseBlock |
LocalWorldAdapter.getLazyBlock(Vector position) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
LocalWorldAdapter.setBlock(Vector position,
BaseBlock block,
boolean notifyAndLight) |
| Modifier and Type | Method and Description |
|---|---|
BaseBlock |
WorldEditBinding.getBaseBlock(ArgumentStack context)
Gets an
BaseBlock from a ArgumentStack. |
| Modifier and Type | Method and Description |
|---|---|
void |
BlockMask.add(BaseBlock block)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
BlockMask.addAll(Collection<BaseBlock> blocks)
Deprecated.
|
| Constructor and Description |
|---|
BlockMask(BaseBlock... block)
Deprecated.
|
BlockMask(BaseBlock block)
Deprecated.
|
FuzzyBlockMask(BaseBlock... block)
Deprecated.
Create a new fuzzy block mask.
|
| Constructor and Description |
|---|
BlockMask(Set<BaseBlock> types)
Deprecated.
|
FuzzyBlockMask(Set<BaseBlock> filter)
Deprecated.
Create a new fuzzy block mask.
|
| Modifier and Type | Method and Description |
|---|---|
BaseBlock |
SingleBlockPattern.getBlock()
Deprecated.
Get the block.
|
BaseBlock |
BlockChance.getBlock()
Deprecated.
|
BaseBlock |
SingleBlockPattern.next(int x,
int y,
int z)
Deprecated.
|
BaseBlock |
Pattern.next(int x,
int y,
int z)
Deprecated.
Get a block for a position.
|
BaseBlock |
ClipboardPattern.next(int x,
int y,
int z) |
BaseBlock |
RandomFillPattern.next(int x,
int y,
int z)
Deprecated.
|
BaseBlock |
SingleBlockPattern.next(Vector position)
Deprecated.
|
BaseBlock |
Pattern.next(Vector position)
Deprecated.
Get a block for a position.
|
BaseBlock |
ClipboardPattern.next(Vector position) |
BaseBlock |
RandomFillPattern.next(Vector position)
Deprecated.
|
| Constructor and Description |
|---|
BlockChance(BaseBlock block,
double chance)
Deprecated.
Construct the object.
|
SingleBlockPattern(BaseBlock block)
Deprecated.
Construct the object.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract BaseBlock |
ArbitraryShape.getMaterial(int x,
int y,
int z,
BaseBlock defaultMaterial)
Override this function to specify the shape to generate.
|
protected BaseBlock |
RegionShape.getMaterial(int x,
int y,
int z,
BaseBlock defaultMaterial) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract BaseBlock |
ArbitraryShape.getMaterial(int x,
int y,
int z,
BaseBlock defaultMaterial)
Override this function to specify the shape to generate.
|
protected BaseBlock |
RegionShape.getMaterial(int x,
int y,
int z,
BaseBlock defaultMaterial) |
| Modifier and Type | Method and Description |
|---|---|
BaseBlock |
SchematicFormat.getBlockForId(int id,
short data) |
| Modifier and Type | Method and Description |
|---|---|
BaseBlock |
CraftScriptContext.getBlock(String id)
Get a block.
|
BaseBlock |
CraftScriptContext.getBlock(String input,
boolean allAllowed)
Get an item ID from an item name or an item ID number.
|
| Modifier and Type | Method and Description |
|---|---|
BaseBlock |
NullWorld.getBlock(Vector position) |
BaseBlock |
NullWorld.getLazyBlock(Vector position) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
AbstractWorld.setBlock(Vector pt,
BaseBlock block) |
boolean |
NullWorld.setBlock(Vector position,
BaseBlock block,
boolean notifyAndLight) |
boolean |
World.setBlock(Vector position,
BaseBlock block,
boolean notifyAndLight)
Similar to
OutputExtent.setBlock(Vector, BaseBlock) but a
notifyAndLight parameter indicates whether adjacent blocks
should be notified that changes have been made and lighting operations
should be executed. |
| Modifier and Type | Method and Description |
|---|---|
BaseBlock |
OldChunk.getBlock(Vector position) |
BaseBlock |
Chunk.getBlock(Vector position)
Get a block;
|
BaseBlock |
AnvilChunk.getBlock(Vector position) |
| Modifier and Type | Method and Description |
|---|---|
BaseBlock |
LegacyBlockRegistry.createFromId(int id) |
BaseBlock |
BlockRegistry.createFromId(int id)
Create a new block using its legacy numeric ID.
|
BaseBlock |
LegacyBlockRegistry.createFromId(String id) |
BaseBlock |
BlockRegistry.createFromId(String id)
Create a new block using its ID.
|
| Modifier and Type | Method and Description |
|---|---|
BlockMaterial |
LegacyBlockRegistry.getMaterial(BaseBlock block) |
BlockMaterial |
BlockRegistry.getMaterial(BaseBlock block)
Get the material for the given block.
|
Map<String,? extends State> |
LegacyBlockRegistry.getStates(BaseBlock block) |
Map<String,? extends State> |
BlockRegistry.getStates(BaseBlock block)
Get an unmodifiable map of states for this block.
|
StateValue |
State.getValue(BaseBlock block)
Get the value that the block is set to.
|
boolean |
StateValue.isSet(BaseBlock block)
Return whether this state is set on the given block.
|
boolean |
StateValue.set(BaseBlock block)
Set the state to this value on the given block.
|
Copyright © 2010-2014. All Rights Reserved.