Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.10.2] [SOLVED] Problems with Player's Display name


Tschipp
 Share

Recommended Posts

So should I just not implement IItemColor?
Not on your
Item

class anyways. You can implement it in a stand-alone class, use an anonymous class or even a lambda if you're using Java 8. It just has to be client-only, which your

Item

class is most certainly not.

 

Are there other ways of adding a color to an item (and block)?
No, it happens through
IItemColor

and

IBlockColor

.

 

I can't implement the interface client side only, right?
You mean remove the implements clause on the server? No, that is not possible.
Link to comment
Share on other sites

  • Replies 55
  • Created
  • Last Reply

Top Posters In This Topic

I think I'm already using a lambda for my BlockGravelGrass class:

Minecraft.getMinecraft().getBlockColors().registerBlockColorHandler((state, worldIn, pos, tintIndex) -> {
		if(worldIn != null && pos != null && tintIndex == 0) {
			return BiomeColorHelper.getGrassColorAtPos(worldIn, pos);	

		}
		return -1;

	}, BBBlocks.gravelGrass);

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share




×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.