本文整理了Java中net.minecraft.world.World.isBlockFullCube()
方法的一些代码示例,展示了World.isBlockFullCube()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。World.isBlockFullCube()
方法的具体详情如下:
包路径:net.minecraft.world.World
类名称:World
方法名:isBlockFullCube
暂无
代码示例来源:origin: Vazkii/Botania
double d3 = Double.MAX_VALUE;
if (!world.isBlockFullCube(blockpos.west()) && d0 < d3)
if (!world.isBlockFullCube(blockpos.east()) && 1.0D - d0 < d3)
if (!world.isBlockFullCube(blockpos.north()) && d2 < d3)
if (!world.isBlockFullCube(blockpos.south()) && 1.0D - d2 < d3)
if (!world.isBlockFullCube(blockpos.up()) && 1.0D - d1 < d3)
代码示例来源:origin: SleepyTrousers/EnderIO
@Override
public boolean isBlockFullCube(@Nonnull BlockPos pos) {
return wrapped.isBlockFullCube(pos);
}
代码示例来源:origin: amadornes/MCMultiPart
@Override
public boolean isBlockFullCube(BlockPos pos) {
return getActualWorld().isBlockFullCube(pos);
}
代码示例来源:origin: Glitchfiend/ToughAsNails
private boolean canFill(BlockPos pos)
{
//Only spread within enclosed areas, significantly reduces the impact on performance and suits the purpose of coils
return !this.getWorld().isBlockFullCube(pos) && (!this.getWorld().canSeeSky(pos));
}
代码示例来源:origin: JurassiCraftTeam/JurassiCraft2
@Override
public void onUpdate() {
super.onUpdate();
Animation curAni = this.getAnimation();
boolean climbing = curAni == EntityAnimation.CLIMBING.get() || curAni == EntityAnimation.START_CLIMBING.get();
if (climbing) {
BlockPos trunk = new BlockPos(this.posX, this.getEntityBoundingBox().minY, this.posZ);
for (EnumFacing facing : EnumFacing.HORIZONTALS) {
if (!world.isAirBlock(trunk.offset(facing)) && this.world.isBlockFullCube(trunk.offset(facing))) {
this.rotationYawHead = this.prevRotationYawHead = this.rotationYaw = this.prevRotationYaw = facing.getHorizontalAngle();
this.renderYawOffset = this.prevRenderYawOffset = this.rotationYaw;
this.newPosRotationIncrements = 0;
break;
}
}
}
}
代码示例来源:origin: Alex-the-666/Ice_and_Fire
worldIn.setBlockState(blockpos, Blocks.MOSSY_COBBLESTONE.getDefaultState(), 3);
if(blockpos.getY() <= position.getY() - 1 && !worldIn.isBlockFullCube(blockpos)){
worldIn.setBlockState(blockpos, Blocks.COBBLESTONE.getDefaultState(), 3);
内容来源于网络,如有侵权,请联系作者删除!