Skip to content

Instantly share code, notes, and snippets.

@Caellian
Created August 4, 2018 13:56
Show Gist options
  • Select an option

  • Save Caellian/621232af5aab4a50f9604accd048748a to your computer and use it in GitHub Desktop.

Select an option

Save Caellian/621232af5aab4a50f9604accd048748a to your computer and use it in GitHub Desktop.
Collection of most terrible pieces of code I stumbled upon.
// This class would be understandable if the #call() method wasn't instantly called by the only method actually using it...
public interface ICrashReportDetail<V> extends Callable<V> {}
public class WorldType {
public static final WorldType[] WORLD_TYPES = new WorldType[16];
public static final WorldType DEFAULT = (new WorldType(0, "default", 1)).setVersioned();
public static final WorldType FLAT = new WorldType(1, "flat");
public static final WorldType LARGE_BIOMES = new WorldType(2, "largeBiomes");
public static final WorldType AMPLIFIED = (new WorldType(3, "amplified")).setNotificationData();
public static final WorldType CUSTOMIZED = new WorldType(4, "customized");
public static final WorldType DEBUG_WORLD = new WorldType(5, "debug_all_block_states");
public static final WorldType DEFAULT_1_1 = (new WorldType(8, "default_1_1", 0)).setCanBeCreated(false);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment