geforkt von Mirrors/Paper
SPIGOT-6756: Clarify drop items in BlockBreakEvent
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
5814757cc7
Commit
ef5b7235a1
@ -49,18 +49,25 @@ public class BlockBreakEvent extends BlockExpEvent implements Cancellable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets whether or not the block will drop items as it normally would.
|
* Sets whether or not the block will attempt to drop items as it normally
|
||||||
|
* would.
|
||||||
*
|
*
|
||||||
* @param dropItems Whether or not the block will drop items
|
* If and only if this is false then {@link BlockDropItemEvent} will not be
|
||||||
|
* called after this event.
|
||||||
|
*
|
||||||
|
* @param dropItems Whether or not the block will attempt to drop items
|
||||||
*/
|
*/
|
||||||
public void setDropItems(boolean dropItems) {
|
public void setDropItems(boolean dropItems) {
|
||||||
this.dropItems = dropItems;
|
this.dropItems = dropItems;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets whether or not the block will drop items.
|
* Gets whether or not the block will attempt to drop items.
|
||||||
*
|
*
|
||||||
* @return Whether or not the block will drop items
|
* If and only if this is false then {@link BlockDropItemEvent} will not be
|
||||||
|
* called after this event.
|
||||||
|
*
|
||||||
|
* @return Whether or not the block will attempt to drop items
|
||||||
*/
|
*/
|
||||||
public boolean isDropItems() {
|
public boolean isDropItems() {
|
||||||
return this.dropItems;
|
return this.dropItems;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren