
zenglintao
Members-
Content Count
23 -
Joined
-
Last visited
Community Reputation
1 NeutralAbout zenglintao
-
Rank
Tree Puncher
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
I often see the word Vanilla, but I don’t know what it is, can anyone tell me?
-
public class MyItem extends Item { public MyItem() { super(new Properties().group(ItemGroup.MATERIALS)); } public ActionResult<ItemStack> onItemRightClick(World worldIn, PlayerEntity playerIn, Hand handIn) { playerIn.sendMessage(); if (this.isFood()) { ItemStack itemstack = playerIn.getHeldItem(handIn); if (playerIn.canEat(this.getFood().canEatWhenFull())) { playerIn.setActiveHand(handIn); return ActionResult.resultConsume(itemstack); } else { return ActionResult.res
-
public void sendMessage(ITextComponent component) { } It is an empty method, I don't know how to use it. ITextComponent is an interface
-
But what is ITextComponent?
-
Ok, I want to send a message
-
About The WorldGenTrees Class Was Outdated
zenglintao replied to Luo_Shijian's topic in Modder Support
Like This? -
About The WorldGenTrees Class Was Outdated
zenglintao replied to Luo_Shijian's topic in Modder Support
-
About The WorldGenTrees Class Was Outdated
zenglintao replied to Luo_Shijian's topic in Modder Support
<image of vanilla code removed - diesieben07> -
Shouldn't you use a Player object to do that?
-
Um, i got it. Thanks
-
okay, thank you