Posted June 12, 201411 yr I want to send a message to the player through chat. I know that I need an IChatComponent, but what the heck is that? I can't send the message then, and I really need to. Developer of the WIP Rubies mod.
June 12, 201411 yr The direct implementor and indirect subclasses are ChatComponentStyle, ChatComponentText, and ChatComponentTranslation. Look them over if you're wondering how to use the interface. All these are in net.minecraft.util package. also look at ICommandSender#addChatMessage(IChatComponent msg) -S- (if I helped, please click Thank and applaud) http://6upnqa.dm2301.livefilestore.com/y2mtf-vG7Tqq1TiiVpIm53KWj7294NDPoHfSHHb4PzZiMAUfRCfK0UY0MwOu7Q3zTBNVTKqWjr2-xgBfFRpQT5p-QivtvknPpoABMNUw9br9WuZcBFkjePhnAbW500gVm-P/sequiturian.png[/img]
June 12, 201411 yr Author I am still confused on how to create one, curse those stupid p_11111_0_ parameters. Developer of the WIP Rubies mod.
June 12, 201411 yr The direct implementor and indirect subclasses are ChatComponentStyle, ChatComponentText, and ChatComponentTranslation. Look them over if you're wondering how to use the interface. All these are in net.minecraft.util package. also look at ICommandSender#addChatMessage(IChatComponent msg) Try using addChatMessage(new ChatComponentText("Hey dude learn java programming!!!")) -S- (if I helped, please click Thank and applaud) http://6upnqa.dm2301.livefilestore.com/y2mtf-vG7Tqq1TiiVpIm53KWj7294NDPoHfSHHb4PzZiMAUfRCfK0UY0MwOu7Q3zTBNVTKqWjr2-xgBfFRpQT5p-QivtvknPpoABMNUw9br9WuZcBFkjePhnAbW500gVm-P/sequiturian.png[/img]
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.