Skip to content

Commit

Permalink
remove some obsolete methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Snabeldier committed Jan 16, 2025
1 parent df6ae87 commit 07c64d7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 29 deletions.
14 changes: 0 additions & 14 deletions src/main/java/minevalley/core/api/Core.java
Original file line number Diff line number Diff line change
Expand Up @@ -783,20 +783,6 @@ public static ItemBuilder createItem(@Nonnull Material material) throws IllegalA
return server.createItem(material);
}

/**
* Creates a new item-builder based on a specific material and data.
*
* @param material material of the item to create
* @param data specific data for the item as short
* @return new item-builder
* @throws IllegalArgumentException if the material is null or data is invalid
*/
@Nonnull
@Contract("_, _ -> new")
public static ItemBuilder createItem(@Nonnull Material material, int data) throws IllegalArgumentException {
return server.createItem(material, data);
}

/**
* Creates a new item-builder from the players head.
*
Expand Down
4 changes: 0 additions & 4 deletions src/main/java/minevalley/core/api/CoreServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,6 @@ public interface CoreServer {
@Contract("_ -> new")
ItemBuilder createItem(@Nonnull Material material) throws IllegalArgumentException;

@Nonnull
@Contract("_, _ -> new")
ItemBuilder createItem(@Nonnull Material material, int data) throws IllegalArgumentException;

@Nonnull
@Contract("_ -> new")
ItemBuilder createItem(@Nonnull Player player) throws IllegalArgumentException;
Expand Down
11 changes: 0 additions & 11 deletions src/main/java/minevalley/core/api/utils/ItemBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,6 @@ public interface ItemBuilder {
@Contract("_ -> this")
ItemBuilder setDurability(@Nonnegative int durability) throws IllegalArgumentException, UnsupportedOperationException;

/**
* Sets the item's data.
*
* @param data data of the item as integer
* @return this item-builder
* @throws IllegalArgumentException if the data is negative
*/
@Nonnull
@Contract("_ -> this")
ItemBuilder setData(@Nonnegative int data) throws IllegalArgumentException;

/**
* Sets the item's custom model data.
* @param customModelData custom model data of the item as integer
Expand Down

0 comments on commit 07c64d7

Please sign in to comment.