Last active
May 25, 2016 15:25
-
-
Save HenryLoenwind/dd807bd5c8de5e9d3f4ee41f1f3619d3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package tmp; | |
import net.minecraft.block.state.IBlockState; | |
import net.minecraft.entity.player.EntityPlayer; | |
import net.minecraft.item.ItemStack; | |
import net.minecraft.nbt.NBTTagCompound; | |
import net.minecraft.util.EnumFacing; | |
import net.minecraft.util.EnumHand; | |
import net.minecraft.util.math.BlockPos; | |
import net.minecraft.world.IBlockAccess; | |
import net.minecraftforge.event.world.BlockEvent; | |
import net.minecraftforge.fml.common.eventhandler.Event; | |
public class EventWrenchAction extends BlockEvent { | |
private final EntityPlayer player; | |
private final EnumHand hand; | |
private final ItemStack itemInHand; | |
private final IWrenchAction wrenchAction; | |
// private final IBlockState blockClicked; in super | |
// private final IBlockAccess world; in super | |
// private final BlockPos pos; in super | |
private final EnumFacing faceClicked; | |
private final float hitX, hitY, hitZ; | |
private ItemStack pickupResult; | |
public static interface IWrenchAction { | |
} | |
public static enum EnumWrenchAction implements IWrenchAction { | |
HIT, | |
DISMANTLE, | |
PICKUP, | |
IOMODE | |
} | |
public static class RotateWrenchAction implements IWrenchAction { | |
} | |
public static class RotateAxisWrenchAction extends RotateWrenchAction { | |
private final EnumFacing.Axis axis; | |
private final boolean ccw; | |
} | |
public static class RotateDirectionWrenchAction extends RotateWrenchAction { | |
private final EnumFacing facing; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment