Skip to content

Instantly share code, notes, and snippets.

View NeusFear's full-sized avatar
💭
Probably figuring things out, definatley not breaking things while I'm at it.

Brandon Davis NeusFear

💭
Probably figuring things out, definatley not breaking things while I'm at it.
View GitHub Profile
@NeusFear
NeusFear / error
Last active July 14, 2019 00:49
biome builder
[19:22:13] [main/INFO]: [STDERR]: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
[19:22:13] [main/INFO]: [STDERR]: at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:172)
[19:22:13] [main/INFO]: [STDERR]: at net.fabricmc.loader.launch.knot.Knot.init(Knot.java:129)
[19:22:13] [main/INFO]: [STDERR]: at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:26)
[19:22:13] [main/INFO]: [STDERR]: Caused by: java.lang.reflect.InvocationTargetException
[19:22:13] [main/INFO]: [STDERR]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[19:22:13] [main/INFO]: [STDERR]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[19:22:13] [main/INFO]: [STDERR]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[19:22:13] [main/INFO]: [STDERR]: at java.lang.reflect.Method.invoke(Method.java:498)
[19:22:13] [main/INFO]: [STDERR]: at net.fabricmc.loader.game.MinecraftGamePro
[12:37:41] [Server thread/DEBUG] [mixin]: Mixing world.storage.MixinThreadedFileIOBase from mixins.common.core.json into net.minecraft.world.storage.ThreadedFileIOBase
[12:37:42] [Sponge - Async Light Thread/ERROR] [STDERR]: Exception in thread "Sponge - Async Light Thread" java.lang.NullPointerException
[12:37:42] [Sponge - Async Light Thread/ERROR] [STDERR]: at net.minecraft.world.WorldServer.updateLightAsync(SourceFile:4265)
[12:37:42] [Sponge - Async Light Thread/ERROR] [STDERR]: at net.minecraft.world.chunk.Chunk.checkWorldLightFor(SourceFile:5407)
[12:37:42] [Sponge - Async Light Thread/ERROR] [STDERR]: at net.minecraft.world.chunk.Chunk.redirect$onCheckLightForSkylightNeighbor$zpp000(SourceFile:4917)
[12:37:42] [Sponge - Async Light Thread/ERROR] [STDERR]: at net.minecraft.world.chunk.Chunk.func_76609_d(SourceFile:268)
[12:37:42] [Sponge - Async Light Thread/ERROR] [STDERR]: at net.minecraft.world.chunk.Chunk.relightBlockAsync(SourceFile:5350)
[12:37:42] [Sponge - Async Light Thread/ERROR] [STDERR
public static void generateRow(Vector3i smallChunk, Vector3i bigChunk, World world, int x) {
for (int z = smallChunk.getZ(); z <= bigChunk.getZ(); z++) {
world.loadChunk(x, 0, z, false);
world.regenerateChunk(x, 0, z, ChunkRegenerateFlags.CREATE);
}
}
@Override
public void populate(World world, MutableBlockVolume buffer, ImmutableBiomeVolume biomes) {
for (int x = buffer.getBlockMin().getX(); x <= buffer.getBlockMax().getX(); x++) {
for (int z = buffer.getBlockMin().getZ(); z <= buffer.getBlockMax().getZ(); z++) {
if(draw(x) && draw(z)) {
for(int y = getDefaultDepth(x, z); y < getDefaultHeight(x, z); y++) {
if (genYet(x, z)) {
buffer.setBlockType(x, y, z, BlockTypes.STONE);
}
package neusfear.theforgecore.modules.islands.helpers;
public class Coordinate {
private int x, z;
public Coordinate(int x, int z) {
this.x = x;
this.z = z;
}
public int getX(){
return x;
package neusfear.theforgecore.modules.islands.helpers;
import java.util.Random;
public class Perlin {
private long seed;
private Random rand;
private int octave;
public Perlin(long seed, int octave) {
this.seed = seed;
[20:05:29] [Server thread/INFO] [sx.blah.discord.Discord4J]: Discord4J v2.10.1 9b1c81a (https://github.com/austinv11/Discord4J)
[20:05:29] [Server thread/INFO] [sx.blah.discord.Discord4J]: A Java binding for the official Discord API, forked from the inactive https://github.com/nerd/Discord4J. Copyright (c) 2017, Licensed under GNU LGPLv3
[20:05:30] [Server thread/ERROR] [Sponge]: Could not pass GamePreInitializationEvent$Impl to Plugin{id=theforgecore, name=TheForge Core, version=0.1.0, description=The core aspects of TheForge server, url=https://gitlab.com/theforgemc/theforge-core, authors=[NeusFear], source=mods\theforge-core-0.1.0.jar}
java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/ObjectMapper
at sx.blah.discord.api.internal.DiscordUtils.<clinit>(DiscordUtils.java:80) ~[DiscordUtils.class:?]
at sx.blah.discord.api.events.EventDispatcher.<init>(EventDispatcher.java:78) ~[EventDispatcher.class:?]
at sx.blah.discord.api.internal.DiscordClientImpl.<init>(DiscordClientImpl.java:158) ~[Discor
@NeusFear
NeusFear / FFBBlocks.java
Created February 8, 2018 23:41
register blocks forge
public class FFBBlocks {
public static Block maple_log;
public static void init(){
maple_log = registerBlock(new BlockMapleWoodLog(), "maple_log", false);
}
public static Block registerBlock(Block block, String blockName, boolean registerItemModels) {
Preconditions.checkNotNull(block, "Cannot register a null block");