mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-05 16:49:39 +00:00
SPIGOT-5310: Add Chunk.contains
This commit is contained in:
parent
b2adbb451f
commit
b9bf4dae9f
1 changed files with 9 additions and 0 deletions
|
@ -3,6 +3,7 @@ package org.bukkit;
|
|||
import java.util.Collection;
|
||||
import org.bukkit.block.Block;
|
||||
import org.bukkit.block.BlockState;
|
||||
import org.bukkit.block.data.BlockData;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.plugin.Plugin;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
@ -214,4 +215,12 @@ public interface Chunk {
|
|||
* @param ticks new inhabited time
|
||||
*/
|
||||
void setInhabitedTime(long ticks);
|
||||
|
||||
/**
|
||||
* Tests if this chunk contains the specified block.
|
||||
*
|
||||
* @param block block to test
|
||||
* @return if the block is contained within
|
||||
*/
|
||||
boolean contains(@NotNull BlockData block);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue