| Modifier and Type | Method and Description |
|---|---|
BaseBlock |
WorldEdit.getBlock(LocalPlayer player,
String id)
Get a block.
|
BaseBlock |
WorldEdit.getBlock(LocalPlayer player,
String arg,
boolean allAllowed) |
BaseBlock |
WorldEdit.getBlock(LocalPlayer player,
String arg,
boolean allAllowed,
boolean allowNoData)
Get an item ID from an item name or an item ID number.
|
BaseBlock |
CuboidClipboard.getBlock(Vector pos)
Get one point in the copy.
|
BaseBlock |
LocalWorld.getBlock(Vector pt) |
BaseBlock |
EditSession.getBlock(Vector pt)
Gets the block type at a position x, y, z.
|
BaseBlock |
LocalPlayer.getBlockInHand()
Get the Block that the player is holding.
|
BaseBlock |
CuboidClipboard.getPoint(Vector pos)
Deprecated.
Use
CuboidClipboard.getBlock(Vector) instead |
BaseBlock |
EditSession.rawGetBlock(Vector pt)
Gets the block type at a position x, y, z.
|
| Modifier and Type | Method and Description |
|---|---|
List<Countable<BaseBlock>> |
CuboidClipboard.getBlockDistributionWithData()
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(LocalPlayer player,
String list) |
Set<BaseBlock> |
WorldEdit.getBlocks(LocalPlayer player,
String list,
boolean allAllowed) |
Set<BaseBlock> |
WorldEdit.getBlocks(LocalPlayer player,
String list,
boolean allAllowed,
boolean allowNoData) |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
LocalWorld.copyFromWorld(Vector pt,
BaseBlock block)
Attempts to read a BaseBlock's extra data from the world.
|
abstract boolean |
LocalWorld.copyToWorld(Vector pt,
BaseBlock block)
Attempts to accurately copy a BaseBlock's extra data to the world.
|
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 faces of the region (as if it was a cuboid if it's not).
|
int |
EditSession.makeCuboidWalls(Region region,
BaseBlock block)
Make walls of the region (as if it was a cuboid if it's not).
|
int |
EditSession.moveCuboidRegion(Region region,
Vector dir,
int distance,
boolean copyAir,
BaseBlock replace)
Move a cuboid region.
|
int |
EditSession.moveRegion(Region region,
Vector dir,
int distance,
boolean copyAir,
BaseBlock replace)
Move a region.
|
int |
EditSession.overlayCuboidBlocks(Region region,
BaseBlock block)
Overlays a layer of blocks over a cuboid area.
|
boolean |
EditSession.rawSetBlock(Vector pt,
BaseBlock block)
Sets a block without changing history.
|
void |
EditSession.rememberChange(Vector pt,
BaseBlock existing,
BaseBlock block)
Insert a contrived block change into the history.
|
int |
EditSession.replaceBlocks(Region region,
Set<BaseBlock> fromBlockTypes,
BaseBlock toBlock)
Replaces all the blocks of a type inside a region to another block type.
|
void |
CuboidClipboard.setBlock(Vector pt,
BaseBlock block)
Set one point in the copy.
|
boolean |
EditSession.setBlock(Vector pt,
BaseBlock block)
Sets the block at position x, y, z with a block type.
|
boolean |
EditSession.setBlockIfAir(Vector pt,
BaseBlock block)
Set a block only if there's no block already there.
|
int |
EditSession.setBlocks(Region region,
BaseBlock block)
Sets all the blocks inside a region to a certain block type.
|
boolean |
EditSession.setChanceBlockIfAir(Vector pos,
BaseBlock block,
double c)
Set a block by chance.
|
boolean |
EditSession.smartSetBlock(Vector pt,
BaseBlock block)
Actually set the block.
|
| 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> fromBlockTypes,
BaseBlock toBlock)
Replaces all the blocks of a type inside a region to another block type.
|
int |
EditSession.replaceBlocks(Region region,
Set<BaseBlock> fromBlockTypes,
Pattern pattern)
Replaces all the blocks of a type inside a region to another block type.
|
| 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 |
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()
Flip this block.
|
BaseBlock |
BaseBlock.flip(CuboidClipboard.FlipDirection direction)
Flip this block.
|
static BaseBlock |
BlockType.getBlockForItem(int typeId,
int data) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
BaseBlock.containsFuzzy(Collection<BaseBlock> collection,
BaseBlock o) |
boolean |
BaseBlock.equalsFuzzy(BaseBlock o)
Checks if the type is the same, and if data is the same if only data != -1.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
BaseBlock.containsFuzzy(Collection<BaseBlock> collection,
BaseBlock o) |
boolean |
BaseBlock.inIterable(Iterable<BaseBlock> iter)
Deprecated.
This method is silly, use
containsFuzzy(java.util.Collection, BaseBlock) instead. |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultNmsBlock
A blind handler of blocks with TileEntity data that directly access Minecraft's
classes through CraftBukkit.
|
class |
NmsBlock |
| Modifier and Type | Method and Description |
|---|---|
BaseBlock |
BukkitWorld.getBlock(Vector pt) |
BaseBlock |
BukkitPlayer.getBlockInHand() |
static BaseBlock |
BukkitUtil.toBlock(LocalWorld world,
org.bukkit.inventory.ItemStack itemStack) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
BukkitWorld.copyFromWorld(Vector pt,
BaseBlock block)
Attempts to read a BaseBlock's extra data from the world.
|
boolean |
BukkitWorld.copyToWorld(Vector pt,
BaseBlock block)
Attempts to accurately copy a BaseBlock's extra data to the world.
|
static boolean |
DefaultNmsBlock.set(org.bukkit.World world,
Vector position,
BaseBlock block)
Set an instance or a
TileEntityBlock to the given position. |
| Modifier and Type | Method and Description |
|---|---|
BaseBlock |
AnvilChunk.getBlock(Vector pos) |
BaseBlock |
OldChunk.getBlock(Vector pos) |
BaseBlock |
Chunk.getBlock(Vector pos)
Get a block;
|
| Modifier and Type | Method and Description |
|---|---|
void |
BlockMask.add(BaseBlock block) |
| Modifier and Type | Method and Description |
|---|---|
void |
BlockMask.addAll(Collection<BaseBlock> blocks) |
| Constructor and Description |
|---|
BlockMask(BaseBlock block) |
| Constructor and Description |
|---|
BlockMask(Set<BaseBlock> types) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
GroundFindingFunction.apply(Vector position,
BaseBlock block)
Apply the function to the given ground block.
|
protected boolean |
GroundScatterFunction.apply(Vector position,
BaseBlock block) |
protected boolean |
GroundFindingFunction.shouldPassThrough(Vector position,
BaseBlock block)
Returns whether the given block should be "passed through" when
conducting the ground search.
|
| Modifier and Type | Method and Description |
|---|---|
BaseBlock |
BlockChance.getBlock() |
BaseBlock |
SingleBlockPattern.getBlock()
Get the block.
|
BaseBlock |
Pattern.next(int x,
int y,
int z)
Get a block for a position.
|
BaseBlock |
RandomFillPattern.next(int x,
int y,
int z) |
BaseBlock |
SingleBlockPattern.next(int x,
int y,
int z) |
BaseBlock |
ClipboardPattern.next(int x,
int y,
int z)
Get next block.
|
BaseBlock |
Pattern.next(Vector pos)
Get a block for a position.
|
BaseBlock |
RandomFillPattern.next(Vector pos)
Get next block.
|
BaseBlock |
SingleBlockPattern.next(Vector pos)
Get next block.
|
BaseBlock |
ClipboardPattern.next(Vector pos)
Get next block.
|
| Constructor and Description |
|---|
BlockChance(BaseBlock block,
double chance)
Construct the object.
|
SingleBlockPattern(BaseBlock block)
Construct the object.
|
| 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 arg,
boolean allAllowed)
Get an item ID from an item name or an item ID number.
|
| Modifier and Type | Method and Description |
|---|---|
protected BaseBlock |
RegionShape.getMaterial(int x,
int y,
int z,
BaseBlock defaultMaterial) |
protected abstract BaseBlock |
ArbitraryShape.getMaterial(int x,
int y,
int z,
BaseBlock defaultMaterial)
Override this function to specify the shape to generate.
|
| Modifier and Type | Method and Description |
|---|---|
protected BaseBlock |
RegionShape.getMaterial(int x,
int y,
int z,
BaseBlock defaultMaterial) |
protected abstract BaseBlock |
ArbitraryShape.getMaterial(int x,
int y,
int z,
BaseBlock defaultMaterial)
Override this function to specify the shape to generate.
|
| Constructor and Description |
|---|
BlockReplacer(BaseBlock targetBlock) |
LongRangeBuildTool(BaseBlock primary,
BaseBlock secondary) |
Copyright © 2010-2014. All Rights Reserved.