ComparatorMode

Indicates the mode that a block this property is applied to is operating under.

Comparators have three input sides, and two inputs. The back is the main input, which is the side with two torches. The left and right are combined in to the secondary input, by taking the maximum of them.

Comparators have two different modes that change their behaviour, which are described on their respective enum constants.

Entries

Link copied to clipboard

In this mode, the comparator compares the signal strength of the main input to the signal strength of the secondary input, and outputs the greatest signal strength.

Link copied to clipboard

In this mode, the comparator outputs the result of subtracting the signal strength of the secondary input from the signal strength of the main input.

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.

Properties

Link copied to clipboard
Link copied to clipboard