Package org.spongepowered.api.world
Class BlockChangeFlags
- java.lang.Object
-
- org.spongepowered.api.world.BlockChangeFlags
-
public final class BlockChangeFlags extends Object
An enumeration of the possibleBlockChangeFlags.BlockChangeFlags can be combined using theBlockChangeFlag.andFlag(BlockChangeFlag)andBlockChangeFlag.andNotFlag(BlockChangeFlag)operators.
-
-
Field Summary
Fields Modifier and Type Field Description static BlockChangeFlagALLAll the available flags are applied through the OR operator.static BlockChangeFlagDEFAULT_PLACEMENTThe default flags for a placement event, such as a player placing a block, another entity placing a block, etc.static BlockChangeFlagNONENo 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 BlockChangeFlagNOTIFY_CLIENTSSends block changes to clients but does not trigger block updates or other neighboring notification updates.
-
-
-
Field Detail
-
ALL
public static final BlockChangeFlag ALL
All the available flags are applied through the OR operator.
-
DEFAULT_PLACEMENT
public static final BlockChangeFlag 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
public static final BlockChangeFlag 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
public static final BlockChangeFlag 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"
-
-