Skip to content

Instantly share code, notes, and snippets.

View Mr00Anderson's full-sized avatar
🏠

Daniel Anderson Mr00Anderson

🏠
View GitHub Profile
@Mr00Anderson
Mr00Anderson / AccountClient.java
Created December 13, 2020 12:25
Account client
package app.virtualhex.network.clients;
import app.virtualhex.gdx.engine.state.StateReference;
import app.virtualhex.math.VLQUtilsNative;
import app.virtualhex.network.PacketManager;
import app.virtualhex.network.RawWebSocketsSession;
import app.virtualhex.network.RawWebSocketsSessionFactory;
import com.badlogic.gdx.Gdx;
package com.ZaidaZadkiel.ValueTime;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.math.Interpolation;
public class ValueTime {
public float values[];
public float times[];
public int lastindex=0;
package app.virtualhex.math;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
public class VLQUtilsNative {
package app.virtualhex.gdx.engine.scene2d;
import com.badlogic.gdx.scenes.scene2d.ui.Skin;
import com.badlogic.gdx.scenes.scene2d.ui.TextField;
import com.badlogic.gdx.utils.Array;
/**
* this class will notify a listener when a text field is unfocused
*/
public class TextFieldChangedNotify extends TextField implements Focusable{
package app.virtualhex.network;
import app.virtualhex.network.internal.api.SessionLookup;
import com.virtual_hex.networking.datatypes.VLQDecoder;
import com.virtual_hex.types.BitSlotInt;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
package app.virtualhex.network.packets;
import app.virtualhex.network.RawWebSocketsServerSession;
import app.virtualhex.network.RawWebSocketsSession;
import java.nio.ByteBuffer;
public class LatencyCheck extends AbstractPacket {
public static final int PACKET_ID = 1;
package com.virtual_hex.gdx.engine.scene2d.actions;
import com.badlogic.gdx.math.Interpolation;
import com.badlogic.gdx.utils.Array;
import com.virtual_hex.app.AppLauncher;
import com.virtual_hex.gdx.engine.Cleanup;
import com.virtual_hex.gdx.engine.app.GdxEngScreenManagerApp;
import com.virtual_hex.gdx.engine.assets.AnAsset;
import com.virtual_hex.gdx.engine.assets.AssetList;
import com.virtual_hex.gdx.engine.scene2d.EngStage;
package com.virtual_hex.network.http;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import io.netty.handler.codec.http.websocketx.TextWebSocketFrame;
import io.netty.handler.codec.http.websocketx.WebSocketFrame;
import java.util.Locale;
@Mr00Anderson
Mr00Anderson / HTTPInitializer.java
Created October 23, 2020 12:40
nettyio websockets nettyiowebsockets
package com.virtual_hex.network;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelPipeline;
import io.netty.channel.socket.SocketChannel;
import io.netty.handler.codec.http.HttpServerCodec;
public class HTTPInitializer extends ChannelInitializer<SocketChannel> {
protected void initChannel(SocketChannel socketChannel) throws Exception {

Caveat: At the release of this wiki page, Java 14 is the current released Java Development Kit (JDK).

Introduction

Every project will require the usage of at least one Java Development Kit (JDK). This is the source, root or core