package zmaster587.advancedRocketry.api.event;
import cpw.mods.fml.common.eventhandler.Cancelable;
import zmaster587.advancedRocketry.api.IAtmosphere;
import net.minecraft.entity.Entity;
import net.minecraft.world.World;
import net.minecraftforge.event.entity.EntityEvent;
public class AtmosphereEvent extends EntityEvent {
public final World world;
public final IAtmosphere atmosphere;
public AtmosphereEvent(Entity entity, IAtmosphere atmosphere) {
super(entity);
world = entity.worldObj;
this.atmosphere = atmosphere;
}
/**
* Called what an entity is about to be ticked in an atmosphere, effects are not applied if canceled
*/
@Cancelable
public static class AtmosphereTickEvent extends AtmosphereEvent {
public AtmosphereTickEvent(Entity entity, IAtmosphere atmosphere) {
super(entity, atmosphere);
}
}
}