@tendrock/lib
Version:
A lib under the Tendrock system for Minecraft Bedrock Script API
12 lines (11 loc) • 357 B
JavaScript
export class StateUtils {
static getState(permutation, state) {
return permutation.getState(state);
}
static withState(permutation, stateName, state) {
return permutation.withState(stateName, state);
}
static hasState(permutation, stateName) {
return permutation.getAllStates().hasOwnProperty(stateName);
}
}