Skip to content

Instantly share code, notes, and snippets.

View Mr00Anderson's full-sized avatar
🏠

Daniel Anderson Mr00Anderson

🏠
View GitHub Profile
-- PlayerCommands plugin
--
-- Commands:
-- /starterkit
-- /addkititem <item name> <amount> <interval in minutes> (-1 for only once)
-- /removekititem <item name>
-- /who <page number>
import("System")
@Mr00Anderson
Mr00Anderson / CachedEventLoopGroup.java
Created August 12, 2018 21:37
Generate a cached event loop group for the JVM
package com.freeuniversegames.network;
import com.freeuniversegames.constants.Net;
import io.netty.channel.Channel;
import io.netty.channel.ChannelFuture;
import io.netty.channel.DefaultEventLoopGroup;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.epoll.EpollDatagramChannel;
import io.netty.channel.epoll.EpollEventLoopGroup;
import io.netty.channel.epoll.EpollServerSocketChannel;
package com.freeuniversegames.network.client;
import com.freeuniversegames.constants.Net;
import com.freeuniversegames.network.CachedEventLoopGroup;
import com.freeuniversegames.network.session.Session;
import io.netty.channel.Channel;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelFutureListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@Mr00Anderson
Mr00Anderson / OpenSimplexNoise.java
Created July 19, 2019 14:42 — forked from KdotJPG/OpenSimplex2S.java
Visually axis-decorrelated coherent noise algorithm based on the Simplectic honeycomb.
/*
* OpenSimplex Noise in Java.
* by Kurt Spencer
*
* v1.1 (October 5, 2014)
* - Added 2D and 4D implementations.
* - Proper gradient sets for all dimensions, from a
* dimensionally-generalizable scheme with an actual
* rhyme and reason behind it.
* - Removed default permutation array in favor of
@Mr00Anderson
Mr00Anderson / BitSlotInt.java
Created June 16, 2020 21:22
helpful for operations
package com.virtual_hex.types;
//@formatter:off - IntelliJ
/* @formatter:off - Eclipse */
/**
* Utility for visualizing bit operations
*
* Author: mr00anderson
*
@Mr00Anderson
Mr00Anderson / AbstractEngTask.java
Created August 10, 2020 17:51
Simple loading widget
package com.virtual_hex.gdx.engine;
public abstract class AbstractEngTask implements EngTask {
public String name;
public AbstractEngTask() {
}
public AbstractEngTask(String name) {
package com.virtual_hex.gdx.engine.test;
import com.kotcrab.vis.ui.VisUI;
import com.virtual_hex.app.AppLauncher;
import com.virtual_hex.gdx.engine.app.GdxEngAppScreenBuilder;
import com.virtual_hex.gdx.engine.app.GdxEngScreenManagerApp;
import com.virtual_hex.gdx.engine.assets.EngineAssetManager;
// Core for all devices - Which will be basic tools, the web will be different though until file system
package com.virtual_hex.gdx.engine.test;
import com.kotcrab.vis.ui.VisUI;
import com.virtual_hex.app.AppLauncher;
import com.virtual_hex.gdx.engine.app.GdxEngAppScreenBuilder;
import com.virtual_hex.gdx.engine.app.GdxEngScreenManagerApp;
import com.virtual_hex.gdx.engine.assets.EngineAssetManager;
// Core for all devices - Which will be basic tools, the web will be different though until file system
package com.virtual_hex.gdx.engine.test;
import com.kotcrab.vis.ui.VisUI;
import com.virtual_hex.app.AppLauncher;
import com.virtual_hex.gdx.engine.app.GdxEngAppScreenBuilder;
import com.virtual_hex.gdx.engine.app.GdxEngScreenManagerApp;
import com.virtual_hex.gdx.engine.assets.EngineAssetManager;
// Core for all devices - Which will be basic tools, the web will be different though until file system
@Mr00Anderson
Mr00Anderson / EditableLabel.java
Created August 18, 2020 13:17
Editable label editable label
package com.virtual_hex.gdx.engine.scene2d;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input;
import com.badlogic.gdx.scenes.scene2d.Event;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.ui.Label;
import com.badlogic.gdx.scenes.scene2d.ui.Table;
import com.badlogic.gdx.scenes.scene2d.ui.TextField;
import com.badlogic.gdx.scenes.scene2d.utils.ClickListener;