9f064c2cc7
By: 2008Choco <hawkeboyz2@hotmail.com>
65 lines
1.6 KiB
Java
65 lines
1.6 KiB
Java
package org.bukkit.block;
|
|
|
|
import org.bukkit.MinecraftExperimental;
|
|
import org.bukkit.MinecraftExperimental.Requires;
|
|
import org.bukkit.loot.Lootable;
|
|
import org.jetbrains.annotations.ApiStatus;
|
|
|
|
/**
|
|
* Represents a captured state of a crafter.
|
|
*/
|
|
@ApiStatus.Experimental
|
|
@MinecraftExperimental(Requires.UPDATE_1_21)
|
|
public interface Crafter extends Container, Lootable {
|
|
|
|
/**
|
|
* Gets the number of ticks which this block will remain in the crafting
|
|
* state for.
|
|
*
|
|
* @return number of ticks remaining
|
|
* @see org.bukkit.block.data.type.Crafter#isCrafting()
|
|
*/
|
|
int getCraftingTicks();
|
|
|
|
/**
|
|
* Sets the number of ticks which this block will remain in the crafting
|
|
* state for.
|
|
*
|
|
* @param ticks number of ticks remaining
|
|
* @see org.bukkit.block.data.type.Crafter#isCrafting()
|
|
*/
|
|
void setCraftingTicks(int ticks);
|
|
|
|
/**
|
|
* Gets whether the slot at the specified index is disabled and will not
|
|
* have items placed in it.
|
|
*
|
|
* @param slot slot index
|
|
* @return disabled status
|
|
*/
|
|
boolean isSlotDisabled(int slot);
|
|
|
|
/**
|
|
* Sets whether the slot at the specified index is disabled and will not
|
|
* have items placed in it.
|
|
*
|
|
* @param slot slot index
|
|
* @param disabled disabled status
|
|
*/
|
|
void setSlotDisabled(int slot, boolean disabled);
|
|
|
|
/**
|
|
* Gets whether this Crafter is powered.
|
|
*
|
|
* @return powered status
|
|
*/
|
|
boolean isTriggered();
|
|
|
|
/**
|
|
* Sets whether this Crafter is powered.
|
|
*
|
|
* @param triggered powered status
|
|
*/
|
|
void setTriggered(boolean triggered);
|
|
}
|