Good morning, I'm just starting to use mcp, my knowledge is basic and I would like to know how I would do to pass a forge mod to a native Minecraft code (ModCoderPack).
How can I set a custom Layer to a username?
Is this code okay? and what is the code to establish the layer.
public void init(FMLInitializationEvent event)
{
System.out.println("DIRT BLOCK >> "+Blocks.dirt.getUnlocalizedName());
if(Minecraft.getMinecraft().getSession().getUsername() == "USERNAME_ONE" || Minecraft.getMinecraft().getSession().getUsername() == "USERNAME_TWO" )
{
custom cape code.
}
}