Package org.spongepowered.api.world
Class BlockChangeFlags
java.lang.Object
org.spongepowered.api.world.BlockChangeFlags
An enumeration of the possible
BlockChangeFlag
s.
BlockChangeFlag
s can be combined using the
BlockChangeFlag.andFlag(BlockChangeFlag)
and
BlockChangeFlag.andNotFlag(BlockChangeFlag)
operators.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final BlockChangeFlag
All the available flags are applied through the OR operator.static final BlockChangeFlag
The default flags for a placement event, such as a player placing a block, another entity placing a block, etc.static final BlockChangeFlag
No flags are set, triggers nothing, the following flags are as such:BlockChangeFlag.notifyClients()
isfalse
BlockChangeFlag.updateNeighbors()
()} isfalse
BlockChangeFlag.forceClientRerender()
isfalse
BlockChangeFlag.ignoreRender()
isfalse
BlockChangeFlag.movingBlocks()
isfalse
BlockChangeFlag.updateLighting()
isfalse
BlockChangeFlag.updateNeighboringShapes()
isfalse
BlockChangeFlag.performBlockPhysics()
isfalse
BlockChangeFlag.notifyPathfinding()
isfalse
static final BlockChangeFlag
Sends 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
Player
that 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()
isfalse
BlockChangeFlag.updateNeighbors()
()} isfalse
BlockChangeFlag.forceClientRerender()
isfalse
BlockChangeFlag.ignoreRender()
isfalse
BlockChangeFlag.movingBlocks()
isfalse
BlockChangeFlag.updateLighting()
isfalse
BlockChangeFlag.updateNeighboringShapes()
isfalse
BlockChangeFlag.performBlockPhysics()
isfalse
BlockChangeFlag.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"
-