GateSettings gS = GateSettings.createFromNBT(itemStack.stackTagCompound);
if (gS.kind == pipe.gate.kind && gS.isAutarchic == (pipe.gate instanceof GateVanilla && ((GateVanilla) pipe.gate).hasPulser())) {
for (int i = 0; i < 8; ++i) {
pipe.gate.actions[i] = ActionManager.actions.get(gS.slots[i].action);
pipe.gate.triggers[i] = ActionManager.triggers.get(gS.slots[i].trigger);
pipe.gate.triggerParameters[i] = new TriggerParameter();
pipe.gate.triggerParameters[i].set(gS.slots[i].triggerParameter);
}
entityPlayer.sendChatToPlayer(ChatMessageComponent.createFromText(StringUtils.localize("gui.GateSettings.pasted")));
}