本文整理了Java中net.minecraft.world.World.notifyNeighborsRespectDebug()
方法的一些代码示例,展示了World.notifyNeighborsRespectDebug()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。World.notifyNeighborsRespectDebug()
方法的具体详情如下:
包路径:net.minecraft.world.World
类名称:World
方法名:notifyNeighborsRespectDebug
暂无
代码示例来源:origin: SleepyTrousers/EnderIO
@Override
public void notifyNeighborsRespectDebug(@Nonnull BlockPos pos, @Nonnull Block blockType, boolean p_175722_3_) {
wrapped.notifyNeighborsRespectDebug(pos, blockType, p_175722_3_);
}
代码示例来源:origin: amadornes/MCMultiPart
@Override
public void notifyNeighborsRespectDebug(BlockPos pos, Block blockType, boolean notifyObservers) {
if (this.worldInfo.getTerrainType() != WorldType.DEBUG_ALL_BLOCK_STATES) {
part.getContainer().getParts().values().forEach(i -> {
if (i != part) {
i.getPart().onPartChanged(i, part);
}
});
}
getActualWorld().notifyNeighborsRespectDebug(pos, blockType, notifyObservers);
}
代码示例来源:origin: P3pp3rF1y/AncientWarfare2
public void setDisguiseState(ItemStack itemStack) {
Block block = Block.getBlockFromItem(itemStack.getItem());
if (block != AWStructureBlocks.SOUND_BLOCK && block.isFullCube(null) && block.isOpaqueCube(null)) {
disguiseState = block.getStateFromMeta(itemStack.getMetadata());
BlockTools.notifyBlockUpdate(this);
world.notifyNeighborsRespectDebug(pos, this.blockType, true);
markDirty();
}
}
代码示例来源:origin: RS485/LogisticsPipes
@Override
public void processPacket(EntityPlayer player) {
final LogisticsSolderingTileEntity tile = this.getTile(player.world, LogisticsSolderingTileEntity.class);
if (tile != null) {
int old = tile.heat;
tile.heat = getInteger();
if ((tile.heat == 0 && old != 0) || (tile.heat != 0 && old == 0)) {
player.world.notifyNeighborsRespectDebug(new BlockPos(getPosX(), getPosY(), getPosZ()), player.world.getBlockState(new BlockPos(getPosX(), getPosY(), getPosZ())).getBlock(), true);
}
}
}
}
代码示例来源:origin: RS485/LogisticsPipes
@Override
public void processPacket(EntityPlayer player) {
IRotationProvider tile = this.getTileOrPipe(player.world, IRotationProvider.class);
if (tile != null) {
tile.setRotation(getInteger());
player.world.notifyNeighborsRespectDebug(new BlockPos(getPosX(), getPosY(), getPosZ()), player.world.getBlockState(new BlockPos(getPosX(), getPosY(), getPosZ())).getBlock(), true);
}
}
}
代码示例来源:origin: MrCrayfish/MrCrayfishFurnitureMod
worldIn.notifyNeighborsRespectDebug(pos, FurnitureBlocks.MODERN_BED_BOTTOM, false);
worldIn.notifyNeighborsRespectDebug(otherPos, FurnitureBlocks.MODERN_BED_TOP, false);
代码示例来源:origin: TerraFirmaCraft/TerraFirmaCraft
worldIn.notifyNeighborsRespectDebug(blockpos1, template$blockinfo2.blockState.getBlock(), false);
内容来源于网络,如有侵权,请联系作者删除!