Introduced Capabilities for World (#3069)

This commit is contained in:
Abastro authored and LexManos committed 2016-08-13 20:42:00 -07:00
1 parent b5db198f8b
commit bfddcfb4fc
9 files changed
+387 -87

No files matched your search

@@ -133,4 +133,21 @@ public class AttachCapabilitiesEvent extends Event
return this.stack;
}
}
/**
* A version of the parent event which is only fired for Worlds.
*/
public static class World extends AttachCapabilitiesEvent
{
private final net.minecraft.world.World world;
public World(net.minecraft.world.World world)
{
super(world);
this.world = world;
}
public net.minecraft.world.World getWorld()
{
return this.world;
}
}
}