Ok so I'm new to greenfoot and I want to know how to do this. So you have
What I'm asking is how do I call that?
private void test() {
}private void test() {
}test();
this.test();
object.method();
if (isTouching(Block.class))
{
// get reference
Block block = (Block)getOneIntersectingObject(Block.class);
block.crumble(); // calling 'public void crumble()' in Block class
}Actor obj = getOneIntersectingObject(Block.class); ((Block)obj).crumble();