@@ -186,7 +186,7 @@ public interface Block {
|
||||
/**
|
||||
* Captures the current state of this block. You may then cast that state
|
||||
* into any accepted type, such as Furnace or Sign.
|
||||
*
|
||||
* <p />
|
||||
* The returned object will never be updated, and you are not guaranteed that
|
||||
* (for example) a sign is still a sign after you capture its state.
|
||||
*
|
||||
@@ -248,7 +248,7 @@ public interface Block {
|
||||
|
||||
/**
|
||||
* Checks if this block is empty.
|
||||
*
|
||||
* <p />
|
||||
* A block is considered empty when {@link #getType()} returns {@link Material#AIR}.
|
||||
*
|
||||
* @return true if this block is empty
|
||||
@@ -257,7 +257,7 @@ public interface Block {
|
||||
|
||||
/**
|
||||
* Checks if this block is liquid.
|
||||
*
|
||||
* <p />
|
||||
* A block is considered liquid when {@link #getType()} returns {@link Material#WATER}, {@link Material#STATIONARY_WATER}, {@link Material#LAVA} or {@link Material#STATIONARY_LAVA}.
|
||||
*
|
||||
* @return true if this block is liquid
|
||||
|
||||
@@ -7,7 +7,7 @@ import org.bukkit.material.MaterialData;
|
||||
|
||||
/**
|
||||
* Represents a captured state of a block, which will not change automatically.
|
||||
*
|
||||
* <p />
|
||||
* Unlike Block, which only one object can exist per coordinate, BlockState can
|
||||
* exist multiple times for any given Block. Note that another plugin may change
|
||||
* the state of the block and you will not know, or they may change the block to
|
||||
|
||||
@@ -14,7 +14,7 @@ public interface Sign extends BlockState {
|
||||
|
||||
/**
|
||||
* Gets the line of text at the specified index.
|
||||
*
|
||||
* <p />
|
||||
* For example, getLine(0) will return the first line of text.
|
||||
*
|
||||
* @param index Line number to get the text from, starting at 0
|
||||
@@ -25,7 +25,7 @@ public interface Sign extends BlockState {
|
||||
|
||||
/**
|
||||
* Sets the line of text at the specified index.
|
||||
*
|
||||
* <p />
|
||||
* For example, setLine(0, "Line One") will set the first line of text to
|
||||
* "Line One".
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user