Uses of Enum
com.welcome234.pluginsystem.Block
Packages that use Block
Package
Description
This is the main package of the API, containing general classes
Contains classes for all event types
-
Uses of Block in com.welcome234.pluginsystem
Methods in com.welcome234.pluginsystem that return BlockModifier and TypeMethodDescriptionBlock[][]Deprecated.Worlds are now infinite, use generateChunk insteadBlock[][]CustomGenerator.generateChunk(Block[][] generatorData, long seed, int chunkX)Generates the custom terrain for chunksChunk.getBlock(int x, int y)Gets the current block for the specified chunk coordinates.static BlockWorld.getBlock(int x, int y, boolean endDimension)Gets the current block for the specified coordinate and dimension.Player.getSlotBlock(int slot)Gets the block type at specified inventory slotstatic BlockReturns the enum constant of this type with the specified name.static Block[]Block.values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in com.welcome234.pluginsystem with parameters of type BlockModifier and TypeMethodDescriptionBlock[][]Deprecated.Worlds are now infinite, use generateChunk insteadBlock[][]CustomGenerator.generateChunk(Block[][] generatorData, long seed, int chunkX)Generates the custom terrain for chunksbooleanGives the player the block with the amount specifiedvoidSets the current block for the specified chunk coordinates.static voidSets the current block for the specified coordinate and dimension.voidPlayer.setSlotBlock(int slot, Block block, int amount)Sets the specified inventory slot to the block and amount -
Uses of Block in com.welcome234.pluginsystem.events
Methods in com.welcome234.pluginsystem.events that return BlockModifier and TypeMethodDescriptionBlockInteractEvent.getBlock()Gets the block type of the interacted blockBlockBreakEvent.getBrokenBlock()Gets the block type of the destroyed blockFluidFlowEvent.getFluid()Gets the block type of the fluidBlockPlaceEvent.getPlacedBlock()Gets the block type of the placed blockConstructors in com.welcome234.pluginsystem.events with parameters of type BlockModifierConstructorDescriptionBlockBreakEvent(String playername, int x, int y, boolean endDimension, Block block)BlockInteractEvent(String playername, int x, int y, boolean endDimension, Block block)BlockPlaceEvent(String playername, int x, int y, boolean endDimension, Block block)FluidFlowEvent(int x, int y, boolean endDimension, Block fluid)