Package com.minecolonies.api.items
Class CheckedNbtKey
java.lang.Object
com.minecolonies.api.items.CheckedNbtKey
Representation of a nbt key to match two item stacks.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
key
-
children
-
-
Constructor Details
-
CheckedNbtKey
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
matches
public boolean matches(net.minecraft.nbt.CompoundTag nbt1, net.minecraft.nbt.CompoundTag nbt2) Check if two nbt match according to this checked nbt keys rules.- Parameters:
nbt1- the first nbt.nbt2- the second nbt.- Returns:
- true if they match.
-