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 COMMENT Removes the block and replaces it with the fluid occupying the block COMMENT (such as water inside kelp), or air if it does not exist. Additionally, COMMENT this emits the {@linkplain WorldEvents#BLOCK_BROKEN world event} COMMENT and the {@linkplain net.minecraft.world.event.GameEvent#BLOCK_DESTROY game event}. COMMENT COMMENT @return whether the block was removed successfully COMMENT COMMENT @see #removeBlock(BlockPos, boolean) COMMENT @see #breakBlock(BlockPos, boolean, Entity) 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

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. COMMENT COMMENT

See {@link #setBlockState(BlockPos, BlockState, int)} for a list of accepted flags. 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 METHOD method_30093 breakBlock (Lnet/minecraft/class_2338;ZLnet/minecraft/class_1297;I)Z COMMENT Removes the block and replaces it with the fluid occupying the block COMMENT (such as water inside kelp), or air if it does not exist. Additionally, COMMENT this emits the {@linkplain WorldEvents#BLOCK_BROKEN world event} COMMENT and the {@linkplain net.minecraft.world.event.GameEvent#BLOCK_DESTROY game event}. COMMENT COMMENT @return whether the block was removed successfully COMMENT COMMENT @see #breakBlock(BlockPos, boolean) COMMENT @see #breakBlock(BlockPos, boolean, Entity) ARG 1 pos ARG 2 drop ARG 3 breakingEntity ARG 4 maxUpdateDepth METHOD method_8649 spawnEntity (Lnet/minecraft/class_1297;)Z COMMENT Spawns an entity. COMMENT COMMENT @apiNote To spawn an entity with passengers, use COMMENT {@link ServerWorldAccess#spawnEntityAndPassengers}. COMMENT COMMENT @see ServerWorldAccess#spawnEntityAndPassengers ARG 1 entity METHOD method_8650 removeBlock (Lnet/minecraft/class_2338;Z)Z COMMENT Removes the block and replaces it with the fluid occupying the block COMMENT (such as water inside kelp), or air if it does not exist. COMMENT COMMENT @implNote This does not emit the {@linkplain WorldEvents#BLOCK_BROKEN world event} COMMENT or the {@linkplain net.minecraft.world.event.GameEvent#BLOCK_DESTROY game event}. COMMENT COMMENT @return whether the block was removed successfully COMMENT COMMENT @see #breakBlock(BlockPos, boolean) ARG 1 pos ARG 2 move COMMENT whether the block was removed as part of piston moving blocks METHOD method_8651 breakBlock (Lnet/minecraft/class_2338;ZLnet/minecraft/class_1297;)Z COMMENT Removes the block and replaces it with the fluid occupying the block COMMENT (such as water inside kelp), or air if it does not exist. Additionally, COMMENT this emits the {@linkplain WorldEvents#BLOCK_BROKEN world event} COMMENT and the {@linkplain net.minecraft.world.event.GameEvent#BLOCK_DESTROY game event}. COMMENT COMMENT @return whether the block was removed successfully COMMENT COMMENT @see #breakBlock(BlockPos, boolean) COMMENT @see #breakBlock(BlockPos, boolean, Entity, int) ARG 1 pos ARG 2 drop ARG 3 breakingEntity 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

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. COMMENT COMMENT

The accepted values of these flags are: COMMENT

COMMENT COMMENT @see #setBlockState(BlockPos, BlockState, int, int) 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