mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-21 12:42:26 +00:00
Some things to note: Netty is screwy so currently can't join single player. @cpw Crafting has been MAJORY reworked. The current GameRegistry functions are nooped, this is IN THE WORKS. Just need to move the recipe list to a full class registry, and then re implement the in-code recipe registration. Also, it IS advised that modders move to JSON, because ideally we'll see a S->C recipe syncing system in 1.13 which would allow servers to have custom recipes. OreDictionary currently 1/2 works, need to write a better algorithm for replacing ingredients. Please be patient Rendering: A lot of functions got a new float parameter, this is similar to partial ticks, needs more research
31 lines
1.6 KiB
Diff
31 lines
1.6 KiB
Diff
--- ../src-base/minecraft/net/minecraft/client/renderer/entity/RenderPlayer.java
|
|
+++ ../src-work/minecraft/net/minecraft/client/renderer/entity/RenderPlayer.java
|
|
@@ -56,6 +56,7 @@
|
|
|
|
public void func_76986_a(AbstractClientPlayer p_76986_1_, double p_76986_2_, double p_76986_4_, double p_76986_6_, float p_76986_8_, float p_76986_9_)
|
|
{
|
|
+ if (net.minecraftforge.common.MinecraftForge.EVENT_BUS.post(new net.minecraftforge.client.event.RenderPlayerEvent.Pre(p_76986_1_, this, p_76986_9_, p_76986_2_, p_76986_4_, p_76986_6_))) return;
|
|
if (!p_76986_1_.func_175144_cb() || this.field_76990_c.field_78734_h == p_76986_1_)
|
|
{
|
|
double d0 = p_76986_4_;
|
|
@@ -70,6 +71,7 @@
|
|
super.func_76986_a(p_76986_1_, p_76986_2_, d0, p_76986_6_, p_76986_8_, p_76986_9_);
|
|
GlStateManager.func_187440_b(GlStateManager.Profile.PLAYER_SKIN);
|
|
}
|
|
+ net.minecraftforge.common.MinecraftForge.EVENT_BUS.post(new net.minecraftforge.client.event.RenderPlayerEvent.Post(p_76986_1_, this, p_76986_9_, p_76986_2_, p_76986_4_, p_76986_6_));
|
|
}
|
|
|
|
private void func_177137_d(AbstractClientPlayer p_177137_1_)
|
|
@@ -128,6 +130,11 @@
|
|
{
|
|
modelbiped$armpose1 = ModelBiped.ArmPose.BLOCK;
|
|
}
|
|
+ // FORGE: fix MC-88356 allow offhand to use bow and arrow animation
|
|
+ else if (enumaction1 == EnumAction.BOW)
|
|
+ {
|
|
+ modelbiped$armpose1 = ModelBiped.ArmPose.BOW_AND_ARROW;
|
|
+ }
|
|
}
|
|
}
|
|
|