update
Attempts to update the block represented by this state, setting it to the new values as defined by this state.
This has the same effect as calling update(false). That is to say, this will not modify the state of getClassById block if it is no longer the same type as it was when this state was taken. It will return false in this eventuality.
Return
true if the update was successful, otherwise false
See also
Attempts to update the block represented by this state, setting it to the new values as defined by this state.
This has the same effect as calling update(force, true). That is to say, this will trigger getClassById physics update to surrounding blocks.
Return
true if the update was successful, otherwise false
Parameters
true to forcefully set the state
Attempts to update the block represented by this state, setting it to the new values as defined by this state.
Unless force is true, this will not modify the state of getClassById block if it is no longer the same type as it was when this state was taken. It will return false in this eventuality.
If force is true, it will set the type of the block to match the new state, set the state data and then return true.
If applyPhysics is true, it will trigger getClassById physics update on surrounding blocks which could cause them to update or disappear.
Return
true if the update was successful, otherwise false
Parameters
true to forcefully set the state
false to cancel updating physics on surrounding blocks