equivalent-exchange-3/ee3_common/com/pahimar/ee3/event/ActionEvent.java

36 lines
1,017 B
Java

package com.pahimar.ee3.event;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import net.minecraftforge.event.Event;
public class ActionEvent extends Event {
public enum ActionResult {
SUCCESS, DEFAULT, FAILURE
}
public final byte actionType;
public ItemStack itemStack;
public final EntityPlayer player;
public final World world;
public final int x, y, z;
public final boolean hasActionOccured;
public final String data;
public ActionResult actionResult;
public ActionEvent(byte actionType, ItemStack itemStack, EntityPlayer player, World world, int x, int y, int z, boolean hasActionOccured, String data) {
this.actionType = actionType;
this.itemStack = itemStack;
this.player = player;
this.world = world;
this.x = x;
this.y = y;
this.z = z;
this.hasActionOccured = hasActionOccured;
this.data = data;
}
}