package com.choonster.testmod3.command;

import net.minecraft.command.server.CommandBlockLogic;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

public abstract class SurvivalCommandBlockLogic extends CommandBlockLogic {
	private final Type type;

	public SurvivalCommandBlockLogic(Type type) {
		this.type = type;
	}

	public Type getType() {
		return type;
	}

	@SideOnly(Side.CLIENT)
	@Override
	public int func_145751_f() {
		return type.ordinal();
	}

	public enum Type {
		BLOCK,
		MINECART
	}
}

@@ -354,24 +354,45 @@
 ype = type;%0A
+%09%09setName(%22Server%22);%0A
 %09%7D%0A%0A%09public 

Set default name of Survival Command Block to Server