Files
CraftTweaker/MineTweaker3-MC1710-Main/src/main/java/minetweaker/mc1710/ForgeEventHandler.java
T
Stan Hebben dfceec1fd4 - Block info detection is still broken in 1.6.4 (working on fix)
- Fixed MFR Planter
- Added /mt biomes command to see list of biomes
- Added reloaded event
- Fixing MFR Harvester
2014-08-09 15:36:19 +02:00

31 lines
909 B
Java

/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package minetweaker.mc1710;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.gameevent.PlayerEvent;
import minetweaker.MineTweakerImplementationAPI;
import minetweaker.api.minecraft.MineTweakerMC;
import net.minecraftforge.event.entity.player.PlayerInteractEvent;
/**
*
* @author Stan
*/
public class ForgeEventHandler {
@SubscribeEvent
public void onPlayerInteract(PlayerInteractEvent ev) {
minetweaker.api.event.PlayerInteractEvent event = new minetweaker.api.event.PlayerInteractEvent(
MineTweakerMC.getIPlayer(ev.entityPlayer),
MineTweakerMC.getDimension(ev.world),
ev.x, ev.y, ev.z
);
MineTweakerImplementationAPI.events.publishPlayerInteract(event);
}
}