Skip to content

Instantly share code, notes, and snippets.

@HenryLoenwind
Last active May 25, 2016 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HenryLoenwind/dd807bd5c8de5e9d3f4ee41f1f3619d3 to your computer and use it in GitHub Desktop.
Save HenryLoenwind/dd807bd5c8de5e9d3f4ee41f1f3619d3 to your computer and use it in GitHub Desktop.
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