mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 09:39:05 +00:00
Backported GUI features and necessary classes from 1.12.
This commit is contained in:
1 parent
8b6e84a8d4
commit
95d2814651
46 files changed
+3675
-520
No files matched your search
@@ -0,0 +1,46 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package noppes.npcs.scripted.event;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.Cancelable;
|
||||
import cpw.mods.fml.common.eventhandler.Event;
|
||||
import noppes.npcs.scripted.IWorld;
|
||||
import noppes.npcs.scripted.IEntity;
|
||||
|
||||
@Cancelable
|
||||
public class ForgeEvent extends CustomNPCsEvent {
|
||||
public final Event event;
|
||||
|
||||
public ForgeEvent(Event event) {
|
||||
this.event = event;
|
||||
}
|
||||
|
||||
@Cancelable
|
||||
public static class WorldEvent extends ForgeEvent {
|
||||
public final IWorld world;
|
||||
|
||||
public WorldEvent(net.minecraftforge.event.world.WorldEvent event, IWorld world) {
|
||||
super(event);
|
||||
this.world = world;
|
||||
}
|
||||
}
|
||||
|
||||
@Cancelable
|
||||
public static class EntityEvent extends ForgeEvent {
|
||||
public final IEntity entity;
|
||||
|
||||
public EntityEvent(net.minecraftforge.event.entity.EntityEvent event, IEntity entity) {
|
||||
super(event);
|
||||
this.entity = entity;
|
||||
}
|
||||
}
|
||||
|
||||
public static class InitEvent extends ForgeEvent {
|
||||
public InitEvent() {
|
||||
super((Event)null);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user