Java Code Examples for

The following examples show how to use . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may want to check out the right sidebar which shows the related API usage.
Example 1
protected void notifyNeighborsOnSide(World worldIn, BlockPos pos, EnumFacing side) {
  BlockPos neighborPos = pos.offset(side);
  if (net.minecraftforge.event.ForgeEventFactory.onNeighborNotify(worldIn, pos, worldIn.getBlockState(pos), java.util.EnumSet.of(side), false)
      .isCanceled()) {
  worldIn.neighborChanged(neighborPos, this, pos);
  worldIn.notifyNeighborsOfStateExcept(neighborPos, this, side.getOpposite());