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, useItem, usesBlockData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearContainerBlockContents, dropItem, equals, getBlockLightLevel, getName, getWorldData, hashCode, regenerate, setBlock
createEntity, getEntities, getEntities
getBiome, getBlock
setBiome
public BaseBlock getLazyBlock(Vector position)
InputExtent
Further 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
World
type
- the tree typeeditSession
- the EditSession
pt
- the positionMaxChangedBlocksException
- thrown if too many blocks were changedpublic boolean generateTree(EditSession editSession, Vector pt) throws MaxChangedBlocksException
generateTree
in interface World
generateTree
in class AbstractWorld
MaxChangedBlocksException
public boolean generateBigTree(EditSession editSession, Vector pt) throws MaxChangedBlocksException
generateBigTree
in interface World
generateBigTree
in class AbstractWorld
MaxChangedBlocksException
public boolean generateBirchTree(EditSession editSession, Vector pt) throws MaxChangedBlocksException
generateBirchTree
in interface World
generateBirchTree
in class AbstractWorld
MaxChangedBlocksException
public boolean generateRedwoodTree(EditSession editSession, Vector pt) throws MaxChangedBlocksException
generateRedwoodTree
in interface World
generateRedwoodTree
in class AbstractWorld
MaxChangedBlocksException
public boolean generateTallRedwoodTree(EditSession editSession, Vector pt) throws MaxChangedBlocksException
generateTallRedwoodTree
in interface World
generateTallRedwoodTree
in class AbstractWorld
MaxChangedBlocksException