mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-16 18:45:09 +00:00
Introduced Capabilities for World (#3069)
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user