| 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 DBlockData |
DimensionalBlocks.getDBlockDataAt(org.bukkit.Location location)
Get the
DBlockData of a DBlock at the specified location. |
static DBlockData |
DimensionalBlocks.getDBlockDataFrom(org.bukkit.block.Block block)
Get the
DBlockData of a DBlock from a given block. |
static DBlockData |
DimensionalBlocks.getDBlockDataOf(DTileEntity entity)
Get the
DBlockData associated with the given tile entity. |
static DBlockData |
DimensionalBlocks.getDefaultBlockDataFor(DBlock block)
Get a
DBlockData representing the default state of the given DBlock. |
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. |
| Modifier and Type | Method and Description |
|---|---|
static void |
DimensionalBlocks.setDBlockDataAt(DBlockData data,
org.bukkit.Location location)
Set a
DBlockData to a current location and update with physics. |
static void |
DimensionalBlocks.setDBlockDataAt(DBlockData data,
org.bukkit.Location location,
boolean doPhysics)
Set the block at a current location to the provided
DBlockData. |
| Modifier and Type | Method and Description |
|---|---|
DBlockData |
DTileEntity.getBlockData()
Get the DBlockData associated with this tile entity.
|
DBlockData |
NMSHandler.getDBlockDataAt(org.bukkit.Location location) |
DBlockData |
NMSHandler.getDBlockDataFrom(org.bukkit.block.Block block) |
DBlockData |
NMSHandler.getDBlockDataOf(DTileEntity entity) |
DBlockData |
DBlock.getDefaultBlockData() |
DBlockData |
NMSHandler.getDefaultBlockDataFor(DBlock block) |
<T extends java.lang.Comparable<T>> |
DBlockData.set(DState<T> state,
T value)
Set the value of one of the states of this data.
|
DBlockData |
NMSHandler.setDBlockAt(DBlock block,
org.bukkit.Location location) |
DBlockData |
NMSHandler.setDBlockAt(DBlock block,
org.bukkit.Location location,
boolean doPhysics) |
| Modifier and Type | Method and Description |
|---|---|
void |
DBlock.attackBlock(DBlockData data,
org.bukkit.Location location,
org.bukkit.entity.HumanEntity entity)
Called when a player starts mining a block.
|
boolean |
DBlock.canEntitySpawnOn(DBlockData data,
org.bukkit.Location location,
org.bukkit.NamespacedKey type)
Set whether the entity type can spawn on the given block.
|
boolean |
DBlock.causesSuffocation(DBlockData data,
org.bukkit.Location location)
Does this block cause suffocation damage if the player's head is inside of it.
|
boolean |
DBlock.destroyedByFluid(DBlockData data,
org.bukkit.NamespacedKey fluid)
Whether or not the block can be destroyed by the fluid.
|
void |
DBlock.doPhysics(DBlockData data,
org.bukkit.Location location,
org.bukkit.Location otherBlock)
Called when physics are applied to this object.
|
void |
DBlock.dropNaturally(DBlockData data,
org.bukkit.Location location,
org.bukkit.inventory.ItemStack item)
Called when the block gets broken.
|
org.bukkit.block.data.BlockData |
DBlock.getClientBlock(DBlockData data)
Set the client view of this block to the BlockData provided.
|
int |
DBlock.getComparatorLevel(DBlockData data,
org.bukkit.Location location)
Get the level of redstone that will be given to a comparator.
|
java.awt.Color |
DBlock.getMapColor(DBlockData data,
org.bukkit.Location location)
Get the color that should show up on the map.
|
PistonReaction |
DBlock.getPistonReaction(DBlockData data) |
int |
DBlock.getPowerSourceLevel(DBlockData data,
org.bukkit.Location location,
org.bukkit.block.BlockFace face)
Get the level of redstone that is emitted in the direction provided.
|
InteractionResult |
DBlock.interact(DBlockData data,
org.bukkit.Location location,
org.bukkit.entity.HumanEntity entity,
boolean mainhand,
CollisionResultBlock ray)
Called when a HumanEntity right clicks this block, with either hand.
|
boolean |
DBlock.isComplexRedstone(DBlockData data)
Whether or not this block will give comparator output.
|
boolean |
DBlock.isOccluding(DBlockData data,
org.bukkit.Location location)
Set whether the block is occluding, such as preventing chests from being accessible.
|
boolean |
DBlock.isPowerSource(DBlockData data)
Whether or not this block will give off redstone power.
|
void |
DBlock.onContact(DBlockData data,
org.bukkit.Location location,
org.bukkit.entity.Entity entity)
Called when an entity touches, or is inside the block.
|
void |
DBlock.onDataUpdate(DBlockData data,
org.bukkit.Location location)
Called after this block gets placed in the world, either through code or command.
|
void |
DBlock.onProjectileHit(DBlockData data,
org.bukkit.entity.Entity projectile,
CollisionResultBlock ray)
Called when a projectile, hits the block.
|
void |
DBlock.postBreak(DBlockData data,
org.bukkit.Location location)
Called after the block gets broken by the player, or removed somehow.
|
void |
NMSHandler.setDBlockDataAt(DBlockData data,
org.bukkit.Location location) |
void |
NMSHandler.setDBlockDataAt(DBlockData data,
org.bukkit.Location location,
boolean doPhysics) |
void |
DBlock.tick(DBlockData data,
org.bukkit.Location location,
java.util.Random random)
Tick event.
|
static void |
DBlock.update(DBlockData block,
org.bukkit.Location location)
Set the provided
DBlockData to the location, and apply physics. |
static void |
DBlock.update(DBlockData block,
org.bukkit.Location location,
boolean doPhysics)
Set the provided
DBlockData to the location, and apply physics if specified. |
void |
DBlock.updateState(DBlockData data,
org.bukkit.Location blockloc,
org.bukkit.Location neighbor,
org.bukkit.block.BlockFace direction)
Called when a neighboring block has been changed.
|