Get Colors from ShulkerBox; Implement CustomName for Tiles.
By: Senmori <thesenmori@gmail.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package org.bukkit.block;
|
||||
|
||||
import java.util.Collection;
|
||||
import org.bukkit.Nameable;
|
||||
import org.bukkit.entity.LivingEntity;
|
||||
import org.bukkit.inventory.InventoryHolder;
|
||||
import org.bukkit.potion.PotionEffect;
|
||||
@@ -9,7 +10,7 @@ import org.bukkit.potion.PotionEffectType;
|
||||
/**
|
||||
* Represents a beacon.
|
||||
*/
|
||||
public interface Beacon extends BlockState, InventoryHolder, Lockable {
|
||||
public interface Beacon extends BlockState, InventoryHolder, Lockable, Nameable {
|
||||
|
||||
/**
|
||||
* Returns the list of players within the beacon's range of effect.
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
package org.bukkit.block;
|
||||
|
||||
import org.bukkit.Nameable;
|
||||
import org.bukkit.inventory.BrewerInventory;
|
||||
import org.bukkit.inventory.InventoryHolder;
|
||||
|
||||
/**
|
||||
* Represents a brewing stand.
|
||||
*/
|
||||
public interface BrewingStand extends BlockState, InventoryHolder, Lockable {
|
||||
public interface BrewingStand extends BlockState, InventoryHolder, Lockable, Nameable {
|
||||
|
||||
/**
|
||||
* How much time is left in the brewing cycle
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
package org.bukkit.block;
|
||||
|
||||
import org.bukkit.Nameable;
|
||||
import org.bukkit.inventory.Inventory;
|
||||
import org.bukkit.inventory.InventoryHolder;
|
||||
|
||||
/**
|
||||
* Represents a chest.
|
||||
*/
|
||||
public interface Chest extends BlockState, InventoryHolder, Lockable {
|
||||
public interface Chest extends BlockState, InventoryHolder, Lockable, Nameable {
|
||||
|
||||
/**
|
||||
* Returns the chest's inventory. If this is a double chest, it returns
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
package org.bukkit.block;
|
||||
|
||||
import org.bukkit.Nameable;
|
||||
import org.bukkit.inventory.InventoryHolder;
|
||||
import org.bukkit.projectiles.BlockProjectileSource;
|
||||
|
||||
/**
|
||||
* Represents a dispenser.
|
||||
*/
|
||||
public interface Dispenser extends BlockState, InventoryHolder, Lockable {
|
||||
public interface Dispenser extends BlockState, InventoryHolder, Lockable, Nameable {
|
||||
|
||||
/**
|
||||
* Gets the BlockProjectileSource object for this dispenser.
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
package org.bukkit.block;
|
||||
|
||||
import org.bukkit.Nameable;
|
||||
import org.bukkit.inventory.InventoryHolder;
|
||||
|
||||
/**
|
||||
* Represents a dropper.
|
||||
*/
|
||||
public interface Dropper extends BlockState, InventoryHolder, Lockable {
|
||||
public interface Dropper extends BlockState, InventoryHolder, Lockable, Nameable {
|
||||
|
||||
/**
|
||||
* Tries to drop a randomly selected item from the Dropper's inventory,
|
||||
* following the normal behavior of a Dropper.
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
package org.bukkit.block;
|
||||
|
||||
import org.bukkit.Nameable;
|
||||
import org.bukkit.inventory.FurnaceInventory;
|
||||
import org.bukkit.inventory.InventoryHolder;
|
||||
|
||||
/**
|
||||
* Represents a furnace.
|
||||
*/
|
||||
public interface Furnace extends BlockState, InventoryHolder, Lockable {
|
||||
public interface Furnace extends BlockState, InventoryHolder, Lockable, Nameable {
|
||||
|
||||
/**
|
||||
* Get burn time.
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
package org.bukkit.block;
|
||||
|
||||
import org.bukkit.Nameable;
|
||||
import org.bukkit.inventory.InventoryHolder;
|
||||
|
||||
/**
|
||||
* Represents a hopper.
|
||||
*/
|
||||
public interface Hopper extends BlockState, InventoryHolder, Lockable {
|
||||
|
||||
}
|
||||
public interface Hopper extends BlockState, InventoryHolder, Lockable, Nameable { }
|
||||
|
||||
@@ -1,8 +1,18 @@
|
||||
package org.bukkit.block;
|
||||
|
||||
import org.bukkit.DyeColor;
|
||||
import org.bukkit.Nameable;
|
||||
import org.bukkit.inventory.InventoryHolder;
|
||||
|
||||
/**
|
||||
* Represents a ShulkerBox.
|
||||
*/
|
||||
public interface ShulkerBox extends BlockState, InventoryHolder, Lockable { }
|
||||
public interface ShulkerBox extends BlockState, InventoryHolder, Lockable, Nameable {
|
||||
|
||||
/**
|
||||
* Get the {@link DyeColor} corresponding to this ShulkerBox
|
||||
*
|
||||
* @return the {@link DyeColor} of this ShulkerBox
|
||||
*/
|
||||
public DyeColor getColor();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user