| Modifier and Type | Method and Description |
|---|---|
default Block |
Block.down() |
default Block |
Block.down(int step) |
default Block |
Block.east() |
default Block |
Block.east(int step) |
Block |
Block.getRelative(int x,
int y,
int z) |
default Block |
Block.getRelative(com.nukkitx.math.vector.Vector3i pos) |
default Block |
Block.getSide(Direction face) |
Block |
Block.getSide(Direction face,
int step) |
default Block |
Block.north() |
default Block |
Block.north(int step) |
Block |
Block.refresh() |
default Block |
Block.south() |
default Block |
Block.south(int step) |
default Block |
Block.up() |
default Block |
Block.up(int step) |
default Block |
Block.west() |
default Block |
Block.west(int step) |
| Modifier and Type | Method and Description |
|---|---|
com.nukkitx.math.vector.Vector3f |
BlockBehavior.addVelocityToEntity(Block block,
com.nukkitx.math.vector.Vector3f vector,
Entity entity) |
boolean |
BlockBehavior.canBeActivated(Block block) |
boolean |
BlockBehavior.canBeReplaced(Block block) |
boolean |
BlockBehavior.collidesWithBB(Block block,
AxisAlignedBB bb) |
boolean |
BlockBehavior.collidesWithBB(Block block,
AxisAlignedBB bb,
boolean collisionBB) |
AxisAlignedBB |
BlockBehavior.getBoundingBox(Block block) |
AxisAlignedBB |
BlockBehavior.getCollisionBoxes(Block block) |
BlockColor |
BlockBehavior.getColor(Block block) |
int |
BlockBehavior.getComparatorInputOverride(Block block) |
ItemStack[] |
BlockBehavior.getDrops(Block block,
ItemStack hand) |
int |
BlockBehavior.getLightLevel(Block block) |
int |
BlockBehavior.getStrongPower(Block block,
Direction side) |
int |
BlockBehavior.getWeakPower(Block block,
Direction face) |
boolean |
BlockBehavior.isNormalBlock(Block block) |
boolean |
BlockBehavior.isPowerSource(Block block) |
boolean |
BlockBehavior.onActivate(Block block,
ItemStack item) |
boolean |
BlockBehavior.onActivate(Block block,
ItemStack item,
Player player) |
boolean |
BlockBehavior.onBreak(Block block,
ItemStack item) |
boolean |
BlockBehavior.onBreak(Block block,
ItemStack item,
Player player) |
void |
BlockBehavior.onEntityCollide(Block block,
Entity entity) |
int |
BlockBehavior.onUpdate(Block block,
int type) |
boolean |
BlockBehavior.place(ItemStack item,
Block block,
Block target,
Direction face,
com.nukkitx.math.vector.Vector3f clickPos,
Player player) |
boolean |
BlockBehavior.placeBlock(Block block,
BlockState newState) |
abstract boolean |
BlockBehavior.placeBlock(Block block,
BlockState newState,
boolean update) |
boolean |
BlockBehavior.placeBlock(Block block,
ItemStack item) |
boolean |
BlockBehavior.placeBlock(Block block,
ItemStack item,
boolean update) |
protected boolean |
BlockBehavior.removeBlock(Block block) |
boolean |
BlockBehavior.removeBlock(Block block,
boolean update) |
ItemStack |
BlockBehavior.toItem(Block block) |
| Modifier and Type | Method and Description |
|---|---|
Block |
BlockEntity.getBlock() |
| Modifier and Type | Field and Description |
|---|---|
protected Block |
BlockEvent.block |
protected Block |
BlockPlaceEvent.blockAgainst |
| Modifier and Type | Method and Description |
|---|---|
Block |
BlockEvent.getBlock() |
Block |
BlockPlaceEvent.getBlockAgainst() |
Block |
BlockFromToEvent.getFrom() |
Block |
BlockSpreadEvent.getSource() |
Block |
BlockIgniteEvent.getSource() |
Block |
LiquidFlowEvent.getSource() |
| Constructor and Description |
|---|
BlockBreakEvent(Player player,
Block block,
Direction face,
ItemStack item,
ItemStack[] drops,
int dropExp,
boolean instaBreak,
boolean fastBreak) |
BlockBreakEvent(Player player,
Block block,
ItemStack item,
ItemStack[] drops) |
BlockBreakEvent(Player player,
Block block,
ItemStack item,
ItemStack[] drops,
boolean instaBreak) |
BlockBreakEvent(Player player,
Block block,
ItemStack item,
ItemStack[] drops,
boolean instaBreak,
boolean fastBreak) |
BlockBurnEvent(Block block) |
BlockEvent(Block block) |
BlockFadeEvent(Block blockState,
BlockState newState) |
BlockFormEvent(Block block,
BlockState newState) |
BlockFromToEvent(Block blockState,
BlockState to) |
BlockGrowEvent(Block block,
BlockState newState) |
BlockIgniteEvent(Block block,
Block source,
Entity entity,
BlockIgniteEvent.BlockIgniteCause cause) |
BlockPistonChangeEvent(Block block,
int oldPower,
int newPower) |
BlockPlaceEvent(Player player,
BlockState blockPlace,
Block blockReplace,
Block blockAgainst,
ItemStack item) |
BlockRedstoneEvent(Block block,
int oldPower,
int newPower) |
BlockSpreadEvent(Block block,
Block source,
BlockState newState) |
BlockUpdateEvent(Block block) |
DoorToggleEvent(Block block,
Player player) |
ItemFrameDropItemEvent(Player player,
Block block,
ItemFrame itemFrame,
ItemStack item) |
LeavesDecayEvent(Block blockState) |
LiquidFlowEvent(BlockState to,
Block source,
int newFlowDecay) |
SignChangeEvent(Block block,
Player player,
String[] lines) |
| Modifier and Type | Field and Description |
|---|---|
protected Block |
EntityCombustByBlockEvent.combustor |
| Modifier and Type | Field and Description |
|---|---|
protected List<Block> |
EntityExplodeEvent.blockStates |
| Modifier and Type | Method and Description |
|---|---|
Block |
EntityBlockChangeEvent.getBlock() |
Block |
EntityInteractEvent.getBlock() |
Block |
EntityCombustByBlockEvent.getCombustor() |
Block |
EntityDamageByBlockEvent.getDamager() |
| Modifier and Type | Method and Description |
|---|---|
List<Block> |
EntityExplodeEvent.getBlockList() |
| Modifier and Type | Method and Description |
|---|---|
void |
EntityExplodeEvent.setBlockList(List<Block> blockStates) |
| Constructor and Description |
|---|
EntityBlockChangeEvent(Entity entity,
Block block,
BlockState to) |
EntityCombustByBlockEvent(Block combustor,
Entity combustee,
int duration) |
EntityDamageByBlockEvent(Block damager,
Entity entity,
EntityDamageEvent.DamageCause cause,
float damage) |
EntityInteractEvent(Entity entity,
Block block) |
| Constructor and Description |
|---|
EntityExplodeEvent(Entity entity,
com.nukkitx.math.vector.Vector3f position,
List<Block> blockStates,
double yield) |
| Modifier and Type | Field and Description |
|---|---|
protected Block |
PlayerInteractEvent.blockTouched |
| Modifier and Type | Method and Description |
|---|---|
Block |
PlayerBedLeaveEvent.getBed() |
Block |
PlayerBedEnterEvent.getBed() |
Block |
PlayerInteractEvent.getBlock() |
Block |
PlayerBlockPickEvent.getBlockClicked() |
| Constructor and Description |
|---|
PlayerBedEnterEvent(Player player,
Block bed) |
PlayerBedLeaveEvent(Player player,
Block bed) |
PlayerBlockPickEvent(Player player,
Block blockClicked,
ItemStack item) |
PlayerBucketEmptyEvent(Player who,
Block blockStateClicked,
Direction direction,
ItemStack bucket,
ItemStack itemInHand) |
PlayerInteractEvent(Player player,
ItemStack item,
Block block,
Direction face,
PlayerInteractEvent.Action action) |
| Constructor and Description |
|---|
RedstoneEvent(Block block) |
RedstoneUpdateEvent(Block source) |
| Modifier and Type | Method and Description |
|---|---|
ItemStack |
ItemBehavior.onActivate(ItemStack itemStack,
Player player,
Block block,
Block target,
Direction face,
com.nukkitx.math.vector.Vector3f clickPos,
Level level) |
| Modifier and Type | Method and Description |
|---|---|
Block |
ChunkManager.getBlock(int x,
int y,
int z) |
default Block |
ChunkManager.getBlock(com.nukkitx.math.vector.Vector3f pos) |
default Block |
ChunkManager.getBlock(com.nukkitx.math.vector.Vector3i pos) |
Block[] |
Level.getCollisionBlocks(AxisAlignedBB bb) |
Block |
ChunkManager.getLoadedBlock(int x,
int y,
int z) |
default Block |
ChunkManager.getLoadedBlock(com.nukkitx.math.vector.Vector3f pos) |
default Block |
ChunkManager.getLoadedBlock(com.nukkitx.math.vector.Vector3i pos) |
Copyright © 2021. All rights reserved.