Package org.spongepowered.api.world
Class BlockChangeFlags
java.lang.Object
org.spongepowered.api.world.BlockChangeFlags
An enumeration of the possible 
BlockChangeFlags.
 BlockChangeFlags can be combined using the
 BlockChangeFlag.andFlag(BlockChangeFlag) and
 BlockChangeFlag.andNotFlag(BlockChangeFlag) operators.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final BlockChangeFlagAll the available flags are applied through the OR operator.static final BlockChangeFlagThe default flags for a placement event, such as a player placing a block, another entity placing a block, etc.static final BlockChangeFlagNo flags are set, triggers nothing, the following flags are as such:BlockChangeFlag.notifyClients()isfalseBlockChangeFlag.updateNeighbors()()} isfalseBlockChangeFlag.forceClientRerender()isfalseBlockChangeFlag.ignoreRender()isfalseBlockChangeFlag.movingBlocks()isfalseBlockChangeFlag.updateLighting()isfalseBlockChangeFlag.updateNeighboringShapes()isfalseBlockChangeFlag.performBlockPhysics()isfalseBlockChangeFlag.notifyPathfinding()isfalsestatic final BlockChangeFlagSends block changes to clients but does not trigger block updates or other neighboring notification updates.
- 
Method Summary
- 
Field Details- 
ALLAll the available flags are applied through the OR operator.
- 
DEFAULT_PLACEMENTThe default flags for a placement event, such as a player placing a block, another entity placing a block, etc.Note: While players are normally placing blocks with this flag, there's other circumstances of placing a block "as" a Playerthat are covered outside the purview of this default placement flag.
- 
NONENo flags are set, triggers nothing, the following flags are as such:- BlockChangeFlag.notifyClients()is- false
- BlockChangeFlag.updateNeighbors()()} is- false
- BlockChangeFlag.forceClientRerender()is- false
- BlockChangeFlag.ignoreRender()is- false
- BlockChangeFlag.movingBlocks()is- false
- BlockChangeFlag.updateLighting()is- false
- BlockChangeFlag.updateNeighboringShapes()is- false
- BlockChangeFlag.performBlockPhysics()is- false
- BlockChangeFlag.notifyPathfinding()is- false
 
- 
NOTIFY_CLIENTSSends block changes to clients but does not trigger block updates or other neighboring notification updates. It does enable lighting updates, usually much more preferred to having a "minimal"
 
-