Uses of Interface
org.bukkit.block.Block
| Package | Description |
|---|---|
| org.bukkit |
More generalized classes in the API.
|
| org.bukkit.block |
Classes used to manipulate the voxels in a
world,
including special states. |
| org.bukkit.command |
Classes relating to handling specialized non-chat player input.
|
| org.bukkit.entity |
Interfaces for non-voxel objects that can exist in a
world, including all players, monsters, projectiles, etc. |
| org.bukkit.event.block | |
| org.bukkit.event.enchantment |
Events triggered from an enchantment table. |
| org.bukkit.event.entity | |
| org.bukkit.event.hanging |
Events relating to entities that hang. |
| org.bukkit.event.inventory | |
| org.bukkit.event.painting | |
| org.bukkit.event.player | |
| org.bukkit.event.vehicle |
Events relating to vehicular entities. |
| org.bukkit.event.world | |
| org.bukkit.projectiles |
Classes to represent the source of a projectile
|
| org.bukkit.util |
Multi and single purpose classes to facilitate various programmatic
concepts.
|
-
Uses of Block in org.bukkit
Methods in org.bukkit that return Block Modifier and Type Method Description BlockChunk. getBlock(int x, int y, int z)Gets a block from this chunkBlockLocation. getBlock()Gets the block at the represented locationBlockWorld. getBlockAt(int x, int y, int z)Gets theBlockat the given coordinatesBlockWorld. getBlockAt(Location location)BlockWorld. getHighestBlockAt(int x, int z)Gets the highest non-empty block at the given coordinatesBlockWorld. getHighestBlockAt(Location location)Gets the highest non-empty block at the given coordinatesMethods in org.bukkit with parameters of type Block Modifier and Type Method Description ChunkWorld. getChunkAt(Block block) -
Uses of Block in org.bukkit.block
Methods in org.bukkit.block that return Block Modifier and Type Method Description BlockBlockState. getBlock()Gets the block represented by this BlockStateBlockBlock. getRelative(int modX, int modY, int modZ)Gets the block at the given offsetsBlockBlock. getRelative(BlockFace face)Gets the block at the given faceBlockBlock. getRelative(BlockFace face, int distance)Gets the block at the given distance of the given faceMethods in org.bukkit.block with parameters of type Block Modifier and Type Method Description BlockFaceBlock. getFace(Block block)Gets the face relation of this block compared to the given block. -
Uses of Block in org.bukkit.command
Methods in org.bukkit.command that return Block Modifier and Type Method Description BlockBlockCommandSender. getBlock()Returns the block this command sender belongs to -
Uses of Block in org.bukkit.entity
Methods in org.bukkit.entity that return Block Modifier and Type Method Description BlockLivingEntity. getTargetBlock(java.util.HashSet<java.lang.Byte> transparent, int maxDistance)Deprecated.Magic valueBlockLivingEntity. getTargetBlock(java.util.Set<Material> transparent, int maxDistance)Gets the block that the living entity has targeted.Methods in org.bukkit.entity that return types with arguments of type Block Modifier and Type Method Description java.util.List<Block>LivingEntity. getLastTwoTargetBlocks(java.util.HashSet<java.lang.Byte> transparent, int maxDistance)Deprecated.Magic valuejava.util.List<Block>LivingEntity. getLastTwoTargetBlocks(java.util.Set<Material> transparent, int maxDistance)Gets the last two blocks along the living entity's line of sight.java.util.List<Block>LivingEntity. getLineOfSight(java.util.HashSet<java.lang.Byte> transparent, int maxDistance)Deprecated.Magic valuejava.util.List<Block>LivingEntity. getLineOfSight(java.util.Set<Material> transparent, int maxDistance)Gets all blocks along the living entity's line of sight. -
Uses of Block in org.bukkit.event.block
Fields in org.bukkit.event.block declared as Block Modifier and Type Field Description protected BlockBlockEvent. blockprotected BlockBlockPlaceEvent. placedAgainstprotected BlockBlockFromToEvent. toMethods in org.bukkit.event.block that return Block Modifier and Type Method Description BlockBlockEvent. getBlock()Gets the block involved in this event.BlockBlockPlaceEvent. getBlockAgainst()Gets the block that this block was placed againstBlockBlockPlaceEvent. getBlockPlaced()Clarity method for getting the placed block.BlockBlockIgniteEvent. getIgnitingBlock()Gets the block who ignited this blockBlockBlockSpreadEvent. getSource()Gets the source block involved in this event.BlockBlockFromToEvent. getToBlock()Convenience method for getting the faced Block.Methods in org.bukkit.event.block that return types with arguments of type Block Modifier and Type Method Description java.util.List<Block>BlockExplodeEvent. blockList()Returns the list of blocks that would have been removed or were removed from the explosion event.java.util.List<Block>BlockPistonExtendEvent. getBlocks()Get an immutable list of the blocks which will be moved by the extending.java.util.List<Block>BlockPistonRetractEvent. getBlocks()Get an immutable list of the blocks which will be moved by the extending.Constructors in org.bukkit.event.block with parameters of type Block Constructor Description BlockBreakEvent(Block theBlock, Player player)BlockBurnEvent(Block block)BlockCanBuildEvent(Block block, int id, boolean canBuild)Deprecated.Magic valueBlockDamageEvent(Player player, Block block, ItemStack itemInHand, boolean instaBreak)BlockDispenseEvent(Block block, ItemStack dispensed, Vector velocity)BlockEvent(Block theBlock)BlockExpEvent(Block block, int exp)BlockExplodeEvent(Block what, java.util.List<Block> blocks, float yield)BlockFadeEvent(Block block, BlockState newState)BlockFormEvent(Block block, BlockState newState)BlockFromToEvent(Block block, Block toBlock)BlockFromToEvent(Block block, BlockFace face)BlockGrowEvent(Block block, BlockState newState)BlockIgniteEvent(Block theBlock, BlockIgniteEvent.IgniteCause cause, Block ignitingBlock)BlockIgniteEvent(Block theBlock, BlockIgniteEvent.IgniteCause cause, Entity ignitingEntity)BlockIgniteEvent(Block theBlock, BlockIgniteEvent.IgniteCause cause, Entity ignitingEntity, Block ignitingBlock)BlockIgniteEvent(Block theBlock, BlockIgniteEvent.IgniteCause cause, Player thePlayer)Deprecated.BlockMultiPlaceEvent(java.util.List<BlockState> states, Block clicked, ItemStack itemInHand, Player thePlayer, boolean canBuild)BlockPhysicsEvent(Block block, int changed)Deprecated.Magic valueBlockPistonEvent(Block block, BlockFace direction)BlockPistonExtendEvent(Block block, int length, BlockFace direction)Deprecated.BlockPistonExtendEvent(Block block, java.util.List<Block> blocks, BlockFace direction)BlockPistonRetractEvent(Block block, java.util.List<Block> blocks, BlockFace direction)BlockPlaceEvent(Block placedBlock, BlockState replacedBlockState, Block placedAgainst, ItemStack itemInHand, Player thePlayer, boolean canBuild)BlockRedstoneEvent(Block block, int oldCurrent, int newCurrent)BlockSpreadEvent(Block block, Block source, BlockState newState)EntityBlockFormEvent(Entity entity, Block block, BlockState blockstate)LeavesDecayEvent(Block block)NotePlayEvent(Block block, Instrument instrument, Note note)SignChangeEvent(Block theBlock, Player thePlayer, java.lang.String[] theLines)Constructor parameters in org.bukkit.event.block with type arguments of type Block Constructor Description BlockExplodeEvent(Block what, java.util.List<Block> blocks, float yield)BlockPistonExtendEvent(Block block, java.util.List<Block> blocks, BlockFace direction)BlockPistonRetractEvent(Block block, java.util.List<Block> blocks, BlockFace direction) -
Uses of Block in org.bukkit.event.enchantment
Methods in org.bukkit.event.enchantment that return Block Modifier and Type Method Description BlockEnchantItemEvent. getEnchantBlock()Gets the block being used to enchant the itemBlockPrepareItemEnchantEvent. getEnchantBlock()Gets the block being used to enchant the itemConstructors in org.bukkit.event.enchantment with parameters of type Block Constructor Description EnchantItemEvent(Player enchanter, InventoryView view, Block table, ItemStack item, int level, java.util.Map<Enchantment,java.lang.Integer> enchants, int i)PrepareItemEnchantEvent(Player enchanter, InventoryView view, Block table, ItemStack item, int[] levelsOffered, int bonus) -
Uses of Block in org.bukkit.event.entity
Fields in org.bukkit.event.entity declared as Block Modifier and Type Field Description protected BlockEntityInteractEvent. blockMethods in org.bukkit.event.entity that return Block Modifier and Type Method Description BlockEntityChangeBlockEvent. getBlock()Gets the block the entity is changingBlockEntityInteractEvent. getBlock()Returns the involved blockBlockEntityCombustByBlockEvent. getCombuster()The combuster can be lava or a block that is on fire.BlockEntityDamageByBlockEvent. getDamager()Returns the block that damaged the player.Methods in org.bukkit.event.entity that return types with arguments of type Block Modifier and Type Method Description java.util.List<Block>EntityExplodeEvent. blockList()Returns the list of blocks that would have been removed or were removed from the explosion event.Constructors in org.bukkit.event.entity with parameters of type Block Constructor Description EntityBreakDoorEvent(LivingEntity entity, Block targetBlock)EntityChangeBlockEvent(Entity what, Block block, Material to, byte data)Deprecated.Magic valueEntityChangeBlockEvent(LivingEntity what, Block block, Material to)Deprecated.Provided as a backward compatibility before the data byte was provided, and type increased to all entitiesEntityCombustByBlockEvent(Block combuster, Entity combustee, int duration)EntityDamageByBlockEvent(Block damager, Entity damagee, EntityDamageEvent.DamageCause cause, double damage)Deprecated.EntityDamageByBlockEvent(Block damager, Entity damagee, EntityDamageEvent.DamageCause cause, int damage)Deprecated.EntityDamageByBlockEvent(Block damager, Entity damagee, EntityDamageEvent.DamageCause cause, java.util.Map<EntityDamageEvent.DamageModifier,java.lang.Double> modifiers, java.util.Map<EntityDamageEvent.DamageModifier,? extends com.google.common.base.Function<? super java.lang.Double,java.lang.Double>> modifierFunctions)EntityInteractEvent(Entity entity, Block block)Constructor parameters in org.bukkit.event.entity with type arguments of type Block Constructor Description EntityExplodeEvent(Entity what, Location location, java.util.List<Block> blocks, float yield) -
Uses of Block in org.bukkit.event.hanging
Methods in org.bukkit.event.hanging that return Block Modifier and Type Method Description BlockHangingPlaceEvent. getBlock()Returns the block that the hanging entity was placed onConstructors in org.bukkit.event.hanging with parameters of type Block Constructor Description HangingPlaceEvent(Hanging hanging, Player player, Block block, BlockFace blockFace) -
Uses of Block in org.bukkit.event.inventory
Methods in org.bukkit.event.inventory that return Block Modifier and Type Method Description BlockFurnaceBurnEvent. getFurnace()Deprecated.In favour ofBlockEvent.getBlock().BlockFurnaceSmeltEvent. getFurnace()Deprecated.In favour ofBlockEvent.getBlock().Constructors in org.bukkit.event.inventory with parameters of type Block Constructor Description BrewEvent(Block brewer, BrewerInventory contents)FurnaceBurnEvent(Block furnace, ItemStack fuel, int burnTime)FurnaceExtractEvent(Player player, Block block, Material itemType, int itemAmount, int exp)FurnaceSmeltEvent(Block furnace, ItemStack source, ItemStack result) -
Uses of Block in org.bukkit.event.painting
Methods in org.bukkit.event.painting that return Block Modifier and Type Method Description BlockPaintingPlaceEvent. getBlock()Deprecated.Returns the block that the painting was placed onConstructors in org.bukkit.event.painting with parameters of type Block Constructor Description PaintingPlaceEvent(Painting painting, Player player, Block block, BlockFace blockFace)Deprecated. -
Uses of Block in org.bukkit.event.player
Fields in org.bukkit.event.player declared as Block Modifier and Type Field Description protected BlockPlayerInteractEvent. blockClickedMethods in org.bukkit.event.player that return Block Modifier and Type Method Description BlockPlayerBedEnterEvent. getBed()Returns the bed block involved in this event.BlockPlayerBedLeaveEvent. getBed()Returns the bed block involved in this event.BlockPlayerBucketEvent. getBlockClicked()Return the block clickedBlockPlayerInteractEvent. getClickedBlock()Returns the clicked blockConstructors in org.bukkit.event.player with parameters of type Block Constructor Description PlayerBedEnterEvent(Player who, Block bed)PlayerBedLeaveEvent(Player who, Block bed)PlayerBucketEmptyEvent(Player who, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand)PlayerBucketEvent(Player who, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand)PlayerBucketFillEvent(Player who, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand)PlayerInteractEvent(Player who, Action action, ItemStack item, Block clickedBlock, BlockFace clickedFace) -
Uses of Block in org.bukkit.event.vehicle
Methods in org.bukkit.event.vehicle that return Block Modifier and Type Method Description BlockVehicleBlockCollisionEvent. getBlock()Gets the block the vehicle collided withConstructors in org.bukkit.event.vehicle with parameters of type Block Constructor Description VehicleBlockCollisionEvent(Vehicle vehicle, Block block) -
Uses of Block in org.bukkit.event.world
Methods in org.bukkit.event.world that return types with arguments of type Block Modifier and Type Method Description java.util.ArrayList<Block>PortalCreateEvent. getBlocks()Gets an array list of all the blocks associated with the created portalConstructor parameters in org.bukkit.event.world with type arguments of type Block Constructor Description PortalCreateEvent(java.util.Collection<Block> blocks, World world, PortalCreateEvent.CreateReason reason) -
Uses of Block in org.bukkit.projectiles
Methods in org.bukkit.projectiles that return Block Modifier and Type Method Description BlockBlockProjectileSource. getBlock()Gets the block this projectile source belongs to. -
Uses of Block in org.bukkit.util
Methods in org.bukkit.util that return Block Modifier and Type Method Description BlockBlockIterator. next()Returns the next Block in the trace