2021-09-30 21:44:30 -05:00
|
|
|
//
|
|
|
|
|
// 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;
|
2022-11-15 15:25:53 -05:00
|
|
|
import noppes.npcs.api.IWorld;
|
|
|
|
|
import noppes.npcs.api.entity.IEntity;
|
2022-11-24 14:36:09 -06:00
|
|
|
import noppes.npcs.api.event.IForgeEvent;
|
2021-09-30 21:44:30 -05:00
|
|
|
|
|
|
|
|
@Cancelable
|
2022-11-24 14:36:09 -06:00
|
|
|
public class ForgeEvent extends CustomNPCsEvent implements IForgeEvent {
|
2021-09-30 21:44:30 -05:00
|
|
|
public final Event event;
|
|
|
|
|
|
|
|
|
|
public ForgeEvent(Event event) {
|
|
|
|
|
this.event = event;
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-24 14:36:09 -06:00
|
|
|
public Event getEvent() {
|
|
|
|
|
return event;
|
|
|
|
|
}
|
|
|
|
|
|
2021-09-30 21:44:30 -05:00
|
|
|
@Cancelable
|
2022-11-24 14:36:09 -06:00
|
|
|
public static class WorldEvent extends ForgeEvent implements IForgeEvent.WorldEvent {
|
2021-09-30 21:44:30 -05:00
|
|
|
public final IWorld world;
|
|
|
|
|
|
|
|
|
|
public WorldEvent(net.minecraftforge.event.world.WorldEvent event, IWorld world) {
|
|
|
|
|
super(event);
|
|
|
|
|
this.world = world;
|
|
|
|
|
}
|
2022-11-24 14:36:09 -06:00
|
|
|
|
|
|
|
|
public IWorld getWorld() {
|
|
|
|
|
return world;
|
|
|
|
|
}
|
2021-09-30 21:44:30 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Cancelable
|
2022-11-24 14:36:09 -06:00
|
|
|
public static class EntityEvent extends ForgeEvent implements IForgeEvent.EntityEvent {
|
2021-09-30 21:44:30 -05:00
|
|
|
public final IEntity entity;
|
|
|
|
|
|
|
|
|
|
public EntityEvent(net.minecraftforge.event.entity.EntityEvent event, IEntity entity) {
|
|
|
|
|
super(event);
|
|
|
|
|
this.entity = entity;
|
|
|
|
|
}
|
2022-11-24 14:36:09 -06:00
|
|
|
|
|
|
|
|
public IEntity getEntity() {
|
|
|
|
|
return entity;
|
|
|
|
|
}
|
2021-09-30 21:44:30 -05:00
|
|
|
}
|
|
|
|
|
|
2022-11-24 14:36:09 -06:00
|
|
|
public static class InitEvent extends ForgeEvent implements IForgeEvent.InitEvent {
|
2021-09-30 21:44:30 -05:00
|
|
|
public InitEvent() {
|
|
|
|
|
super((Event)null);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|