f1cca475ea
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
28 lines
1.1 KiB
Diff
28 lines
1.1 KiB
Diff
--- ../src-base/minecraft/net/minecraft/item/ItemBucket.java
|
|
+++ ../src-work/minecraft/net/minecraft/item/ItemBucket.java
|
|
@@ -40,6 +40,8 @@
|
|
boolean flag = this.field_77876_a == Blocks.field_150350_a;
|
|
ItemStack itemstack = p_77659_2_.func_184586_b(p_77659_3_);
|
|
RayTraceResult raytraceresult = this.func_77621_a(p_77659_1_, p_77659_2_, flag);
|
|
+ ActionResult<ItemStack> ret = net.minecraftforge.event.ForgeEventFactory.onBucketUse(p_77659_2_, p_77659_1_, itemstack, raytraceresult);
|
|
+ if (ret != null) return ret;
|
|
|
|
if (raytraceresult == null)
|
|
{
|
|
@@ -188,4 +190,16 @@
|
|
}
|
|
}
|
|
}
|
|
+
|
|
+ @Override
|
|
+ public net.minecraftforge.common.capabilities.ICapabilityProvider initCapabilities(ItemStack stack, @Nullable net.minecraft.nbt.NBTTagCompound nbt) {
|
|
+ if (this.getClass() == ItemBucket.class)
|
|
+ {
|
|
+ return new net.minecraftforge.fluids.capability.wrappers.FluidBucketWrapper(stack);
|
|
+ }
|
|
+ else
|
|
+ {
|
|
+ return super.initCapabilities(stack, nbt);
|
|
+ }
|
|
+ }
|
|
}
|