Package dev.itsharshxd.zentrix.api.block
Interface BlockMechanicsService
public interface BlockMechanicsService
Original-block protection, placed-block/fluid tracking, and automatic decay in Cornucopia and
deathmatch regions. All methods must run on the Bukkit main thread.
- Since:
- 1.6.0
-
Method Summary
Modifier and TypeMethodDescriptionvoiddropPlayerPlaced(@NotNull BlockMechanicsScope scope, @NotNull org.bukkit.block.Block block, @NotNull org.bukkit.entity.Player player) voidforgetPlayerPlaced(@NotNull BlockMechanicsScope scope, @NotNull org.bukkit.block.Block block) @NotNull TrackedBlockStategetState(@NotNull BlockMechanicsScope scope, @NotNull org.bukkit.block.Block block) @NotNull Optional<TrackedBlockState> getState(@NotNull org.bukkit.block.Block block) booleanisProtected(@NotNull org.bukkit.Location location) @NotNull Optional<BlockMechanicsScope> resolveScope(@NotNull org.bukkit.Location location) booleanshouldPreventBreak(@NotNull BlockMechanicsScope scope, @NotNull org.bukkit.block.Block block) voidtrackFluidSpread(@NotNull BlockMechanicsScope scope, @NotNull org.bukkit.block.Block source, @NotNull org.bukkit.block.Block destination) voidtrackPlayerPlaced(@NotNull BlockMechanicsScope scope, @NotNull List<org.bukkit.block.Block> blocks) voidtrackPlayerPlaced(@NotNull BlockMechanicsScope scope, @NotNull org.bukkit.block.Block block)
-
Method Details
-
resolveScope
@NotNull @NotNull Optional<BlockMechanicsScope> resolveScope(@NotNull @NotNull org.bukkit.Location location) -
getState
@NotNull @NotNull Optional<TrackedBlockState> getState(@NotNull @NotNull org.bukkit.block.Block block) -
getState
@NotNull @NotNull TrackedBlockState getState(@NotNull @NotNull BlockMechanicsScope scope, @NotNull @NotNull org.bukkit.block.Block block) -
trackPlayerPlaced
void trackPlayerPlaced(@NotNull @NotNull BlockMechanicsScope scope, @NotNull @NotNull org.bukkit.block.Block block) -
trackPlayerPlaced
void trackPlayerPlaced(@NotNull @NotNull BlockMechanicsScope scope, @NotNull @NotNull List<org.bukkit.block.Block> blocks) -
trackFluidSpread
void trackFluidSpread(@NotNull @NotNull BlockMechanicsScope scope, @NotNull @NotNull org.bukkit.block.Block source, @NotNull @NotNull org.bukkit.block.Block destination) -
forgetPlayerPlaced
void forgetPlayerPlaced(@NotNull @NotNull BlockMechanicsScope scope, @NotNull @NotNull org.bukkit.block.Block block) -
shouldPreventBreak
boolean shouldPreventBreak(@NotNull @NotNull BlockMechanicsScope scope, @NotNull @NotNull org.bukkit.block.Block block) -
isProtected
boolean isProtected(@NotNull @NotNull org.bukkit.Location location) -
dropPlayerPlaced
void dropPlayerPlaced(@NotNull @NotNull BlockMechanicsScope scope, @NotNull @NotNull org.bukkit.block.Block block, @NotNull @NotNull org.bukkit.entity.Player player)
-