36 lines
963 B
Java
36 lines
963 B
Java
package com.pahimar.ee3.api.event;
|
|
|
|
import net.minecraft.block.Block;
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraft.world.World;
|
|
import net.minecraftforge.common.util.ForgeDirection;
|
|
import net.minecraftforge.event.world.BlockEvent;
|
|
|
|
public class WorldTransmutationEvent extends BlockEvent {
|
|
public final ForgeDirection sideHit;
|
|
public final EntityPlayer player;
|
|
public final ItemStack heldItemStack;
|
|
|
|
public WorldTransmutationEvent(
|
|
int x,
|
|
int y,
|
|
int z,
|
|
World world,
|
|
Block block,
|
|
int blockMetaData,
|
|
ForgeDirection sideHit,
|
|
EntityPlayer entityLiving
|
|
) {
|
|
super(x, y, z, world, block, blockMetaData);
|
|
this.sideHit = sideHit;
|
|
this.player = entityLiving;
|
|
this.heldItemStack = entityLiving.getHeldItem();
|
|
}
|
|
|
|
@Override
|
|
public boolean isCancelable() {
|
|
return true;
|
|
}
|
|
}
|