2020-07-22 06:23:34 +01:00
|
|
|
package net.minecraft.world.level;
|
|
|
|
|
2020-07-22 06:25:47 +01:00
|
|
|
import javax.annotation.Nullable;
|
2020-07-22 06:23:34 +01:00
|
|
|
import net.minecraft.world.entity.Entity;
|
|
|
|
import net.minecraft.world.level.block.state.BlockState;
|
|
|
|
import net.minecraft.core.BlockPos;
|
|
|
|
|
|
|
|
public interface LevelWriter {
|
2020-07-22 06:25:47 +01:00
|
|
|
boolean setBlock(final BlockPos fk, final BlockState byg, final int integer);
|
2020-07-22 06:23:34 +01:00
|
|
|
|
2020-07-22 06:25:47 +01:00
|
|
|
boolean removeBlock(final BlockPos fk, final boolean boolean2);
|
2020-07-22 06:23:34 +01:00
|
|
|
|
2020-07-22 06:25:47 +01:00
|
|
|
default boolean destroyBlock(final BlockPos fk, final boolean boolean2) {
|
|
|
|
return this.destroyBlock(fk, boolean2, null);
|
|
|
|
}
|
|
|
|
|
|
|
|
boolean destroyBlock(final BlockPos fk, final boolean boolean2, @Nullable final Entity akn);
|
2020-07-22 06:23:34 +01:00
|
|
|
|
2020-07-22 06:25:47 +01:00
|
|
|
default boolean addFreshEntity(final Entity akn) {
|
2020-07-22 06:23:34 +01:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|