| Method | Description |
|---|---|
isExtended() | Gets the sticker's state |
isAttachedToBlock() | Checks if the sticker's holding anything |
extend() | Extends the sticker |
retract() | Retracts the sticker |
toggle() | Toggles the sticker |
isExtended()
Checks if the sticker is extended.
Returns
booleanThe state of the sticker,trueif it's extended.
isAttachedToBlock()
Checks if the sticker is sticking to a block.
Returns
booleanThe state of the sticker,trueif it's sticking to a block.
extend()
Extends the sticker.
Returns
booleanWill only returntrueif the sticker went from retracted to extended.
retract()
Retracts the sticker.
Returns
booleanWill only returntrueif the sticker went from extended to retracted.
toggle()
Toggles between the sticker being retracted and extended, regardless of it's previous state
Returns
booleanWill returntrueif it succeeds.