ModularPowersuits/src/main/java/net/machinemuse/powersuits/powermodule/RightClickPowerModule.java

36 lines
1.1 KiB
Java

package net.machinemuse.powersuits.powermodule;
import net.machinemuse.api.IModularItem;
import net.machinemuse.api.moduletrigger.IRightClickModule;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import java.util.List;
public class RightClickPowerModule extends PowerModule implements IRightClickModule {
public RightClickPowerModule(String name, List<IModularItem> validItems, String textureFile, String category) {
super(name, validItems, textureFile, category);
}
@Override
public void onRightClick(EntityPlayer playerClicking, World world, ItemStack item) {
}
@Override
public void onItemUse(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ) {
}
@Override
public boolean onItemUseFirst(ItemStack itemStack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY,
float hitZ) {
return false;
}
@Override
public void onPlayerStoppedUsing(ItemStack itemStack, World world, EntityPlayer player, int par4) {
}
}