mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2024-11-26 20:35:14 +01:00
Allow null item when creating a line in the API
This commit is contained in:
parent
aade3ddbfe
commit
ae7591f952
@ -35,7 +35,7 @@ public interface HologramLines {
|
||||
* @return the created line
|
||||
* @since 1
|
||||
*/
|
||||
@NotNull ItemHologramLine appendItem(@NotNull ItemStack itemStack);
|
||||
@NotNull ItemHologramLine appendItem(@Nullable ItemStack itemStack);
|
||||
|
||||
/**
|
||||
* Inserts a new text line before the given index.
|
||||
|
@ -34,8 +34,7 @@ class APIHologramLines extends BaseHologramLines<APIHologramLine> implements Hol
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull ItemHologramLine appendItem(@NotNull ItemStack itemStack) {
|
||||
Preconditions.notNull(itemStack, "itemStack");
|
||||
public @NotNull ItemHologramLine appendItem(@Nullable ItemStack itemStack) {
|
||||
checkNotDeleted();
|
||||
|
||||
APIItemHologramLine line = new APIItemHologramLine(hologram, itemStack);
|
||||
|
Loading…
Reference in New Issue
Block a user