Java Code Examples for net.minecraft.world.World#setData()
The following examples show how to use
net.minecraft.world.World#setData() .
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 check out the related API usage on the sidebar.
Example 1
Source File: WorldENet.java From GregTech with GNU Lesser General Public License v3.0 | 5 votes |
public static WorldENet getWorldENet(World world) { WorldENet eNetWorldData = (WorldENet) world.loadData(WorldENet.class, DATA_ID); if (eNetWorldData == null) { eNetWorldData = new WorldENet(DATA_ID); world.setData(DATA_ID, eNetWorldData); } eNetWorldData.setWorldAndInit(world); return eNetWorldData; }
Example 2
Source File: WorldFluidPipeNet.java From GregTech with GNU Lesser General Public License v3.0 | 5 votes |
public static WorldFluidPipeNet getWorldPipeNet(World world) { WorldFluidPipeNet netWorldData = (WorldFluidPipeNet) world.loadData(WorldFluidPipeNet.class, DATA_ID); if (netWorldData == null) { netWorldData = new WorldFluidPipeNet(DATA_ID); world.setData(DATA_ID, netWorldData); } netWorldData.setWorldAndInit(world); return netWorldData; }
Example 3
Source File: WorldInventoryPipeNet.java From GregTech with GNU Lesser General Public License v3.0 | 5 votes |
public static WorldInventoryPipeNet getWorldPipeNet(World world) { WorldInventoryPipeNet netWorldData = (WorldInventoryPipeNet) world.loadData(WorldInventoryPipeNet.class, DATA_ID); if (netWorldData == null) { netWorldData = new WorldInventoryPipeNet(DATA_ID); world.setData(DATA_ID, netWorldData); } netWorldData.setWorldAndInit(world); return netWorldData; }