public interface CompatibilityBlock
Block class.| Modifier and Type | Method and Description |
|---|---|
<T extends Block> |
getChildrenByType(Class<T> blockClass,
boolean recurse)
Deprecated.
since 3.0M3 use
Block#getBlocks(new ClassBlockMatcher(blockClass), Axes.DESCENDANT) instead
if recurse was true and
Block#getBlocks(new ClassBlockMatcher(blockClass), Axes.CHILD) otherwise |
<T extends Block> |
getParentBlockByType(Class<T> blockClass)
Deprecated.
since 3.0M3 use
Block.getBlocks(BlockMatcher, Axes) instead |
<T extends Block> |
getPreviousBlockByType(Class<T> blockClass,
boolean recurse)
Deprecated.
since 3.0M3 use
Block.getBlocks(BlockMatcher, Axes) instead |
@Deprecated <T extends Block> T getParentBlockByType(Class<T> blockClass)
Block.getBlocks(BlockMatcher, Axes) instead
The difference with getPreviousBlockByType(Class, boolean) is that this one only look at parent when
getPreviousBlockByType(Class, boolean) look at previous block in the same parent.
T - the class of the Blocks to returnblockClass - the block class to look for@Deprecated <T extends Block> T getPreviousBlockByType(Class<T> blockClass, boolean recurse)
Block.getBlocks(BlockMatcher, Axes) instead
The difference with getParentBlockByType(Class) is that this one look also at previous block in the same
parent when getParentBlockByType(Class) only look at parents.
T - the class of the Blocks to returnblockClass - the block class to look forrecurse - if true also search in parents levels@Deprecated <T extends Block> List<T> getChildrenByType(Class<T> blockClass, boolean recurse)
Block#getBlocks(new ClassBlockMatcher(blockClass), Axes.DESCENDANT) instead
if recurse was true and
Block#getBlocks(new ClassBlockMatcher(blockClass), Axes.CHILD) otherwiseT - the class of the Blocks to returnblockClass - the block class to look forrecurse - if true also search recursively childrenCopyright © 2004–2017 XWiki. All rights reserved.