| Package | Description |
|---|---|
| com.aaaaahhhhhhh.bananapuncher714.dimensional.block.library |
Contains the core libraries of the DimensionalBlockLibrary.
|
| com.aaaaahhhhhhh.bananapuncher714.dimensional.block.library.api |
Contains the DimensionalBlockLibrary API.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
DimensionalBlocks.applyPhysics(DBlock block,
org.bukkit.Location location)
Updates the physics for the given block at the given location, if it exists.
|
static DBlockData |
DimensionalBlocks.getDefaultBlockDataFor(DBlock block)
Get a
DBlockData representing the default state of the given DBlock. |
static void |
DimensionalBlocks.register(DBlock block)
Register a custom
DBlock. |
static void |
DimensionalBlocks.register(DBlock block,
java.util.function.Supplier<DTileEntity> tileEntity,
java.lang.String id)
Register a custom
DBlock and associate it with a given DTileEntity. |
static DBlockData |
DimensionalBlocks.setDBlockAt(DBlock block,
org.bukkit.Location location)
Set a
DBlock with the default DBlockData at the given location and update with physics. |
static DBlockData |
DimensionalBlocks.setDBlockAt(DBlock block,
org.bukkit.Location location,
boolean doPhysics)
Set a
DBlock with the default DBlockData at the given location. |
static void |
DimensionalBlocks.tickLocation(org.bukkit.Location location,
DBlock block,
int delay)
Call the
tick(DBlockData, Location, java.util.Random) method after a certain amount of ticks. |
| Modifier and Type | Method and Description |
|---|---|
DBlock |
DBlockData.getBlock()
Get the
DBlock representing this data. |
| Modifier and Type | Method and Description |
|---|---|
void |
NMSHandler.applyPhysics(DBlock block,
org.bukkit.Location location) |
DBlockData |
NMSHandler.getDefaultBlockDataFor(DBlock block) |
boolean |
NMSHandler.register(DBlock block) |
boolean |
NMSHandler.register(DBlock block,
java.util.function.Supplier<DTileEntity> tileEntity,
java.lang.String id) |
DBlockData |
NMSHandler.setDBlockAt(DBlock block,
org.bukkit.Location location) |
DBlockData |
NMSHandler.setDBlockAt(DBlock block,
org.bukkit.Location location,
boolean doPhysics) |
void |
NMSHandler.tick(org.bukkit.Location location,
DBlock block,
int delay) |