49 lines
1.3 KiB
Java
Executable file
49 lines
1.3 KiB
Java
Executable file
/**
|
|
* Copyright (c) 2011-2017, SpaceToad and the BuildCraft Team
|
|
* http://www.mod-buildcraft.com
|
|
* <p/>
|
|
* BuildCraft is distributed under the terms of the Minecraft Mod Public
|
|
* License 1.0, or MMPL. Please check the contents of the license located in
|
|
* http://www.mod-buildcraft.com/MMPL-1.0.txt
|
|
*/
|
|
package buildcraft.robotics.statements;
|
|
|
|
import net.minecraft.client.renderer.texture.IIconRegister;
|
|
|
|
import buildcraft.api.statements.IStatementParameter;
|
|
import buildcraft.core.lib.utils.StringUtils;
|
|
import buildcraft.core.statements.StatementParameterItemStackExact;
|
|
import buildcraft.robotics.EntityRobot;
|
|
|
|
public class ActionStationRequestItems extends ActionStationInputItems {
|
|
|
|
public ActionStationRequestItems() {
|
|
super("buildcraft:station.request_items");
|
|
}
|
|
|
|
@Override
|
|
public String getDescription() {
|
|
return StringUtils.localize("gate.action.station.request_items");
|
|
}
|
|
|
|
@Override
|
|
public void registerIcons(IIconRegister iconRegister) {
|
|
icon = iconRegister.registerIcon("buildcraftrobotics:triggers/action_station_request_items");
|
|
}
|
|
|
|
@Override
|
|
public int maxParameters() {
|
|
return 3;
|
|
}
|
|
|
|
@Override
|
|
public int minParameters() {
|
|
return 1;
|
|
}
|
|
|
|
@Override
|
|
public IStatementParameter createParameter(int index) {
|
|
return new StatementParameterItemStackExact(EntityRobot.TRANSFER_INV_SLOTS);
|
|
}
|
|
}
|