World wherever appropriate@Deprecated public abstract class LocalWorld extends AbstractWorld
World. New implementations
should use AbstractWorld when possible.| Constructor and Description |
|---|
LocalWorld()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
generateBigTree(EditSession editSession,
Vector pt)
Deprecated.
|
boolean |
generateBirchTree(EditSession editSession,
Vector pt)
Deprecated.
|
boolean |
generateRedwoodTree(EditSession editSession,
Vector pt)
Deprecated.
|
boolean |
generateTallRedwoodTree(EditSession editSession,
Vector pt)
Deprecated.
|
boolean |
generateTree(EditSession editSession,
Vector pt)
Deprecated.
|
boolean |
generateTree(TreeGenerator.TreeType type,
EditSession editSession,
Vector pt)
Deprecated.
Generate a tree at the given position.
|
BaseBlock |
getLazyBlock(Vector position)
Deprecated.
Get a lazy, immutable snapshot of the block at the given location that only
immediately contains information about the block's type (and metadata).
|
checkLoadedChunk, commit, createLiquidMask, dropItem, fixAfterFastMode, fixLighting, getBlockData, getBlockType, getMaximumPoint, getMaxY, getMinimumPoint, isValidBlockType, playEffect, queueBlockBreakEffect, setBlock, setBlockData, setBlockType, setTypeIdAndData, simulateBlockMine, usesBlockDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearContainerBlockContents, dropItem, equals, getBlockLightLevel, getName, getWorldData, hashCode, regenerate, setBlockcreateEntity, getEntities, getEntitiesgetBiome, getBlocksetBiomepublic BaseBlock getLazyBlock(Vector position)
InputExtentFurther information (such as NBT data) will be available by the time of access. Therefore, it is not recommended that this method is used if the world is being simulated at the time of call. If the block needs to be stored for future use, then this method should definitely not be used. Moreover, the block that is returned is immutable (or should be), and therefore modifications should not be attempted on it. If a modifiable copy is required, then the block should be cloned.
This method exists because it is sometimes important to inspect the block
at a given location, but InputExtent.getBlock(Vector) may be too expensive in
the underlying implementation. It is also not possible to implement
caching if the returned object is mutable, so this methods allows caching
implementations to be used.
position - position of the blockpublic boolean generateTree(TreeGenerator.TreeType type, EditSession editSession, Vector pt) throws MaxChangedBlocksException
Worldtype - the tree typeeditSession - the EditSessionpt - the positionMaxChangedBlocksException - thrown if too many blocks were changedpublic boolean generateTree(EditSession editSession, Vector pt) throws MaxChangedBlocksException
generateTree in interface WorldgenerateTree in class AbstractWorldMaxChangedBlocksExceptionpublic boolean generateBigTree(EditSession editSession, Vector pt) throws MaxChangedBlocksException
generateBigTree in interface WorldgenerateBigTree in class AbstractWorldMaxChangedBlocksExceptionpublic boolean generateBirchTree(EditSession editSession, Vector pt) throws MaxChangedBlocksException
generateBirchTree in interface WorldgenerateBirchTree in class AbstractWorldMaxChangedBlocksExceptionpublic boolean generateRedwoodTree(EditSession editSession, Vector pt) throws MaxChangedBlocksException
generateRedwoodTree in interface WorldgenerateRedwoodTree in class AbstractWorldMaxChangedBlocksExceptionpublic boolean generateTallRedwoodTree(EditSession editSession, Vector pt) throws MaxChangedBlocksException
generateTallRedwoodTree in interface WorldgenerateTallRedwoodTree in class AbstractWorldMaxChangedBlocksExceptionCopyright © 2010-2014. All Rights Reserved.