use of mekanism.common.integration.computer.annotation.ComputerMethod in project Mekanism by mekanism.
the class TileEntityQuantumEntangloporter method setFrequency.
@ComputerMethod
private void setFrequency(String name) throws ComputerException {
validateSecurityIsPublic();
InventoryFrequency frequency = FrequencyType.INVENTORY.getManagerWrapper().getPublicManager().getFrequency(name);
if (frequency == null) {
throw new ComputerException("No public inventory frequency with name '%s' found.", name);
}
setFrequency(FrequencyType.INVENTORY, frequency.getIdentity(), getOwnerUUID());
}
use of mekanism.common.integration.computer.annotation.ComputerMethod in project Mekanism by mekanism.
the class TileComponentConfig method incrementMode.
@ComputerMethod
private void incrementMode(TransmissionType type, RelativeSide side) throws ComputerException {
tile.validateSecurityIsPublic();
validateSupportedTransmissionType(type);
ConfigInfo configInfo = this.configInfo.get(type);
if (configInfo.getDataType(side) != configInfo.incrementDataType(side)) {
sideChanged(type, side);
}
}
use of mekanism.common.integration.computer.annotation.ComputerMethod in project Mekanism by mekanism.
the class TileComponentConfig method decrementMode.
@ComputerMethod
private void decrementMode(TransmissionType type, RelativeSide side) throws ComputerException {
tile.validateSecurityIsPublic();
validateSupportedTransmissionType(type);
ConfigInfo configInfo = this.configInfo.get(type);
if (configInfo.getDataType(side) != configInfo.decrementDataType(side)) {
sideChanged(type, side);
}
}
use of mekanism.common.integration.computer.annotation.ComputerMethod in project Mekanism by mekanism.
the class TileEntityQIOComponent method decrementFrequencyColor.
@ComputerMethod
private void decrementFrequencyColor() throws ComputerException {
validateSecurityIsPublic();
QIOFrequency frequency = computerGetFrequency();
frequency.setColor(frequency.getColor().getPrevious());
}
use of mekanism.common.integration.computer.annotation.ComputerMethod in project Mekanism by mekanism.
the class TileEntityDiversionTransporter method incrementMode.
@ComputerMethod
private void incrementMode(Direction side) {
DiversionTransporter transmitter = getTransmitter();
transmitter.updateMode(side, transmitter.modes[side.ordinal()].getNext());
}
Aggregations