Skip to content

Instantly share code, notes, and snippets.

// TS.Bitmex.Application
// StatsPresenter.cs
// Developed By : Alireza Khodakarami
// Created At : 2018/12/17
// Edited At : 2018/12/17
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive.Concurrency;
<?xml version="1.0" encoding="UTF-8" standalone="no"?><component name="ProjectRunConfigurationManager"><configuration default="false" factoryName="Application" name="Forge Client" type="Application"><module name="Forge"/><option name="MAIN_CLASS_NAME" value="GradleStart"/><option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$/run"/></configuration></component>
2016-04-23 20:16:18,671 [1453482] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: Build process started. Classpath: C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.1.1/lib/jps-launcher.jar;C:/Program Files/Java/jdk1.8.0_77/lib/tools.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.1.1/lib/optimizedFileManager.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.1.1/lib/ecj-4.5.2.jar
2016-04-23 20:16:20,500 [1455311] INFO - pl.ProjectRootManagerComponent - project roots have changed
2016-04-23 20:16:20,516 [1455327] INFO - .diagnostic.PerformanceWatcher - Pushing properties took 16ms; general responsiveness: ok; EDT responsiveness: ok
2016-04-23 20:16:20,516 [1455327] INFO - lij.compiler.impl.CompilerUtil - COMPILATION FINISHED (BUILD PROCESS); Errors: 8; warnings: 0 took 3134 ms: 0 min 3sec
2016-04-23 20:16:20,516 [1455327] INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 0ms; general resp
---- Minecraft Crash Report ----
WARNING: coremods are present:
CodeChickenCorePlugin (CodeChickenCore-1.9-2.0.1.53-universal.jar)
CCCDeobfPlugin (unknown)
LoadingPlugin (FastLeafDecay-MC1.9-1.2.jar)
Reborn Core ASM (RebornCore-1.9-2.0.5.50-universal.jar)
CCLCorePlugin (CodeChickenLib-1.9-2.0.1.23-universal.jar)
Contact their authors BEFORE contacting forge
processResources
{
inputs.property "version", project.version
inputs.property "mcversion", minecraft_version
from(sourceSets.main.resources.srcDirs)
{
include '**/*.info'
include '**/*.properties'
[19:27:17] [Netty Server IO #1/ERROR] [FML]: SimpleChannelHandlerWrapper exception
java.lang.NoSuchMethodError: net.minecraft.item.Item.getRegistryName()Ljava/lang/String;
at cpw.mods.inventorysorter.InventoryHandler$ItemStackComparator.compare(InventoryHandler.java:214) ~[InventoryHandler$ItemStackComparator.class:?]
at cpw.mods.inventorysorter.InventoryHandler$ItemStackComparator.compare(InventoryHandler.java:206) ~[InventoryHandler$ItemStackComparator.class:?]
at com.google.common.collect.TreeMultiset$AvlNode.add(TreeMultiset.java:578) ~[guava-17.0.jar:?]
at com.google.common.collect.TreeMultiset.add(TreeMultiset.java:260) ~[guava-17.0.jar:?]
at cpw.mods.inventorysorter.InventoryHandler.getInventoryContent(InventoryHandler.java:195) ~[InventoryHandler.class:?]
at cpw.mods.inventorysorter.SortingHandler.apply(SortingHandler.java:45) ~[SortingHandler.class:?]
at cpw.mods.inventorysorter.SortingHandler.apply(SortingHandler.java:36) ~[SortingHandler.class:?]
at cpw.mods.inventorysorter.Action.execute(A
for (Chunk chunk : world.getChunkProvider().loadedChunks)
{
ChunkCoordIntPair coord = chunk.getChunkCoordIntPair();
if (!loadedChunks.contains(coord) && !persistantChunks.containsKey(coord) && world.getChunkProvider().chunkExists(coord.chunkXPos, coord.chunkZPos))
{
PlayerManager.PlayerInstance instance = manager.getEntry(coord.chunkXPos, coord.chunkZPos);//.getOrCreateChunkWatcher(coord.chunkXPos, coord.chunkZPos, false);
if (instance == null)
{
world.getChunkProvider().dropChunk(coord.chunkXPos, coord.chunkZPos);
}
public static void cleanChunks(WorldServer world) {
int dim = CommonUtils.getDimension(world);
int viewdist = ServerUtils.mc().getPlayerList().getViewDistance();
HashSet<ChunkCoordIntPair> loadedChunks = new HashSet<>();
for (EntityPlayer player : ServerUtils.getPlayersInDimension(dim)) {
int playerChunkX = (int) player.posX >> 4;
int playerChunkZ = (int) player.posZ >> 4;
for (int cx = playerChunkX - viewdist; cx <= playerChunkX + viewdist; cx++)
public static void cleanChunks(WorldServer world) {
int dim = CommonUtils.getDimension(world);
int viewdist = ServerUtils.mc().getPlayerList().getViewDistance();
HashSet<ChunkCoordIntPair> loadedChunks = new HashSet<ChunkCoordIntPair>();
for (EntityPlayer player : ServerUtils.getPlayersInDimension(dim)) {
int playerChunkX = (int) player.posX >> 4;
int playerChunkZ = (int) player.posZ >> 4;
for (int cx = playerChunkX - viewdist; cx <= playerChunkX + viewdist; cx++)
loginTimes.forEachEntry(new TObjectLongProcedure()
{
public boolean execute(GameProfile a, long b)
{
NBTTagCompound t = NBTUtils.proifleToNBT(a);
t.setLong("LoginTime", b);
tagList.appendTag(t);
return true;
}
});