mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2025-01-23 21:51:31 +01:00
Add ItemFilter API
This commit is contained in:
parent
aa29b25a92
commit
5aa34c7d4f
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
25
src/at/pcgamingfreaks/Minepacks/Bukkit/API/ItemFilter.java
Normal file
25
src/at/pcgamingfreaks/Minepacks/Bukkit/API/ItemFilter.java
Normal 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);
|
||||
}
|
@ -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();
|
||||
}
|
Loading…
Reference in New Issue
Block a user