public List <object> GetEntities() { return(BlockHandlerRegistry.GetBlocks(blockType, (b) => b.CustomName.Equals(PROGRAM.Me.CustomName))); }
public List <object> GetEntities() { return(BlockHandlerRegistry.GetBlocks(blockType, block => true)); }
public List <Object> GetEntities() { String selectorString = CastString(selector.GetValue()).GetTypedValue(); bool resolvedIsGroup = false; Block bt = blockType.HasValue ? blockType.Value : ResolveType(selectorString, out resolvedIsGroup); bool useGroup = isGroup || resolvedIsGroup; List <object> entities = useGroup ? BlockHandlerRegistry.GetBlocksInGroup(bt, selectorString) : BlockHandlerRegistry.GetBlocks(bt, block => block.CustomName.Equals(selectorString)); return(entities); }