Skip to content

Instantly share code, notes, and snippets.

View LexManos's full-sized avatar

LexManos LexManos

  • Forge Development LLC
  • Oregon
View GitHub Profile
@LexManos
LexManos / ConfigTest.java
Created October 11, 2016 04:54
Config Test
package net.minecraftforge.debug;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.common.config.Config;
import net.minecraftforge.common.config.Config.*;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
@Mod(modid = ConfigTest.MODID, name = "ConfigTest", version = "1.0")
public class ConfigTest
@LexManos
LexManos / Retrogen.patch
Created September 17, 2016 01:31
RetroGen Draft
diff --git a/patches/minecraft/net/minecraft/item/Item.java.patch b/patches/minecraft/net/minecraft/item/Item.java.patch
index 5496a45..ced5c8a 100644
--- a/patches/minecraft/net/minecraft/item/Item.java.patch
+++ b/patches/minecraft/net/minecraft/item/Item.java.patch
@@ -52,7 +52,7 @@
return p_77621_1_.func_147447_a(vec3d, vec3d1, p_77621_3_, !p_77621_3_, false);
}
-@@ -426,11 +432,569 @@
+@@ -426,11 +432,580 @@
Do not PM voiced/opped people unless explicitly given premission. We do not like being spammed.
If you can not talk it is most likely because you are using a Web client, stop using a web client.
Do not say Lex's full nick unless nessasary.
Stay on topic.
Don't Ask to ask a question, just ask the question. If anyone is around they will answer. http://sol.gfxile.net/dontask.html
Banned topics:
Release ETAs,
Official API,
'MC would be better in {insert language here}'
@LexManos
LexManos / 1_onibait.txt
Last active May 29, 2016 09:58
Forge Contribs
eb594066 common/net/minecraftforge/common/ForgeHooks.java (<[email protected]> 2013-10-08 19:00:02 -0500 33) import net.minecraft.entity.player.EntityPlayerMP;
eb594066 common/net/minecraftforge/common/ForgeHooks.java (<[email protected]> 2013-10-08 19:00:02 -0500 37) import net.minecraft.inventory.Container;
eb594066 common/net/minecraftforge/common/ForgeHooks.java (<[email protected]> 2013-10-08 19:00:02 -0500 47) import net.minecraft.item.ItemSword;
eb594066 common/net/minecraftforge/common/ForgeHooks.java (<[email protected]> 2013-10-08 19:00:02 -0500 53) import net.minecraft.tileentity.TileEntity;
eb594066 common/net/minecraftforge/common/ForgeHooks.java (<[email protected]> 2013-10-08 19:00:02 -0500 97) import net.minecraftforge.event.world.BlockEvent;
eb594066 common/net/minecraftforge/common/ForgeHooks.java (<[email protected]> 2013-10-08 19:00:02 -0500 666) {
eb594066 common/net/minecraftforge/common/Fo
net/minecraft/network/play/server/SPacketUpdateEntityNBT net/minecraft/network/play/server/SPacketUpdateBossInfo
net/minecraft/client/resources/data/IMetadataSerializer net/minecraft/client/resources/data/MetadataSerializer
net/minecraft/client/renderer/texture/IIconCreator net/minecraft/client/renderer/texture/ITextureMapPopulator
net/minecraft/pathfinding/Path net/minecraft/pathfinding/PathHeap
net/minecraft/pathfinding/PathEntity net/minecraft/pathfinding/Path
net/minecraft/network/play/client/CPacketPlayerTryUseItem net/minecraft/network/play/client/CPacketPlayerTryUseItemOnBlock
net/minecraft/network/play/client/CPacketPlayerBlockPlacement net/minecraft/network/play/client/CPacketPlayerTryUseItem
net/minecraft/entity/passive/HorseType net/minecraft/entity/passive/HorseArmorType
net/minecraft/entity/passive/HorseArmorType net/minecraft/entity/passive/HorseType
net/minecraft/entity/player/EntityPlayer$EnumStatus net/minecraft/entity/player/EntityPlayer$SleepResult
@LexManos
LexManos / LootTables.patch
Created May 7, 2016 18:16
First draft of modifications to Loot Tables for modder usage/modification.
diff --git a/patches/minecraft/net/minecraft/world/storage/loot/LootEntry.java.patch b/patches/minecraft/net/minecraft/world/storage/loot/LootEntry.java.patch
new file mode 100644
index 0000000..31c3c53
--- /dev/null
+++ b/patches/minecraft/net/minecraft/world/storage/loot/LootEntry.java.patch
@@ -0,0 +1,59 @@
+--- ../src-base/minecraft/net/minecraft/world/storage/loot/LootEntry.java
++++ ../src-work/minecraft/net/minecraft/world/storage/loot/LootEntry.java
+@@ -18,15 +18,17 @@
+
@LexManos
LexManos / [email protected]
Last active May 2, 2016 19:49
Forge Attributions
8db72015 src/main/java/net/minecraftforge/client/GuiIngameForge.java (<[email protected]> 2015-12-13 04:47:25 -0600 618) name = this.highlightingItemStack.getItem().getHighlightTip(this.highlightingItemStack, name);
8db72015 src/main/java/net/minecraftforge/client/GuiIngameForge.java (<[email protected]> 2015-12-13 04:47:25 -0600 619)
Single line function call, Trivial
package net.minecraftforge.test;
import net.minecraft.block.Block;
import net.minecraft.block.BlockPrismarine;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.ItemColored;
import net.minecraft.util.ResourceLocation;
[01:24:43 AM] [BNCS] Local Hashing Failed
[01:24:43 AM] All connections closed.
[01:24:56 AM] Connecting your bot...
[01:24:56 AM] [BNCS] Connecting to the Battle.net server at useast.battle.net...
[01:24:56 AM] [BNCS] Connected!
[01:24:56 AM] [BNCS] Checking version...
[01:24:56 AM] [BNCS] Server signature validated!
[01:24:57 AM] [BNCS] Version check failed! The version byte for this attempt was 0x18.
[01:24:57 AM] [BNCS] Please ensure you have updated your hash files using more current ones from the directory of the game you're connecting with.
diff --git a/patches/minecraft/net/minecraft/block/Block.java.patch b/patches/minecraft/net/minecraft/block/Block.java.patch
index 0f8b38c..a743936 100644
--- a/patches/minecraft/net/minecraft/block/Block.java.patch
+++ b/patches/minecraft/net/minecraft/block/Block.java.patch
@@ -188,7 +188,7 @@
}
protected ItemStack func_180643_i(IBlockState p_180643_1_)
-@@ -1010,6 +1030,1065 @@
+@@ -1010,6 +1030,1114 @@