32 lines
761 B
Markdown
32 lines
761 B
Markdown
# IScriptBlockState — giriş
|
|
|
|
[← IScriptBlockState](index.md) · [← Master](../../wiki.md)
|
|
|
|
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
|