本文整理了Java中net.minecraft.block.Block.isBurning()
方法的一些代码示例,展示了Block.isBurning()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Block.isBurning()
方法的具体详情如下:
包路径:net.minecraft.block.Block
类名称:Block
方法名:isBurning
暂无
代码示例来源:origin: amadornes/MCMultiPart
public default boolean isBurning(IBlockAccess world, BlockPos pos, IPartInfo part) {
return part.getState().getBlock().isBurning(world, pos);
}
代码示例来源:origin: RS485/LogisticsPipes
@Override
@ModDependentMethod(modId = LPConstants.mcmpModID)
public boolean isBurning(IBlockAccess world, BlockPos pos) {
Block block = mcmpBlockAccess.getBlock();
return block != null ? block.isBurning(world, pos) : super.isBurning(world, pos);
}
代码示例来源:origin: Alex-the-666/Ice_and_Fire
public PathNodeType checkNeighborBlocks(IBlockAccess p_193578_1_, int p_193578_2_, int p_193578_3_, int p_193578_4_, PathNodeType p_193578_5_) {
BlockPos.PooledMutableBlockPos blockpos$pooledmutableblockpos = BlockPos.PooledMutableBlockPos.retain();
if (p_193578_5_ == PathNodeType.WALKABLE) {
for (int i = -1; i <= 1; ++i) {
for (int j = -1; j <= 1; ++j) {
if (i != 0 || j != 0) {
Block block = p_193578_1_.getBlockState(blockpos$pooledmutableblockpos.setPos(i + p_193578_2_, p_193578_3_, j + p_193578_4_)).getBlock();
if (block == Blocks.CACTUS) {
p_193578_5_ = PathNodeType.DANGER_CACTUS;
} else if (block == Blocks.FIRE) {
p_193578_5_ = PathNodeType.DANGER_FIRE;
} else if (block.isBurning(p_193578_1_, blockpos$pooledmutableblockpos))
p_193578_5_ = PathNodeType.DAMAGE_FIRE;
}
}
}
}
blockpos$pooledmutableblockpos.release();
return p_193578_5_;
}
代码示例来源:origin: CoFH/CoFHCore
IBlockState state = chunk.getBlockState(pos);
Material m = state.getMaterial();
if (m == Material.FIRE || m == Material.LAVA || state.getBlock().isBurning(world, pos)) {
++blockCounter;
代码示例来源:origin: CoFH/CoFHCore
IBlockState state = chunk.getBlockState(pos);
Material m = state.getMaterial();
if (m == Material.FIRE || m == Material.LAVA || state.getBlock().isBurning(world, pos)) {
if (chunk.setBlockState(pos, replState) != null) {
++blockCounter;
代码示例来源:origin: CoFH/CoFHCore
IBlockState state = chunk.getBlockState(pos);
Material m = state.getMaterial();
if (m == Material.FIRE || m == Material.LAVA || state.getBlock().isBurning(world, bPos)) {
if (chunk.setBlockState(bPos, Blocks.AIR.getDefaultState()) != null) {
++blockCounter;
内容来源于网络,如有侵权,请联系作者删除!