mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-26 19:07:40 +01:00
Expanded Hopper API
This commit is contained in:
parent
e18f6c6b55
commit
d19f69b3eb
@ -6,4 +6,20 @@ import org.bukkit.loot.Lootable;
|
||||
/**
|
||||
* Represents a captured state of a hopper.
|
||||
*/
|
||||
public interface Hopper extends Container, LootableBlockInventory { } // Paper
|
||||
public interface Hopper extends Container, LootableBlockInventory { // Paper
|
||||
// Paper start - Expanded Hopper API
|
||||
/**
|
||||
* Sets the cooldown before the hopper transfers or sucks in another item
|
||||
* @param cooldown the cooldown in ticks
|
||||
* @throws IllegalArgumentException if the passed cooldown value is negative.
|
||||
*/
|
||||
void setTransferCooldown(@org.jetbrains.annotations.Range(from = 0, to = Integer.MAX_VALUE) int cooldown);
|
||||
|
||||
/**
|
||||
* Returns the cooldown before the hopper transfers or sucks in another item
|
||||
* @return the cooldown in ticks
|
||||
*/
|
||||
int getTransferCooldown();
|
||||
// Paper end - Expanded Hopper API
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user