Files

761 B

IScriptBlockState — giriş

← IScriptBlockState · ← Master

mchorse.mappet.api.scripts.user.blocks

Interface IScriptBlockState

public interface IScriptBlockState

Scripted block state.

This interface represents a block state that can be used to compare or place into the world. You can use IScriptFactory.createBlockState(String, int) to query for comparison.

var andesite = mappet.createBlockState("minecraft:stone", 5);

function main(c) { if (c.getWorld().getBlock(214, 3, 511).isSame(andesite)) { c.getSubject().send("Block at (214, 3, 511) is indeed andesite!"); } }

Method Summary All Methods Instance Methods Abstract Methods

Modifier and Type Method and Description