Class Block
java.lang.Object
com.github.skriptdev.skript.api.hytale.Block
Represents a block in a world.
Hytale doesn't appear to have a representation of a block in the world.
This class provides a wrapper around Hytale's block system, allowing for easy interaction with blocks in a world.
This may be changed/removed in the future.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbreakBlock(int settings) com.hypixel.hytale.server.core.asset.type.fluid.FluidgetFluid()byte@NotNull com.hypixel.hytale.math.vector.Location@NotNull com.hypixel.hytale.math.vector.Vector3igetPos()@NotNull com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockTypegetType()@NotNull com.hypixel.hytale.server.core.universe.world.WorldgetWorld()voidsetFluid(@NotNull com.hypixel.hytale.server.core.asset.type.fluid.Fluid fluid, @Nullable Integer level) voidsetFluidLevel(byte level) voidsetType(@NotNull com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType type, int settings) toString()
-
Constructor Details
-
Block
-
Block
-
-
Method Details
-
getType
-
setType
-
getFluidLevel
public byte getFluidLevel() -
setFluidLevel
public void setFluidLevel(byte level) -
getFluid
public com.hypixel.hytale.server.core.asset.type.fluid.Fluid getFluid() -
setFluid
-
breakBlock
public void breakBlock(int settings) -
getWorld
-
getPos
-
getLocation
-
toTypeString
-
toVariableNameString
-
toString
-