Denizen Script Object Types


Object Types are the fundamental types of data passed around in a Denizen script, often seen as the return type of a tag.
Learn about how objects work in The Beginner's Guide.


Showing 1 out of 72 object types...
NameImageTag
Prefiximage@
Base TypeElementTag
Identity FormatThe identity format for ImageTag is a hex encoding of the image's raw bytes, in order.
Each byte is encoded as an individual big-endian hexadecimal pair, like "FF" for byte=255, "00" for byte=0, "0F" for 15, "F0" for 240, ... etc.
Alternatively, an image's identity format can be an image id (from images loaded in with Command:Image), see description for more information.
DescriptionImageTags represent an image of any supported format.
They are represented by either a hex encoding of their bytes or their image id, but new images can also be created by providing a MapTag with the following keys:
- "width": the new image's width, required.
- "height": the new image's height, required.
- "background": a ObjectType:ColorTag for the new image's background, optional.

For id-based images, the image will directly reference the image loaded in under that id, so for example:

- define image <image[drawing]>
- draw id:drawing pixel x:0 y:0 color:red
# The "image" definition has changed as well, since it's an id-based image and the image under that id was edited.

See Tag:ImageTag.copy for getting normal image objects from id-based ones.
Sourcehttps://github.com/DenizenScript/Denizen-Core/blob/master/src/main/java/com/denizenscript/denizencore/objects/core/ImageTag.java#L30