Skip to content

Instantly share code, notes, and snippets.

Ryan Leach ryantheleach

Block or report user

Report or block ryantheleach

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:345319d38743b6ee2586f186001d8109
---- Minecraft Crash Report ----
WARNING: coremods are present:
Techguns Core (techguns-1.12.2-2.0.1.0.jar)
SpongeCoremod (spongeforge-1.12.2-2655-7.1.0-BETA-3065.jar)
Inventory Tweaks Coremod (InventoryTweaks-1.64-dev.jar)
BetterFoliageLoader (BetterFoliage-MC1.12-2.1.10.jar)
EnderCorePlugin (EnderCore-1.12.2-0.5.22.jar)
Contact their authors BEFORE contacting forge
View gist:5b7d2f7a50cea346c12450e76174cb8e
---- Minecraft Crash Report ----
WARNING: coremods are present:
SpongeCoremod (sponge.jar)
Contact their authors BEFORE contacting forge
// Don't be sad. I'll do better next time, I promise!
Time: 1/28/18 4:20 PM
Description: Ticking entity
View gist:cdb2e07f3e1c4d61d0724b70a888dccb
[20:16:26] [Server thread/WARN]: Failed to handle packet for /127.0.0.1:37978
net.minecraft.util.ReportedException: Ticking player
at net.minecraft.entity.player.EntityPlayerMP.onUpdateEntity(EntityPlayerMP.java:459) ~[oq.class:?]
at net.minecraft.network.NetHandlerPlayServer.redirect$onPlayerTick$zhm000(NetHandlerPlayServer.java:2029) ~[pa.class:?]
at net.minecraft.network.NetHandlerPlayServer.update(NetHandlerPlayServer.java:173) ~[pa.class:?]
at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher$1.update(NetworkDispatcher.java:209) ~[NetworkDispatcher$1.class:?]
at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:285) ~[gw.class:?]
at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:180) [oz.class:?]
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:788) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.updateTimeLightAndEntities(DedicatedServer.java:396) [nz.class:?]
View gist:f0e51d2e5c33ef5fd0f84e04e4543267
Creational Patterns:
AbstractFactory ->
Builder -> Used extensively.
FactoryMethod ->
Prototype -> (Archetype, kinda)
Singleton -> (Main plugin instance)
*Multiton -> CatalogTypes
Structural patterns
View gist:62d5eead19d59ec682543de5298faff2
10.01 20:57:12 [Server] Server thread/FATAL Error executing task
10.01 20:57:12 [Server] INFO java.util.concurrent.ExecutionException: java.lang.AbstractMethodError: Method jds/bibliocraft/tileentities/TileEntityTypeMachine.getStackInSlot(I)Lnet/minecraft/item/ItemStack; is abstract
10.01 20:57:12 [Server] INFO at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_151]
10.01 20:57:12 [Server] INFO at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_151]
10.01 20:57:12 [Server] INFO at net.minecraft.util.Util.runTask(SourceFile:47) [h.class:?]
10.01 20:57:12 [Server] INFO at org.spongepowered.common.SpongeImplHooks.onUtilRunTask(SpongeImplHooks.java:274) [SpongeImplHooks.class:1.12.2-2555-7.1.0-BETA-2825]
10.01 20:57:12 [Server] INFO at net.minecraft.server.MinecraftServer.redirect$onRun$zjg000(MinecraftServer.java:4007) [MinecraftServer.class:?]
10.01 20:57:12 [Server] INFO at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:721) [Minecr
@ryantheleach
ryantheleach / Insane.md
Created Jan 5, 2018
Ryan's insane SpongeAPI Challenge
View Insane.md

Things that are probably impossible to do in SpongeAPI currently, that I see minigames servers and packet interceptors cabable of online.

Most of these I wish I had time to develop plugins for, including API, to create a kick ass server.

  1. Just 'Hide' an entity to a specific set of players.
  2. Exclude a set of players from targeting by AI's, commands, or other players.
  3. Change the appearance of entities/players to other players.
  4. Send "fake" entities that are manually tracked and simulated emulated by a plugin, total control, no performance problems of many copies of entities being tracked in the global entity list, no risk of accidental persistence in saving.
View nightmode.css
@import "theme_variables";
@import url(https://fonts.googleapis.com/css?family=Montserrat:400,700);
// ######################################
// ### CONFIG
// Annoying purple highlight for pinned topic
$highlighted_topic_id: 2130;
// ######################################
View Home.java
package au.id.rleach.testdata;
import org.spongepowered.api.data.DataContainer;
import org.spongepowered.api.data.DataQuery;
import org.spongepowered.api.data.DataSerializable;
import org.spongepowered.api.data.MemoryDataContainer;
import org.spongepowered.api.data.Queries;
import org.spongepowered.api.world.Location;
import org.spongepowered.api.world.World;
@ryantheleach
ryantheleach / KeybdHookDebug.ahk
Created Oct 17, 2016
Logitech Gaming Software F13-F24 Keys
View KeybdHookDebug.ahk
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#InstallKeybdHook ;https://autohotkey.com/docs/commands/KeyHistory.htm
KeyHistory
;Run script, right click AHK icon in taskbar, Open, View History.
View InteractItemEvent.java
/*
* This file is part of SpongeAPI, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
You can’t perform that action at this time.