Better Piglin method names

This commit is contained in:
DerFrZocker 2023-05-19 19:50:48 +02:00
parent 3a2ab39918
commit d8d0e43ba5
No known key found for this signature in database
GPG key ID: 713F71FFFE1DDF91

View file

@ -31,7 +31,7 @@ public interface Piglin extends PiglinAbstract, InventoryHolder {
* *
* @return true if the item has been added successfully, false otherwise * @return true if the item has been added successfully, false otherwise
*/ */
public boolean addBarterItemType(@NotNull ItemType itemType); public boolean addBarterItem(@NotNull ItemType itemType);
/** /**
* Removes an item type from the allowed list of item types to barter with. * Removes an item type from the allowed list of item types to barter with.
@ -44,7 +44,7 @@ public interface Piglin extends PiglinAbstract, InventoryHolder {
* *
* @return true if the item has been removed successfully, false otherwise * @return true if the item has been removed successfully, false otherwise
*/ */
public boolean removeBarterItemType(@NotNull ItemType itemType); public boolean removeBarterItem(@NotNull ItemType itemType);
/** /**
* Adds an item type the piglin will pickup and store in his inventory. * Adds an item type the piglin will pickup and store in his inventory.
@ -53,7 +53,7 @@ public interface Piglin extends PiglinAbstract, InventoryHolder {
* *
* @return true if the item has been added successfully, false otherwise * @return true if the item has been added successfully, false otherwise
*/ */
public boolean addItemTypeOfInterest(@NotNull ItemType itemType); public boolean addItemOfInterest(@NotNull ItemType itemType);
/** /**
* Removes an item type from the list of item types the piglin will pickup. * Removes an item type from the list of item types the piglin will pickup.
@ -65,7 +65,7 @@ public interface Piglin extends PiglinAbstract, InventoryHolder {
* @param itemType The item type you want removed from the interest list * @param itemType The item type you want removed from the interest list
* @return true if the item has been removed successfully, false otherwise * @return true if the item has been removed successfully, false otherwise
*/ */
public boolean removeItemTypeOfInterest(@NotNull ItemType itemType); public boolean removeItemOfInterest(@NotNull ItemType itemType);
/** /**
* Returns a immutable set of item types the piglins will pickup. * Returns a immutable set of item types the piglins will pickup.