Package org.spongepowered.api.world
Class BlockChangeFlags
- java.lang.Object
-
- org.spongepowered.api.world.BlockChangeFlags
-
public final class BlockChangeFlags extends java.lang.Object
An enumeration of the possibleBlockChangeFlag
s.BlockChangeFlag
s can be combined using theBlockChangeFlag.andFlag(BlockChangeFlag)
andBlockChangeFlag.andNotFlag(BlockChangeFlag)
operators.
-
-
Field Summary
Fields Modifier and Type Field Description static BlockChangeFlag
ALL
All the available flags are applied through the OR operator.static BlockChangeFlag
DEFAULT_PLACEMENT
The default flags for a placement event, such as a player placing a block, another entity placing a block, etc.static BlockChangeFlag
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
static BlockChangeFlag
NOTIFY_CLIENTS
Sends 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
Player
that 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()
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
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"
-
-