Class Block

java.lang.Object
com.github.skriptdev.skript.api.hytale.Block

public class Block extends Object
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 Details

    • Block

      public Block(@NotNull @NotNull com.hypixel.hytale.server.core.universe.world.World world, @NotNull @NotNull com.hypixel.hytale.math.vector.Vector3i pos)
    • Block

      public Block(@NotNull @NotNull com.hypixel.hytale.math.vector.Location location)
  • Method Details

    • getType

      @NotNull public @NotNull com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType getType()
    • setType

      public void setType(@NotNull @NotNull com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType type, int settings)
    • getFluidLevel

      public byte getFluidLevel()
    • setFluidLevel

      public void setFluidLevel(byte level)
    • getFluid

      public com.hypixel.hytale.server.core.asset.type.fluid.Fluid getFluid()
    • setFluid

      public void setFluid(@NotNull @NotNull com.hypixel.hytale.server.core.asset.type.fluid.Fluid fluid, @Nullable @Nullable Integer level)
    • breakBlock

      public void breakBlock(int settings)
    • getWorld

      @NotNull public @NotNull com.hypixel.hytale.server.core.universe.world.World getWorld()
    • getPos

      @NotNull public @NotNull com.hypixel.hytale.math.vector.Vector3i getPos()
    • getLocation

      @NotNull public @NotNull com.hypixel.hytale.math.vector.Location getLocation()
    • toTypeString

      public String toTypeString()
    • toVariableNameString

      public String toVariableNameString()
    • toString

      public String toString()
      Overrides:
      toString in class Object