use of mcjty.xnet.multiblock.XNetBlobData in project XNet by McJty.
the class CommandCheck method execute.
@Override
public void execute(MinecraftServer server, ICommandSender sender, String[] args) {
XNetBlobData data = XNetBlobData.getBlobData(server.getEntityWorld());
data.getWorldBlob(sender.getEntityWorld()).checkNetwork(server.getEntityWorld());
}
use of mcjty.xnet.multiblock.XNetBlobData in project XNet by McJty.
the class CommandDump method execute.
@Override
public void execute(MinecraftServer server, ICommandSender sender, String[] args) {
XNetBlobData data = XNetBlobData.getBlobData(server.getEntityWorld());
data.getWorldBlob(sender.getEntityWorld()).dump();
}
use of mcjty.xnet.multiblock.XNetBlobData in project XNet by McJty.
the class CommandRebuild method execute.
@Override
public void execute(MinecraftServer server, ICommandSender sender, String[] args) {
XNetBlobData data = XNetBlobData.getBlobData(server.getEntityWorld());
data.getWorldBlob(sender.getEntityWorld()).recalculateNetwork();
}
use of mcjty.xnet.multiblock.XNetBlobData in project XNet by McJty.
the class ControllerBlock method breakBlock.
@Override
public void breakBlock(World world, BlockPos pos, IBlockState state) {
if (!world.isRemote) {
XNetBlobData blobData = XNetBlobData.getBlobData(world);
WorldBlob worldBlob = blobData.getWorldBlob(world);
worldBlob.removeCableSegment(pos);
blobData.save(world);
}
super.breakBlock(world, pos, state);
}
Aggregations