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 Summary
FieldsModifier 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
-
ALL
All the available flags are applied through the OR operator. -
DEFAULT_PLACEMENT
The 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. -
NONE
No 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()isfalse
-
NOTIFY_CLIENTS
Sends 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"
-