Add ItemFilter API

This commit is contained in:
GeorgH93 2019-10-16 19:43:52 +02:00
parent aa29b25a92
commit 5aa34c7d4f
No known key found for this signature in database
GPG Key ID: D1630D37F9E4B3C8
3 changed files with 28 additions and 1 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>at.pcgamingfreaks</groupId>
<artifactId>Minepacks-API</artifactId>
<version>2.0</version>
<version>2.0.11</version>
<scm>
<connection>scm:git:git@github.com:GeorgH93/Minepacks.git</connection>

View File

@ -0,0 +1,25 @@
/*
* Copyright (C) 2019 GeorgH93
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package at.pcgamingfreaks.Minepacks.Bukkit.API;
import org.bukkit.inventory.ItemStack;
public interface ItemFilter
{
boolean isItemBlocked(ItemStack item);
}

View File

@ -127,4 +127,6 @@ public interface MinepacksPlugin
* @return True if the player can use a backpack. False if not.
*/
boolean isPlayerGameModeAllowed(Player player);
@Nullable ItemFilter getItemFilter();
}