StaffItemComponent

public final class StaffItemComponent(source)

ItemStack wrapper to make them compatible with ComponentTypes.

Parameters

item

The item stored in this component. Must be copied before modifying it

Constructors

Link copied to clipboard

Properties

Link copied to clipboard
public final static Codec<StaffItemComponent> CODEC
Link copied to clipboard
private final ItemStack item
Link copied to clipboard
Link copied to clipboard
public final static Codec<StaffItemComponent> VALIDATED_CODEC

Validated Codec for StaffItemComponent. This only allows items registered in StaffHandler.Registry.

Functions

Link copied to clipboard
public Boolean equals(Object other)
Link copied to clipboard
public final ItemStack getItem()
Link copied to clipboard
public Integer hashCode()