Package ch.njol.skript.util
Class DelayedChangeBlock
java.lang.Object
ch.njol.skript.util.DelayedChangeBlock
- All Implemented Interfaces:
net.kyori.adventure.translation.Translatable,Block,Metadatable,Translatable
A block that gets all data from the world, but either delays
any changes by 1 tick of reflects them on a given BlockState
depending on which constructor is used.
-
Constructor Summary
ConstructorsConstructorDescriptionDelayedChangeBlock(Block block) DelayedChangeBlock(Block block, @Nullable BlockState newState) -
Method Summary
Modifier and TypeMethodDescriptionbooleanapplyBoneMeal(BlockFace blockFace) booleanbooleanbreakNaturally(boolean triggerEffect) booleanbreakNaturally(boolean triggerEffect, boolean dropExperience) booleanbreakNaturally(@NotNull ItemStack tool, boolean triggerEffect, boolean dropExperience) booleanbreakNaturally(@Nullable ItemStack tool) booleanbreakNaturally(ItemStack tool, boolean triggerEffect) booleanvoidgetBiome()getBlock()intintgetBlockPower(BlockFace face) @NotNull SoundGroupfloatgetBreakSpeed(@NotNull Player player) getChunk()@NotNull VoxelShape@NotNull BiomebytegetData()floatgetDestroySpeed(@NotNull ItemStack itemStack, boolean considerEnchants) floatgetDestroySpeed(ItemStack itemStack) getDrops()@Nullable BlockFacedoublebytebytebyte@Nullable LocationgetLocation(@Nullable Location loc) getMetadata(String metadataKey) getRelative(int modX, int modY, int modZ) getRelative(BlockFace face) getRelative(BlockFace face, int distance) getState()getState(boolean useSnapshot) doublegetType()getWorld()intgetX()intgetY()intgetZ()booleanhasMetadata(String metadataKey) booleanbooleanisBlockFacePowered(BlockFace face) booleanbooleanbooleanbooleanbooleanbooleanisEmpty()booleanisLiquid()booleanbooleanisPreferredTool(@NotNull ItemStack tool) booleanbooleanisSolid()booleanisValidTool(@NotNull ItemStack itemStack) void@Nullable RayTraceResultrayTrace(Location start, Vector direction, double maxDistance, FluidCollisionMode fluidCollisionMode) voidremoveMetadata(String metadataKey, Plugin owningPlugin) voidvoidsetBlockData(BlockData data) voidsetBlockData(BlockData data, boolean applyPhysics) voidsetMetadata(String metadataKey, MetadataValue newMetadataValue) voidvoidvoidtick()@NotNull StringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.block.Block
getBlockKey
-
Constructor Details
-
DelayedChangeBlock
-
DelayedChangeBlock
-
-
Method Details
-
getBlock
-
setMetadata
- Specified by:
setMetadatain interfaceMetadatable
-
getMetadata
- Specified by:
getMetadatain interfaceMetadatable
-
hasMetadata
- Specified by:
hasMetadatain interfaceMetadatable
-
removeMetadata
- Specified by:
removeMetadatain interfaceMetadatable
-
getData
public byte getData() -
getRelative
- Specified by:
getRelativein interfaceBlock
-
getRelative
- Specified by:
getRelativein interfaceBlock
-
getRelative
- Specified by:
getRelativein interfaceBlock
-
getType
-
getLightLevel
public byte getLightLevel()- Specified by:
getLightLevelin interfaceBlock
-
getLightFromSky
public byte getLightFromSky()- Specified by:
getLightFromSkyin interfaceBlock
-
getLightFromBlocks
public byte getLightFromBlocks()- Specified by:
getLightFromBlocksin interfaceBlock
-
getWorld
-
getX
public int getX() -
getY
public int getY() -
getZ
public int getZ() -
getLocation
- Specified by:
getLocationin interfaceBlock
-
getChunk
-
setType
-
getFace
-
getState
-
getState
-
getBiome
-
getComputedBiome
- Specified by:
getComputedBiomein interfaceBlock
-
setBiome
-
isBlockPowered
public boolean isBlockPowered()- Specified by:
isBlockPoweredin interfaceBlock
-
isBlockIndirectlyPowered
public boolean isBlockIndirectlyPowered()- Specified by:
isBlockIndirectlyPoweredin interfaceBlock
-
isBlockFacePowered
- Specified by:
isBlockFacePoweredin interfaceBlock
-
isBlockFaceIndirectlyPowered
- Specified by:
isBlockFaceIndirectlyPoweredin interfaceBlock
-
getBlockPower
- Specified by:
getBlockPowerin interfaceBlock
-
getBlockPower
public int getBlockPower()- Specified by:
getBlockPowerin interfaceBlock
-
isEmpty
public boolean isEmpty() -
isLiquid
public boolean isLiquid() -
isBuildable
public boolean isBuildable()- Specified by:
isBuildablein interfaceBlock
-
isBurnable
public boolean isBurnable()- Specified by:
isBurnablein interfaceBlock
-
isReplaceable
public boolean isReplaceable()- Specified by:
isReplaceablein interfaceBlock
-
isSolid
public boolean isSolid() -
isCollidable
public boolean isCollidable()- Specified by:
isCollidablein interfaceBlock
-
getTemperature
public double getTemperature()- Specified by:
getTemperaturein interfaceBlock
-
getHumidity
public double getHumidity()- Specified by:
getHumidityin interfaceBlock
-
getPistonMoveReaction
- Specified by:
getPistonMoveReactionin interfaceBlock
-
breakNaturally
public boolean breakNaturally()- Specified by:
breakNaturallyin interfaceBlock
-
breakNaturally
- Specified by:
breakNaturallyin interfaceBlock
-
breakNaturally
public boolean breakNaturally(boolean triggerEffect) - Specified by:
breakNaturallyin interfaceBlock
-
breakNaturally
- Specified by:
breakNaturallyin interfaceBlock
-
tick
public void tick() -
fluidTick
public void fluidTick() -
randomTick
public void randomTick()- Specified by:
randomTickin interfaceBlock
-
applyBoneMeal
- Specified by:
applyBoneMealin interfaceBlock
-
getDrops
-
getDrops
-
getDrops
-
getLocation
- Specified by:
getLocationin interfaceBlock
-
setType
-
getBlockData
- Specified by:
getBlockDatain interfaceBlock
-
setBlockData
- Specified by:
setBlockDatain interfaceBlock
-
setBlockData
- Specified by:
setBlockDatain interfaceBlock
-
rayTrace
@Nullable public @Nullable RayTraceResult rayTrace(Location start, Vector direction, double maxDistance, FluidCollisionMode fluidCollisionMode) -
isPassable
public boolean isPassable()- Specified by:
isPassablein interfaceBlock
-
getBoundingBox
- Specified by:
getBoundingBoxin interfaceBlock
-
getSoundGroup
- Specified by:
getSoundGroupin interfaceBlock
-
getBlockSoundGroup
- Specified by:
getBlockSoundGroupin interfaceBlock
-
getTranslationKey
- Specified by:
getTranslationKeyin interfaceBlock- Specified by:
getTranslationKeyin interfaceTranslatable
-
getDestroySpeed
- Specified by:
getDestroySpeedin interfaceBlock
-
isPreferredTool
- Specified by:
isPreferredToolin interfaceBlock
-
isValidTool
- Specified by:
isValidToolin interfaceBlock
-
getDestroySpeed
- Specified by:
getDestroySpeedin interfaceBlock
-
getCollisionShape
- Specified by:
getCollisionShapein interfaceBlock
-
canPlace
-
getBreakSpeed
- Specified by:
getBreakSpeedin interfaceBlock
-
translationKey
- Specified by:
translationKeyin interfacenet.kyori.adventure.translation.Translatable
-
breakNaturally
public boolean breakNaturally(boolean triggerEffect, boolean dropExperience) - Specified by:
breakNaturallyin interfaceBlock
-
breakNaturally
public boolean breakNaturally(@NotNull @NotNull ItemStack tool, boolean triggerEffect, boolean dropExperience) - Specified by:
breakNaturallyin interfaceBlock
-