Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

How to create a chunk loader?


Bedrock_Miner
 Share

Recommended Posts

Hey guys!

 

I want to create a chunk loader which keeps all the chunks in an adjustable radius round the block loaded. How can I do this?

I tried the following, but this didn't work:

In a tileEntity I overrode onChunkUnloading and added the method worldObj.getChunkProvider().loadChunk(...);

 

This only caused that the server fails to shut down. The commandBlock i placed there didn't write anything in the chat as it should.

 

So, how can I create a working chunk loader block?

Link to comment
Share on other sites

You need to use the Forge Chunk Loading System.

First you need to get a Ticket for your chunk loader. You do that with

ForgeChunkManager.requestTicket

or

ForgeChunkManager.requestPlayerTicket

. The difference is that the first Ticket is assigned to your Mod and the 2nd is assigned to the player. Both have adjustable maximum chunk load counts in the config and if they are exceeded you will get null back as a ticket, so check for that.

Then to actually keep the chunk loaded you use

ForgeChunkManager.forceChunk

.

You also need to register a

LoadingCallback

with

ForgeChunkManager.setForcedChunkLoadingCallback

. It can be empty, but usually you not only want the LoadingCallback but the

OrderedLoadingCallback

or the

PlayerOrderedLoadingCallback

(depending on if you use player forced chunks or not) to decide which chunks to keep in case your world was saved with let's say 20 forced chunks but then the server owner decides in the config that every mod can only force 10 chunks.

Link to comment
Share on other sites

Basically it works fine, thanks for that!

 

But I got two problems:

First, I don't understand how to use the LoadingCallback.

Second, if I reload a world and remove the chunkloader, I get this error:

 

[11:40:12] [server thread/ERROR]: Encountered an unexpected exception
net.minecraft.util.ReportedException: Ticking memory connection
at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:206) ~[NetworkSystem.class:?]
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:762) ~[MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:650) ~[MinecraftServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:120) ~[integratedServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:528) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:787) [MinecraftServer$2.class:?]
Caused by: java.lang.NullPointerException
at com.google.common.collect.LinkedHashMultimap.create(LinkedHashMultimap.java:119) ~[guava-15.0.jar:?]
at net.minecraftforge.common.ForgeChunkManager.unforceChunk(ForgeChunkManager.java:767) ~[ForgeChunkManager.class:?]
at com.bedrockminer.statuemod.blocks.BlockStatueBase.breakBlock(BlockStatueBase.java:70) ~[blockStatueBase.class:?]
at net.minecraft.world.chunk.Chunk.func_150807_a(Chunk.java:690) ~[Chunk.class:?]
at net.minecraft.world.World.setBlock(World.java:549) ~[World.class:?]
at net.minecraft.world.World.setBlockToAir(World.java:667) ~[World.class:?]
at net.minecraft.block.Block.removedByPlayer(Block.java:1686) ~[block.class:?]
at net.minecraft.server.management.ItemInWorldManager.removeBlock(ItemInWorldManager.java:272) ~[itemInWorldManager.class:?]
at net.minecraft.server.management.ItemInWorldManager.tryHarvestBlock(ItemInWorldManager.java:306) ~[itemInWorldManager.class:?]
at net.minecraft.server.management.ItemInWorldManager.onBlockClicked(ItemInWorldManager.java:174) ~[itemInWorldManager.class:?]
at net.minecraft.network.NetHandlerPlayServer.processPlayerDigging(NetHandlerPlayServer.java:528) ~[NetHandlerPlayServer.class:?]
at net.minecraft.network.play.client.C07PacketPlayerDigging.processPacket(C07PacketPlayerDigging.java:61) ~[C07PacketPlayerDigging.class:?]
at net.minecraft.network.play.client.C07PacketPlayerDigging.processPacket(C07PacketPlayerDigging.java:94) ~[C07PacketPlayerDigging.class:?]
at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:242) ~[NetworkManager.class:?]
at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:190) ~[NetworkSystem.class:?]
... 5 more
[11:40:12] [server thread/ERROR]: This crash report has been saved to: C:\Users\Julian\Desktop\Modding\StatueMod\StatueMod\.\crash-reports\crash-2014-04-08_11.40.12-server.txt
[11:40:12] [server thread/INFO]: Stopping server
[11:40:12] [server thread/INFO]: Saving players
[11:40:12] [server thread/INFO]: Saving worlds
[11:40:12] [server thread/INFO]: Saving chunks for level 'New World'/Overworld
---- Minecraft Crash Report ----
// I let you down. Sorry 

Time: 08.04.14 11:40
Description: Ticking memory connection

java.lang.NullPointerException: Ticking memory connection
at com.google.common.collect.LinkedHashMultimap.create(LinkedHashMultimap.java:119)
at net.minecraftforge.common.ForgeChunkManager.unforceChunk(ForgeChunkManager.java:767)
at com.bedrockminer.statuemod.blocks.BlockStatueBase.breakBlock(BlockStatueBase.java:70)
at net.minecraft.world.chunk.Chunk.func_150807_a(Chunk.java:690)
at net.minecraft.world.World.setBlock(World.java:549)
at net.minecraft.world.World.setBlockToAir(World.java:667)
at net.minecraft.block.Block.removedByPlayer(Block.java:1686)
at net.minecraft.server.management.ItemInWorldManager.removeBlock(ItemInWorldManager.java:272)
at net.minecraft.server.management.ItemInWorldManager.tryHarvestBlock(ItemInWorldManager.java:306)
at net.minecraft.server.management.ItemInWorldManager.onBlockClicked(ItemInWorldManager.java:174)
at net.minecraft.network.NetHandlerPlayServer.processPlayerDigging(NetHandlerPlayServer.java:528)
at net.minecraft.network.play.client.C07PacketPlayerDigging.processPacket(C07PacketPlayerDigging.java:61)
at net.minecraft.network.play.client.C07PacketPlayerDigging.processPacket(C07PacketPlayerDigging.java:94)
at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:242)
at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:190)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:762)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:650)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:120)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:528)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:787)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
at com.google.common.collect.LinkedHashMultimap.create(LinkedHashMultimap.java:119)
at net.minecraftforge.common.ForgeChunkManager.unforceChunk(ForgeChunkManager.java:767)
at com.bedrockminer.statuemod.blocks.BlockStatueBase.breakBlock(BlockStatueBase.java:70)
at net.minecraft.world.chunk.Chunk.func_150807_a(Chunk.java:690)
at net.minecraft.world.World.setBlock(World.java:549)
at net.minecraft.world.World.setBlockToAir(World.java:667)
at net.minecraft.block.Block.removedByPlayer(Block.java:1686)
at net.minecraft.server.management.ItemInWorldManager.removeBlock(ItemInWorldManager.java:272)
at net.minecraft.server.management.ItemInWorldManager.tryHarvestBlock(ItemInWorldManager.java:306)
at net.minecraft.server.management.ItemInWorldManager.onBlockClicked(ItemInWorldManager.java:174)
at net.minecraft.network.NetHandlerPlayServer.processPlayerDigging(NetHandlerPlayServer.java:528)
at net.minecraft.network.play.client.C07PacketPlayerDigging.processPacket(C07PacketPlayerDigging.java:61)
at net.minecraft.network.play.client.C07PacketPlayerDigging.processPacket(C07PacketPlayerDigging.java:94)
at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:242)

-- Ticking connection --
Details:
Connection: net.minecraft.network.NetworkManager@cd56091
Stacktrace:
at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:190)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:762)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:650)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:120)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:528)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:787)

-- System Details --
Details:
Minecraft Version: 1.7.2
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_60-ea, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 141752336 bytes (135 MB) / 482344960 bytes (460 MB) up to 943194112 bytes (899 MB)
JVM Flags: 0 total; 
AABB Pool Size: 6751 (378056 bytes; 0 MB) allocated, 6134 (343504 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 12, tallocated: 94
FML: MCP v9.01-pre FML v7.2.116.1024 Minecraft Forge 10.12.0.1024 4 mods loaded, 4 mods active
mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available
FML{7.2.116.1024} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.0.1024.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available
Forge{10.12.0.1024} [Minecraft Forge] (forgeSrc-1.7.2-10.12.0.1024.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available
modid{1.0.0} [ModName] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available
Profiler Position: N/A (disabled)
Vec3 Pool Size: 2840 (159040 bytes; 0 MB) allocated, 2570 (143920 bytes; 0 MB) used
Player Count: 1 / 8; [EntityPlayerMP['_Bedrock_Miner_'/4160, l='New World', x=1000,99, y=79,00, z=-2,99]]
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'fml,forge'
#@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2014-04-08_11.40.12-server.txt
[11:40:12] [Client Shutdown Thread/INFO]: Stopping server
Exception in thread "Client Shutdown Thread" java.util.ConcurrentModificationException
at java.util.Hashtable$Enumerator.next(Unknown Source)
at net.minecraftforge.common.DimensionManager.setWorld(DimensionManager.java:213)
at net.minecraft.server.MinecraftServer.stopServer(MinecraftServer.java:461)
at net.minecraft.server.integrated.IntegratedServer.stopServer(IntegratedServer.java:257)
at net.minecraft.client.Minecraft.stopIntegratedServer(Minecraft.java:2706)
at net.minecraft.client.main.Main$2.run(Main.java:102)
AL lib: (EE) alc_cleanup: 1 device not closed

 

 

The code of my chunkloader is this:

 

package com.bedrockminer.statuemod.blocks;

import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.IIcon;
import net.minecraft.world.ChunkCoordIntPair;
import net.minecraft.world.World;
import net.minecraftforge.common.ForgeChunkManager;
import net.minecraftforge.common.ForgeChunkManager.Ticket;
import net.minecraftforge.common.ForgeChunkManager.Type;

import com.bedrockminer.statuemod.Main;
import com.bedrockminer.statuemod.tileentities.TileEntityStatueBase;

import cpw.mods.fml.common.registry.GameRegistry;

public class BlockStatueBase extends Block {

private IIcon topIcon;
private IIcon botIcon;
private Ticket ticket;

protected BlockStatueBase(String unlocalizedName) {
	super(Material.iron);
	this.setBlockName(unlocalizedName);
	this.setBlockTextureName(Main.tex(unlocalizedName));
	this.setHardness(5.0F);
	this.setResistance(2000.0F);
	this.setHarvestLevel("pickaxe", 2);
	this.setStepSound(soundTypeMetal);
	this.setCreativeTab(Main.MAINTAB);
	this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.75F, 1.0F);
        this.setLightOpacity(0);

	GameRegistry.registerBlock(this, unlocalizedName);
}

@Override
public IIcon getIcon(int side, int meta) {
	switch (side) {
	case 0: return topIcon;
	case 1: return botIcon;
	default: return blockIcon;
	}
}

@Override
public void registerBlockIcons(IIconRegister reg) {
	this.blockIcon = reg.registerIcon(textureName + "_side");
	this.topIcon = reg.registerIcon(textureName + "_top");
	this.botIcon = reg.registerIcon(textureName + "_bottom");
}

@Override
public void onBlockAdded(World world, int x, int y, int z) {
	super.onBlockAdded(world, x, y, z);
	this.ticket = ForgeChunkManager.requestTicket(Main.instance, world, Type.NORMAL);
	if (this.ticket != null) {
		ForgeChunkManager.forceChunk(ticket, new ChunkCoordIntPair(x / 16, z / 16));
	}
}

@Override
public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
	super.breakBlock(world, x, y, z, block, meta);
	if (this.ticket != null) {
		ForgeChunkManager.unforceChunk(ticket, new ChunkCoordIntPair(x / 16, z / 16));
	}
}
}

 

Link to comment
Share on other sites

Changed, but still get an error

(I think its the same, but I post it anyway)

[12:08:52] [server thread/ERROR]: Encountered an unexpected exception
net.minecraft.util.ReportedException: Ticking memory connection
at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:206) ~[NetworkSystem.class:?]
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:762) ~[MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:650) ~[MinecraftServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:120) ~[integratedServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:528) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:787) [MinecraftServer$2.class:?]
Caused by: java.lang.NullPointerException
at com.google.common.collect.LinkedHashMultimap.create(LinkedHashMultimap.java:119) ~[guava-15.0.jar:?]
at net.minecraftforge.common.ForgeChunkManager.unforceChunk(ForgeChunkManager.java:767) ~[ForgeChunkManager.class:?]
at com.bedrockminer.statuemod.blocks.BlockStatueBase.breakBlock(BlockStatueBase.java:70) ~[blockStatueBase.class:?]
at net.minecraft.world.chunk.Chunk.func_150807_a(Chunk.java:690) ~[Chunk.class:?]
at net.minecraft.world.World.setBlock(World.java:549) ~[World.class:?]
at net.minecraft.world.World.setBlockToAir(World.java:667) ~[World.class:?]
at net.minecraft.block.Block.removedByPlayer(Block.java:1686) ~[block.class:?]
at net.minecraft.server.management.ItemInWorldManager.removeBlock(ItemInWorldManager.java:272) ~[itemInWorldManager.class:?]
at net.minecraft.server.management.ItemInWorldManager.tryHarvestBlock(ItemInWorldManager.java:306) ~[itemInWorldManager.class:?]
at net.minecraft.server.management.ItemInWorldManager.onBlockClicked(ItemInWorldManager.java:174) ~[itemInWorldManager.class:?]
at net.minecraft.network.NetHandlerPlayServer.processPlayerDigging(NetHandlerPlayServer.java:528) ~[NetHandlerPlayServer.class:?]
at net.minecraft.network.play.client.C07PacketPlayerDigging.processPacket(C07PacketPlayerDigging.java:61) ~[C07PacketPlayerDigging.class:?]
at net.minecraft.network.play.client.C07PacketPlayerDigging.processPacket(C07PacketPlayerDigging.java:94) ~[C07PacketPlayerDigging.class:?]
at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:242) ~[NetworkManager.class:?]
at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:190) ~[NetworkSystem.class:?]
... 5 more
[12:08:52] [server thread/ERROR]: This crash report has been saved to: C:\Users\Julian\Desktop\Modding\StatueMod\StatueMod\.\crash-reports\crash-2014-04-08_12.08.52-server.txt
[12:08:52] [server thread/INFO]: Stopping server
[12:08:52] [server thread/INFO]: Saving players
[12:08:52] [server thread/INFO]: Saving worlds
[12:08:52] [server thread/INFO]: Saving chunks for level 'New World'/Overworld
---- Minecraft Crash Report ----
// I let you down. Sorry 

Time: 08.04.14 12:08
Description: Ticking memory connection

java.lang.NullPointerException: Ticking memory connection
at com.google.common.collect.LinkedHashMultimap.create(LinkedHashMultimap.java:119)
at net.minecraftforge.common.ForgeChunkManager.unforceChunk(ForgeChunkManager.java:767)
at com.bedrockminer.statuemod.blocks.BlockStatueBase.breakBlock(BlockStatueBase.java:70)
at net.minecraft.world.chunk.Chunk.func_150807_a(Chunk.java:690)
at net.minecraft.world.World.setBlock(World.java:549)
at net.minecraft.world.World.setBlockToAir(World.java:667)
at net.minecraft.block.Block.removedByPlayer(Block.java:1686)
at net.minecraft.server.management.ItemInWorldManager.removeBlock(ItemInWorldManager.java:272)
at net.minecraft.server.management.ItemInWorldManager.tryHarvestBlock(ItemInWorldManager.java:306)
at net.minecraft.server.management.ItemInWorldManager.onBlockClicked(ItemInWorldManager.java:174)
at net.minecraft.network.NetHandlerPlayServer.processPlayerDigging(NetHandlerPlayServer.java:528)
at net.minecraft.network.play.client.C07PacketPlayerDigging.processPacket(C07PacketPlayerDigging.java:61)
at net.minecraft.network.play.client.C07PacketPlayerDigging.processPacket(C07PacketPlayerDigging.java:94)
at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:242)
at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:190)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:762)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:650)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:120)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:528)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:787)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
at com.google.common.collect.LinkedHashMultimap.create(LinkedHashMultimap.java:119)
at net.minecraftforge.common.ForgeChunkManager.unforceChunk(ForgeChunkManager.java:767)
at com.bedrockminer.statuemod.blocks.BlockStatueBase.breakBlock(BlockStatueBase.java:70)
at net.minecraft.world.chunk.Chunk.func_150807_a(Chunk.java:690)
at net.minecraft.world.World.setBlock(World.java:549)
at net.minecraft.world.World.setBlockToAir(World.java:667)
at net.minecraft.block.Block.removedByPlayer(Block.java:1686)
at net.minecraft.server.management.ItemInWorldManager.removeBlock(ItemInWorldManager.java:272)
at net.minecraft.server.management.ItemInWorldManager.tryHarvestBlock(ItemInWorldManager.java:306)
at net.minecraft.server.management.ItemInWorldManager.onBlockClicked(ItemInWorldManager.java:174)
at net.minecraft.network.NetHandlerPlayServer.processPlayerDigging(NetHandlerPlayServer.java:528)
at net.minecraft.network.play.client.C07PacketPlayerDigging.processPacket(C07PacketPlayerDigging.java:61)
at net.minecraft.network.play.client.C07PacketPlayerDigging.processPacket(C07PacketPlayerDigging.java:94)
at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:242)

-- Ticking connection --
Details:
Connection: net.minecraft.network.NetworkManager@4efc646f
Stacktrace:
at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:190)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:762)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:650)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:120)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:528)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:787)

-- System Details --
Details:
Minecraft Version: 1.7.2
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_60-ea, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 242244712 bytes (231 MB) / 463470592 bytes (442 MB) up to 943194112 bytes (899 MB)
JVM Flags: 0 total; 
AABB Pool Size: 5127 (287112 bytes; 0 MB) allocated, 4514 (252784 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 12, tallocated: 94
FML: MCP v9.01-pre FML v7.2.116.1024 Minecraft Forge 10.12.0.1024 4 mods loaded, 4 mods active
mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available
FML{7.2.116.1024} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.0.1024.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available
Forge{10.12.0.1024} [Minecraft Forge] (forgeSrc-1.7.2-10.12.0.1024.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available
modid{1.0.0} [ModName] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available
Profiler Position: N/A (disabled)
Vec3 Pool Size: 1724 (96544 bytes; 0 MB) allocated, 1678 (93968 bytes; 0 MB) used
Player Count: 1 / 8; [EntityPlayerMP['_Bedrock_Miner_'/3844, l='New World', x=1000,50, y=84,00, z=0,50]]
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'fml,forge'
#@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2014-04-08_12.08.52-server.txt
AL lib: (EE) alc_cleanup: 1 device not closed

 

Link to comment
Share on other sites

I think it would be very useful if you can tell me how to use this ForcedChunkLoadingCallback, because I really have no Idea how to use it. Maybe this will fix this Error anyway.

It can be empty. It just has to be present.

Also: You cannot keep your Ticket between world unloads. So you need to set it to null when the world unloads.

Link to comment
Share on other sites

OK, but how can I find out if the world unloads?

WorldEvent.Unload

And when do I have to create the Ticket if i do so? Actually I do it every time a block of this type is placed

Actually, you don't :) I am not entirely sure when a new ticket should be created. I would say one per block type of yours.
Link to comment
Share on other sites

OK. I did this now, but actually it doesn't work any more.

 

I did it like this:

 

public class WorldEventHandler {

@SubscribeEvent
public void worldUnloadEvent(WorldEvent.Unload e) {
	BlockStatueBase.ticket = null;
}

@SubscribeEvent
public void worldLoadEvent(WorldEvent.Load e) {
	BlockStatueBase.ticket = ForgeChunkManager.requestTicket(Main.instance, e.world, Type.NORMAL);
}
}

 

In the block class:

@Override
public void onBlockAdded(World world, int x, int y, int z) {
	if (!world.isRemote && this.ticket != null) {
		ForgeChunkManager.forceChunk(ticket, new ChunkCoordIntPair(x / 16, z / 16));
	}
}

@Override
public void breakBlock(World world, int x, int y, int z, Block block, int meta) {
	if (!world.isRemote && this.ticket != null) {
		ForgeChunkManager.unforceChunk(ticket, new ChunkCoordIntPair(x / 16, z / 16));
	}
}

 

The ticket is not null, i tested it with debugging outputs

 

 

Link to comment
Share on other sites

Well, I now copied some if the code, but it is from 1.6 and I get some problems.

 

For example, this line of code is used very often:

world.theChunkProviderServer.loadedChunks

The problem is, that this is declared private in the class ChunkProviderServer.

 

How can I get acces to this field? Or do you know another way to get the actual loaded chunks?

Link to comment
Share on other sites

  • 4 weeks later...

When I created a chunkloader for 1.6.4, I created a class and had it implement 'net.minecraftforge.common.ForgeChunkManager.LoadingCallback'.

 

WorldEvents:

public class WorldEvents implements LoadingCallback {

@Override
public void ticketsLoaded(List<Ticket> tickets, World world) {
		//TODO: somthing when the tickets are loaded

}
}

 

Immobile Entity (Loading a block should be the same.  Note: this only loads on chunk):

...
if(!worldObj.isRemote) {
Ticket ticket = ForgeChunkManager.requestTicket(AdvancedRocketry.instance, this.worldObj, Type.NORMAL);
        if(ticket != null)
      ForgeChunkManager.forceChunk(ticket, new ChunkCoordIntPair((int)this.posX / 16, (int)this.posZ / 16));
}
...

 

 

Hope this helps...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • What should you use 1. in the final Mod and 2. for debugging,  LogManager.getLogger().log(text); or System.out.println(text); and why?
    • Hi, I have created a VM with linux on it, and when i run forge without any mod installed, it is working fine. But the moment we copy the mods from curse to the server it crashes openjdk version "1.8.0_312"OpenJDK Runtime Environment (build 1.8.0_312-8u312-b07-1~deb9u1-b07)OpenJDK 64-Bit Server VM (build 25.312-b07, mixed mode) minecraft 1.16.5 Forge-1.16.5-36.2.19   ---- Minecraft Crash Report ---- // Quite honestly, I wouldn't worry myself about that. Time: 12/2/21 9:48 PM Description: Mod loading error has occurred java.lang.Exception: Mod Loading has failed at net.minecraftforge.fml.CrashReportExtender.dumpModLoadingCrashReport(CrashReportExtender.java:85) ~[forge:?] {re:classloading} at net.minecraftforge.fml.server.ServerModLoader.load(ServerModLoader.java:51) ~[forge:?] {re:classloading} at net.minecraft.server.Main.main(Main.java:95) ~[?:?] {re:classloading} at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_312] {} at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_312] {} at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_312] {} at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_312] {} at net.minecraftforge.fml.loading.FMLServerLaunchProvider.lambda$launchService$0(FMLServerLaunchProvider.java:51) ~[forge-1.16.5-36.2.19.jar:36.2] {} at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.9.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.9.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.9.jar:?] {} at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.9.jar:?] {} at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.9.jar:?] {} at net.minecraftforge.server.ServerMain$Runner.runLauncher(ServerMain.java:63) [forge-1.16.5-36.2.19.jar:?] {} at net.minecraftforge.server.ServerMain$Runner.access$100(ServerMain.java:60) [forge-1.16.5-36.2.19.jar:?] {} at net.minecraftforge.server.ServerMain.main(ServerMain.java:57) [forge-1.16.5-36.2.19.jar:?] {} A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: main Stacktrace: at org.objectweb.asm.MethodWriter.computeAllFrames(MethodWriter.java:1572) ~[asm-9.1.jar:9.1] {} -- MOD create -- Details: Caused by 0: java.lang.ExceptionInInitializerError at java.lang.Class.forName0(Native Method) ~[?:1.8.0_312] {} at java.lang.Class.forName(Class.java:348) ~[?:1.8.0_312] {} at net.minecraftforge.fml.AutomaticEventSubscriber.lambda$inject$6(AutomaticEventSubscriber.java:75) ~[forge:?] {re:classloading} at java.util.ArrayList.forEach(ArrayList.java:1259) ~[?:1.8.0_312] {} at net.minecraftforge.fml.AutomaticEventSubscriber.inject(AutomaticEventSubscriber.java:62) ~[forge:?] {re:classloading} at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:91) ~[forge:36.2] {re:classloading} at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$4(ModContainer.java:120) ~[forge:?] {re:classloading} at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1640) ~[?:1.8.0_312] {} at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1632) ~[?:1.8.0_312] {} at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) ~[?:1.8.0_312] {} at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) ~[?:1.8.0_312] {} at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) ~[?:1.8.0_312] {} at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175) ~[?:1.8.0_312] {} Mod File: create-mc1.16.5_v0.3.2g.jar Failure message: Create (create) has failed to load correctly java.lang.ExceptionInInitializerError: null Mod Version: v0.3.2g Mod Issue URL: https://github.com/Creators-of-Create/Create/issues Exception message: java.lang.NullPointerException Stacktrace: at org.objectweb.asm.MethodWriter.computeAllFrames(MethodWriter.java:1572) ~[asm-9.1.jar:9.1] {} at org.objectweb.asm.MethodWriter.visitMaxs(MethodWriter.java:1546) ~[asm-9.1.jar:9.1] {} at org.objectweb.asm.tree.MethodNode.accept(MethodNode.java:769) ~[asm-tree-9.1.jar:9.1] {} at org.objectweb.asm.tree.MethodNode.accept(MethodNode.java:649) ~[asm-tree-9.1.jar:9.1] {} at org.objectweb.asm.tree.ClassNode.accept(ClassNode.java:452) ~[asm-tree-9.1.jar:9.1] {} at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:133) ~[modlauncher-8.0.9.jar:?] {} at cpw.mods.modlauncher.TransformingClassLoader$DelegatedClassLoader.findClass(TransformingClassLoader.java:265) ~[modlauncher-8.0.9.jar:?] {} at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:136) ~[modlauncher-8.0.9.jar:?] {re:classloading} at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:98) ~[modlauncher-8.0.9.jar:?] {re:classloading} at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_312] {} at net.minecraft.entity.Entity.<clinit>(Entity.java:169) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:abnormals_core.mixins.json:EntityMixin,pl:mixin:A,pl:runtimedistcleaner:A} at java.lang.Class.forName0(Native Method) ~[?:1.8.0_312] {} at java.lang.Class.forName(Class.java:348) ~[?:1.8.0_312] {} at net.minecraftforge.fml.AutomaticEventSubscriber.lambda$inject$6(AutomaticEventSubscriber.java:75) ~[forge:?] {re:classloading} at java.util.ArrayList.forEach(ArrayList.java:1259) ~[?:1.8.0_312] {} at net.minecraftforge.fml.AutomaticEventSubscriber.inject(AutomaticEventSubscriber.java:62) ~[forge:?] {re:classloading} at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:91) ~[forge:36.2] {re:classloading} at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$4(ModContainer.java:120) ~[forge:?] {re:classloading} at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1640) ~[?:1.8.0_312] {} at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1632) ~[?:1.8.0_312] {} at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) ~[?:1.8.0_312] {} at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) ~[?:1.8.0_312] {} at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) ~[?:1.8.0_312] {} at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175) ~[?:1.8.0_312] {} -- MOD architectury -- Details: Mod File: architectury-1.25.36-forge.jar Failure message: Architectury (architectury) has failed to load correctly java.lang.NoClassDefFoundError: Could not initialize class net.minecraft.entity.Entity Mod Version: 1.25.36 Mod Issue URL: https://github.com/shedaniel/architectury/issues Exception message: java.lang.NoClassDefFoundError: Could not initialize class net.minecraft.entity.Entity Stacktrace: at java.lang.Class.forName0(Native Method) ~[?:1.8.0_312] {} at java.lang.Class.forName(Class.java:264) ~[?:1.8.0_312] {} at com.sun.proxy.$Proxy30.<clinit>(Unknown Source) ~[?:?] {} at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_312] {} at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_312] {} at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_312] {} at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_312] {} at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:739) ~[?:1.8.0_312] {} at me.shedaniel.architectury.event.EventFactory.lambda$createInteractionResult$2(EventFactory.java:99) ~[architectury:?] {re:classloading} at me.shedaniel.architectury.event.EventFactory$EventImpl.update(EventFactory.java:369) ~[architectury:?] {re:classloading} at me.shedaniel.architectury.event.EventFactory$EventImpl.invoker(EventFactory.java:335) ~[architectury:?] {re:classloading} at me.shedaniel.architectury.event.EventHandler.registerDelegates(EventHandler.java:68) ~[architectury:?] {re:classloading,pl:runtimedistcleaner:A} at me.shedaniel.architectury.event.EventHandler.init(EventHandler.java:46) ~[architectury:?] {re:classloading,pl:runtimedistcleaner:A} at me.shedaniel.architectury.forge.ArchitecturyForge.<init>(ArchitecturyForge.java:33) ~[architectury:?] {re:classloading} at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_312] {} at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_312] {} at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_312] {} at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_312] {} at java.lang.Class.newInstance(Class.java:442) ~[?:1.8.0_312] {} at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:81) ~[forge:36.2] {re:classloading} at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$4(ModContainer.java:120) ~[forge:?] {re:classloading} at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1640) ~[?:1.8.0_312] {} at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1632) ~[?:1.8.0_312] {} at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) ~[?:1.8.0_312] {} at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) ~[?:1.8.0_312] {} at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) ~[?:1.8.0_312] {} at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175) ~[?:1.8.0_312] {} -- MOD forbidden_arcanus -- Details: Caused by 0: java.lang.BootstrapMethodError: java.lang.IllegalAccessError: no such constructor: com.stal111.forbidden_arcanus.entity.projectile.EnergyBallEntity.<init>(EntityType,World)void/newInvokeSpecial at com.stal111.forbidden_arcanus.init.ModEntities.<clinit>(ModEntities.java:33) ~[forbidden_arcanus:16.2.1] {re:classloading,pl:runtimedistcleaner:A} at com.stal111.forbidden_arcanus.ForbiddenArcanus.<init>(ForbiddenArcanus.java:100) ~[forbidden_arcanus:16.2.1] {re:classloading} at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_312] {} at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_312] {} at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_312] {} at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_312] {} at java.lang.Class.newInstance(Class.java:442) ~[?:1.8.0_312] {} at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:81) ~[forge:36.2] {re:classloading} at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$4(ModContainer.java:120) ~[forge:?] {re:classloading} at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1640) ~[?:1.8.0_312] {} at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1632) ~[?:1.8.0_312] {} at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) ~[?:1.8.0_312] {} at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) ~[?:1.8.0_312] {} at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) ~[?:1.8.0_312] {} at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175) ~[?:1.8.0_312] {} Caused by 1: java.lang.IllegalAccessError: no such constructor: com.stal111.forbidden_arcanus.entity.projectile.EnergyBallEntity.<init>(EntityType,World)void/newInvokeSpecial at java.lang.invoke.MethodHandleNatives.linkMethodHandleConstant(MethodHandleNatives.java:483) ~[?:1.8.0_312] {} at com.stal111.forbidden_arcanus.init.ModEntities.<clinit>(ModEntities.java:33) ~[forbidden_arcanus:16.2.1] {re:classloading,pl:runtimedistcleaner:A} at com.stal111.forbidden_arcanus.ForbiddenArcanus.<init>(ForbiddenArcanus.java:100) ~[forbidden_arcanus:16.2.1] {re:classloading} at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_312] {} at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_312] {} at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_312] {} at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_312] {} at java.lang.Class.newInstance(Class.java:442) ~[?:1.8.0_312] {} at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:81) ~[forge:36.2] {re:classloading} at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$4(ModContainer.java:120) ~[forge:?] {re:classloading} at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1640) ~[?:1.8.0_312] {} at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1632) ~[?:1.8.0_312] {} at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) ~[?:1.8.0_312] {} at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) ~[?:1.8.0_312] {} at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) ~[?:1.8.0_312] {} at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175) ~[?:1.8.0_312] {} Mod File: forbidden_arcanus-16.2.1.jar Failure message: Forbidden & Arcanus (forbidden_arcanus) has failed to load correctly java.lang.BootstrapMethodError: java.lang.IllegalAccessError: no such constructor: com.stal111.forbidden_arcanus.entity.projectile.EnergyBallEntity.<init>(EntityType,World)void/newInvokeSpecial Mod Version: 16.2.1 Mod Issue URL: NOT PROVIDED Exception message: java.lang.NoClassDefFoundError: net.minecraft.entity.Entity Stacktrace: at java.lang.invoke.MethodHandleNatives.resolve(Native Method) ~[?:1.8.0_312] {} at java.lang.invoke.MemberName$Factory.resolve(MemberName.java:975) ~[?:1.8.0_312] {} at java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:1000) ~[?:1.8.0_312] {} at java.lang.invoke.MethodHandles$Lookup.resolveOrFail(MethodHandles.java:1394) ~[?:1.8.0_312] {} at java.lang.invoke.MethodHandles$Lookup.linkMethodHandleConstant(MethodHandles.java:1750) ~[?:1.8.0_312] {} at java.lang.invoke.MethodHandleNatives.linkMethodHandleConstant(MethodHandleNatives.java:477) ~[?:1.8.0_312] {} at com.stal111.forbidden_arcanus.init.ModEntities.<clinit>(ModEntities.java:33) ~[forbidden_arcanus:16.2.1] {re:classloading,pl:runtimedistcleaner:A} at com.stal111.forbidden_arcanus.ForbiddenArcanus.<init>(ForbiddenArcanus.java:100) ~[forbidden_arcanus:16.2.1] {re:classloading} at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_312] {} at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_312] {} at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_312] {} at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_312] {} at java.lang.Class.newInstance(Class.java:442) ~[?:1.8.0_312] {} at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:81) ~[forge:36.2] {re:classloading} at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$4(ModContainer.java:120) ~[forge:?] {re:classloading} at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1640) ~[?:1.8.0_312] {} at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1632) ~[?:1.8.0_312] {} at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) ~[?:1.8.0_312] {} at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) ~[?:1.8.0_312] {} at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) ~[?:1.8.0_312] {} at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175) ~[?:1.8.0_312] {} -- System Details -- Details: Minecraft Version: 1.16.5 Minecraft Version ID: 1.16.5 Operating System: Linux (amd64) version 4.9.0-16-amd64 Java Version: 1.8.0_312, Oracle Corporation Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 959408000 bytes (914 MB) / 2160590848 bytes (2060 MB) up to 2867331072 bytes (2734 MB) CPUs: 4 JVM Flags: 2 total; -Xmx3076M -Xms1024M ModLauncher: 8.0.9+86+master.3cf110c ModLauncher launch target: fmlserver ModLauncher naming: srg ModLauncher services: /mixin-0.8.4.jar mixin PLUGINSERVICE /eventbus-4.0.0.jar eventbus PLUGINSERVICE /forge-1.16.5-36.2.19.jar object_holder_definalize PLUGINSERVICE /forge-1.16.5-36.2.19.jar runtime_enum_extender PLUGINSERVICE /accesstransformers-3.0.1.jar accesstransformer PLUGINSERVICE /forge-1.16.5-36.2.19.jar capability_inject_definalize PLUGINSERVICE /forge-1.16.5-36.2.19.jar runtimedistcleaner PLUGINSERVICE /mixin-0.8.4.jar mixin TRANSFORMATIONSERVICE /OptiForge-MC1.16.5-0.5.7.jar OptiFine TRANSFORMATIONSERVICE /OptiForge-MC1.16.5-0.5.7.jar optiforge TRANSFORMATIONSERVICE /forge-1.16.5-36.2.19.jar fml TRANSFORMATIONSERVICE /OptiForge-MC1.16.5-0.5.7.jar optiforgewrapper TRANSFORMATIONSERVICE FML: 36.2 Forge: net.minecraftforge:36.2.19 FML Language Providers: javafml@36.2 minecraft@1 Mod List: create-stuff-additions1.16.5_v1.1.5.jar |Create Stuff Additions |create_stuff_additions |1.1.5 |CREATE_REG|Manifest: NOSIGNATURE immersivecooking-1.0.1.jar |Immersive Cooking |immersivecooking |1.0.1 |CREATE_REG|Manifest: NOSIGNATURE torchslabmod-1.16.4_v1.6.19.jar |Torch Slab Mod |torchslabmod |1.6.18 |CREATE_REG|Manifest: NOSIGNATURE Variant16x-1.16.5-v0.23.1_beta_pre3.jar |Variant16x |variant16x |0.23.1_beta_pre3 |CREATE_REG|Manifest: NOSIGNATURE customfence-1-16-5.jar |Customfence |customfence |1-16-5 |CREATE_REG|Manifest: NOSIGNATURE additionallanterns-1.0.0-mc1.16.jar |Additional Lanterns |additionallanterns |1.0.0 |CREATE_REG|Manifest: NOSIGNATURE jei-1.16.5-7.7.1.137.jar |Just Enough Items |jei |7.7.1.137 |CREATE_REG|Manifest: NOSIGNATURE abnormals_core-1.16.5-3.3.0.jar |Abnormals Core |abnormals_core |3.3.0 |CREATE_REG|Manifest: NOSIGNATURE ChineseWorkshop-1.16.3-3.2.1.jar |ChineseWorkshop |chineseworkshop |3.2.1 |CREATE_REG|Manifest: NOSIGNATURE Kiwi-1.16.5-3.6.1.jar |Kiwi |kiwi |3.6.1 |CREATE_REG|Manifest: NOSIGNATURE macawsbridgesbyg-1.16.5-1.1.jar |Macaw's Bridges - Oh The Biome|macawsbridgesbyg |1.16.5-1.1 |CREATE_REG|Manifest: NOSIGNATURE ZYCraft-1.16.5-3.1.29.jar |ZYCraft |zycraft |3.1.29 |CREATE_REG|Manifest: NOSIGNATURE glassential-forge-1.16.5-1.1.7.jar |Glassential |glassential |1.1.7 |CREATE_REG|Manifest: NOSIGNATURE journeymap-1.16.5-5.7.3.jar |Journeymap |journeymap |5.7.3 |CREATE_REG|Manifest: NOSIGNATURE CTM-MC1.16.1-1.1.2.6.jar |ConnectedTexturesMod |ctm |MC1.16.1-1.1.2.6 |CREATE_REG|Manifest: NOSIGNATURE 1.16.5-additionalbars-2.0.3.jar |Additional Bars |additionalbars |2.0.3 |CREATE_REG|Manifest: NOSIGNATURE decorative_blocks-1.16.4-1.7.2.jar |Decorative Blocks |decorative_blocks |1.7.2 |CREATE_REG|Manifest: NOSIGNATURE macawsbridgesbop-1.16.5-1.2.jar |Macaw's Bridges - Biome O' Ple|macawsbridgesbop |1.16.5-1.2 |CREATE_REG|Manifest: NOSIGNATURE create-confectionery1.16.5_v1.0.2.jar |Create Confectionery |create_confectionery |1.0.2 |CREATE_REG|Manifest: NOSIGNATURE mcw-doors-1.0.3-mc1.16.5.jar |Macaw's Doors |mcwdoors |1.0.3 |CREATE_REG|Manifest: NOSIGNATURE mapperbase-1.16.5-2.4.0.0.jar |Mapper Base |mapperbase |1.16.5-2.4.0.0 |CREATE_REG|Manifest: NOSIGNATURE additional_lights-1.16.4-2.1.3.jar |Additional Lights |additional_lights |2.1.3 |CREATE_REG|Manifest: NOSIGNATURE ironagefurniture 1.16.4-1.16.5 0.2.0.5.jar |Iron Age Furniture |ironagefurniture |1.16.4-0.2.0 |CREATE_REG|Manifest: NOSIGNATURE pathundergates-1.16.4-2.0.0-release.jar |Path Under Gates |pathundergates |1.16.4-1.0.0-release|CREATE_REG|Manifest: 1d:d7:18:bd:bc:50:11:ed:51:4c:ed:33:84:87:03:ef:79:b3:d3:b2:0b:62:68:ed:ee:48:76:61:89:d3:8a:ba forge-1.16.5-36.2.19-universal.jar |Forge |forge |36.2.19 |CREATE_REG|Manifest: 22:af:21:d8:19:82:7f:93:94:fe:2b:ac:b7:e4:41:57:68:39:87:b1:a7:5c:c6:44:f9:25:74:21:14:f5:0d:90 ChinjufuMod[1.16.5]6.0.1.jar |Chinjufu Mod |chinjufumod |[1.16.5]6.0.1 |CREATE_REG|Manifest: NOSIGNATURE forge-1.16.5-36.2.19-server.jar |Minecraft |minecraft |1.16.5 |CREATE_REG|Manifest: NOSIGNATURE mcw-bridges-2.0.0-mc1.16.5.jar |Macaw's Bridges |mcwbridges |2.0.0 |CREATE_REG|Manifest: NOSIGNATURE FarmersDelight-1.16.5-0.5.1.jar |Farmer's Delight |farmersdelight |1.16.5-0.5.1 |CREATE_REG|Manifest: NOSIGNATURE DustrialDecor-1.2.9.jar |'Dustrial Decor |dustrial_decor |1.2.8 |CREATE_REG|Manifest: NOSIGNATURE MorePaths-1.16.1-1.3.2.jar |MorePaths |morepaths |1.16-1.3.2 |CREATE_REG|Manifest: NOSIGNATURE embellishcraft-1.16.5-3.4.0.0.jar |EmbellishCraft |embellishcraft |1.16.5-3.4.0.0 |CREATE_REG|Manifest: NOSIGNATURE BiomesOPlenty-1.16.5-13.1.0.477-universal.jar |Biomes O' Plenty |biomesoplenty |1.16.5-13.1.0.477 |CREATE_REG|Manifest: NOSIGNATURE embellishcraft-bop-1.16.5-3.4.0.jar |EmbellishCraft BoP Addon |embellishcraft-bop |1.16.5-3.4.0 |CREATE_REG|Manifest: NOSIGNATURE nekoration-1.16.X-1.4.2.jar |Nekoration |nekoration |1.4.2 |CREATE_REG|Manifest: NOSIGNATURE mcw-fences-1.0.1-mc1.16.5.jar |Macaw's Fences and Walls |mcwfences |1.0.1 |CREATE_REG|Manifest: NOSIGNATURE create-addon-v5.jar |Create Add-On |create_addon |1.0.0 |CREATE_REG|Manifest: NOSIGNATURE supermartijn642corelib-1.0.14a-mc1.16.5.jar |SuperMartijn642's Core Lib |supermartijn642corelib |1.0.14a |CREATE_REG|Manifest: NOSIGNATURE masonry-1.16.3-0.3.6.jar |Masonry |masonry |NONE |CREATE_REG|Manifest: NOSIGNATURE fairylights-4.0.5-1.16.5.jar |Fairy Lights |fairylights |4.0.5 |CREATE_REG|Manifest: NOSIGNATURE farmersdelightintegration-1.16.5-1.0.3.jar |Farmer's Delight Integration |farmersdelightintegration |1.16.5-1.0.3 |CREATE_REG|Manifest: NOSIGNATURE jeiintegration_1.16.5-7.0.1.15.jar |JEI Integration |jeiintegration |7.0.1.15 |CREATE_REG|Manifest: NOSIGNATURE decorative_winter-0.1.2.jar |Decorative Winter |decorative_winter |0.1.2 |CREATE_REG|Manifest: NOSIGNATURE flywheel-1.16-0.2.5.jar |Flywheel |flywheel |1.16-0.2.5 |CREATE_REG|Manifest: NOSIGNATURE steampowered-1.16.5-1.1.9.jar |Create: Steam Powered |steampowered |1.16.5-1.1.9 |CREATE_REG|Manifest: NOSIGNATURE create-mc1.16.5_v0.3.2g.jar |Create |create |v0.3.2g |ERROR |Manifest: NOSIGNATURE morecreatestuffs-mc1.16-1.4.1b.jar |More Create Stuffs |morecreatestuffs |mc1.16-1.4.1b |CREATE_REG|Manifest: NOSIGNATURE createdeco-1.1.2-1.16.5.jar |Create Deco |createdeco |1.1.2-1.16.5 |CREATE_REG|Manifest: NOSIGNATURE Patchouli-1.16.4-53.2.jar |Patchouli |patchouli |1.16.4-53.2 |CREATE_REG|Manifest: NOSIGNATURE GaiaDimension-Bridges-1.16.5-1.0.1a.jar |Gaia Dimension - Wood Bridges |gaia_dimension_wood_bridges |1.0.0 |CREATE_REG|Manifest: NOSIGNATURE RandomDecorativeThings-1.16.5-0.1.2.jar |Random Decorative Things |randomdecorativethings |0.1.2 |CREATE_REG|Manifest: NOSIGNATURE DoubleSlabs-1.16-3.7.2.jar |Double Slabs |doubleslabs |3.7.2 |CREATE_REG|Manifest: NOSIGNATURE lanterncolors-1.16.3-2.1.1.jar |Lantern Colors |lanterncolors |1.16.2-2.1.1 |CREATE_REG|Manifest: NOSIGNATURE buildersaddition-1.16.5-20210807a.jar |Builders Crafts & Addition |buildersaddition |1.16.5-20210807a |CREATE_REG|Manifest: NOSIGNATURE Blocks+-1.16.5-1.2.jar |Blocks + |blocksplus |1.2 |CREATE_REG|Manifest: NOSIGNATURE worldedit-mod-7.2.5-dist.jar |WorldEdit |worldedit |7.2.5+57d5ac9 |CREATE_REG|Manifest: NOSIGNATURE mcw-roofs-2.0.1-mc1.16.5-4.jar |Macaw's Roofs |mcwroofs |2.0.1 |CREATE_REG|Manifest: NOSIGNATURE nethers_delight-2.1.jar |Nethers Delight |nethers_delight |2.1 |CREATE_REG|Manifest: NOSIGNATURE MarketCrates-1.16.4-35.1.4-v1.1-universal.jar |Market Crates |marketcrates |v1.1-universal |CREATE_REG|Manifest: NOSIGNATURE cfm-7.0.0pre22-1.16.3.jar |MrCrayfish's Furniture Mod |cfm |7.0.0-pre22 |CREATE_REG|Manifest: NOSIGNATURE morecfm-1.3.1-1.16.3.jar |MrCrayfish's More Furniture Mo|morecfm |1.3.1 |CREATE_REG|Manifest: NOSIGNATURE architectury-1.25.36-forge.jar |Architectury |architectury |1.25.36 |ERROR |Manifest: NOSIGNATURE connectedglass-1.1.1-mc1.16.jar |Connected Glass |connectedglass |1.1.1 |CREATE_REG|Manifest: NOSIGNATURE otherblocks-0.1.18.jar |Other Blocks |otherblocks |0.1.18 |CREATE_REG|Manifest: NOSIGNATURE mcw-furniture-2.0.1-mc1.16.5.jar |Macaw's Furniture |mcwfurnitures |2.0.1 |CREATE_REG|Manifest: NOSIGNATURE NefsMedievalPub+v9.8(1.16.5).jar |Nef Deco Mod |nefdecomod |0.9.8 |CREATE_REG|Manifest: NOSIGNATURE byg-1.3.5.jar |Oh The Biomes You'll Go |byg |1.3.4 |CREATE_REG|Manifest: NOSIGNATURE improved_windows-v1.0.1.jar |Improved Windows |improved_windows |v1.0.1 |CREATE_REG|Manifest: NOSIGNATURE additionalbarsbop-2.0.3.jar |Additional Bars (Biomes o' Ple|additionalbarsbop |2.0.3 |CREATE_REG|Manifest: NOSIGNATURE xkdeco_0.2.4.jar |XK's Deco |xkdeco |0.2.4 |CREATE_REG|Manifest: NOSIGNATURE valhelsia_core-16.0.13a.jar |Valhelsia Core |valhelsia_core |16.0.13a |CREATE_REG|Manifest: NOSIGNATURE forbidden_arcanus-16.2.1.jar |Forbidden & Arcanus |forbidden_arcanus |16.2.1 |ERROR |Manifest: NOSIGNATURE effortlessbuilding-1.16.3-2.23.jar |Effortless Building |effortlessbuilding |1.16.3-2.23 |CREATE_REG|Manifest: NOSIGNATURE corail_pillar-1.16-5.0.0.jar |Corail Pillar |corail_pillar |5.0.0 |CREATE_REG|Manifest: NOSIGNATURE mcw-lights-1.0.0-mc1.16.5.jar |Macaw's Lights and Lamps |mcwlights |1.0.0 |CREATE_REG|Manifest: NOSIGNATURE createaddition-1.16.5-20211122b.jar |Create Crafts & Additions |createaddition |1.16.5-20211122b |CREATE_REG|Manifest: NOSIGNATURE Crash Report UUID: 9e544e5e-54e9-47ec-a7c6-ddcc92fb0097  
    • Yes that is an example of a serialization method.
    • Oh, so load from/into memory? Like this is adding a new "serializer" to the "acceptedItems" aka -> 0_0, 0_1, 0_2 etc.???, if the length is 1? If not, it will create a new array which will serialize like 0, 1, 2, 3? I really still don't understand what I'm talking about.
    • In programming serialization usually means converting to a "storable" format. If you have an object in memory and you serialize it to e.g. JSON you can then store that JSON file on disk or send it over the network. If you then deserialize that JSON back into an object of that same type you have an equivalent object back.
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.