valence icon indicating copy to clipboard operation
valence copied to clipboard

Add utility function to ItemStack for creating custom PlayerHeads

Open NotThatRqd opened this issue 8 months ago • 18 comments

Objective

  • Make it easier to create PlayerHeads with a custom skin.

Solution

  • Quick utility function on the ItemStack struct that will add the necessary NBT for you.

Concerns

  • Not sure if my explanation of how you're supposed to use the function (in the rustdoc) is good enough.
  • Not sure if returning a Result on a function meant to be chained is okay.
  • Not sure if I've chosen a good name for the function.

NotThatRqd avatar Jun 04 '24 03:06 NotThatRqd