yarn/mappings/net/minecraft/world/ModifiableWorld.mapping

65 lines
4.0 KiB
Plaintext
Raw Normal View History

2019-06-28 17:55:20 -04:00
CLASS net/minecraft/class_1945 net/minecraft/world/ModifiableWorld
COMMENT Represents a modifiable world where block states can be changed and entities spawned.
METHOD method_22352 breakBlock (Lnet/minecraft/class_2338;Z)Z
ARG 1 pos
ARG 2 drop
METHOD method_30092 setBlockState (Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;II)Z
COMMENT Updates the block state at a position, calling appropriate callbacks.
COMMENT
COMMENT <p>When called on the server, the new block state is stored and propagated to clients and listeners as dictated
COMMENT by the supplied flags. Note that calling this on the client will update the world locally, but may not see the
COMMENT change persisted across loads. It's recommended to check whether this world is client before
COMMENT interacting with the world in this way.</p>
COMMENT
COMMENT <p>Accepted values of the flags are a bitset combination of the following:</p>
COMMENT <ul>
COMMENT <li>0b0000001 // 1 - PROPAGATE_CHANGE - Propagates a change event to surrounding blocks.</li>
COMMENT <li>0b0000010 // 2 - NOTIFY_LISTENERS - Notifies listeners and clients who need to react when the block changes</li>
COMMENT <li>0b0000100 // 4 - NO_REDRAW - Used in conjunction with NOTIFY_LISTENERS to suppress the render pass on clients.</li>
COMMENT <li>0b0001000 // 8 - REDRAW_ON_MAIN_THREAD - Forces a synchronous redraw on clients.</li>
COMMENT <li>0b0010000 // 16 - FORCE_STATE - Bypass virtual block state changes and forces the passed state to be stored as-is.</li>
COMMENT <li>0b0100000 // 32 - SKIP_DROPS - Prevents the previous block (container) from dropping items when destroyed.</li>
COMMENT <li>0b1000000 // 64 - MOVED - Signals that the current block is being moved to a different location, usually because of a piston.</li>
COMMENT </ul>
ARG 1 pos
COMMENT the target position
ARG 2 state
COMMENT the block state to set
ARG 3 flags
COMMENT the bitwise flag combination, as described above
ARG 4 maxUpdateDepth
COMMENT the limit for the cascading block updates
2019-06-28 17:55:20 -04:00
METHOD method_8649 spawnEntity (Lnet/minecraft/class_1297;)Z
ARG 1 entity
METHOD method_8650 removeBlock (Lnet/minecraft/class_2338;Z)Z
ARG 1 pos
ARG 2 move
2019-08-28 13:46:02 -04:00
METHOD method_8651 breakBlock (Lnet/minecraft/class_2338;ZLnet/minecraft/class_1297;)Z
2019-06-28 17:55:20 -04:00
ARG 1 pos
ARG 2 drop
ARG 3 breakingEntity
2019-06-28 17:55:20 -04:00
METHOD method_8652 setBlockState (Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;I)Z
COMMENT Updates the block state at a position, calling appropriate callbacks.
COMMENT
COMMENT <p>When called on the server, the new block state is stored and propagated to clients and listeners as dictated
COMMENT by the supplied flags. Note that calling this on the client will update the world locally, but may not see the
COMMENT change persisted across loads. It's recommended to check whether this world is client before
COMMENT interacting with the world in this way.</p>
COMMENT
COMMENT <p>Accepted values of the flags are a bitset combination of the following:</p>
COMMENT <ul>
COMMENT <li>0b0000001 // 1 - PROPAGATE_CHANGE - Propagates a change event to surrounding blocks.</li>
COMMENT <li>0b0000010 // 2 - NOTIFY_LISTENERS - Notifies listeners and clients who need to react when the block changes</li>
COMMENT <li>0b0000100 // 4 - NO_REDRAW - Used in conjunction with NOTIFY_LISTENERS to suppress the render pass on clients.</li>
COMMENT <li>0b0001000 // 8 - REDRAW_ON_MAIN_THREAD - Forces a synchronous redraw on clients.</li>
COMMENT <li>0b0010000 // 16 - FORCE_STATE - Bypass virtual block state changes and forces the passed state to be stored as-is.</li>
COMMENT <li>0b0100000 // 32 - SKIP_DROPS - Prevents the previous block (container) from dropping items when destroyed.</li>
COMMENT <li>0b1000000 // 64 - MOVED - Signals that the current block is being moved to a different location, usually because of a piston.</li>
COMMENT </ul>
2018-12-05 09:11:37 -05:00
ARG 1 pos
COMMENT the target position
2018-12-05 09:11:37 -05:00
ARG 2 state
COMMENT the block state to set
2019-01-09 12:20:38 -05:00
ARG 3 flags
COMMENT the bitwise flag combination, as described above