2021-05-17 03:02:24 +08:00
|
|
|
package com.gtnewhorizon.structurelib.structure;
|
|
|
|
|
|
|
|
|
|
import net.minecraft.block.Block;
|
|
|
|
|
import net.minecraft.world.World;
|
|
|
|
|
|
|
|
|
|
public interface ICustomBlockSetting {
|
2023-01-30 12:52:27 +00:00
|
|
|
|
2022-07-08 17:14:18 +08:00
|
|
|
/**
|
|
|
|
|
* Default block setting calls {@link World#setBlock(int x, int y, int z, Block block, int meta, int updateType)}
|
|
|
|
|
* like: {@code world.setBlock(x,y,z,this/block,meta,2)} where updateType 2 means to update lighting and stuff
|
|
|
|
|
*
|
|
|
|
|
* @param world world that should be affected
|
|
|
|
|
* @param x x position to set
|
|
|
|
|
* @param y y position to set
|
|
|
|
|
* @param z z position to set
|
|
|
|
|
* @param meta required meta
|
|
|
|
|
*/
|
|
|
|
|
void setBlock(World world, int x, int y, int z, int meta);
|
2021-05-17 03:02:24 +08:00
|
|
|
}
|