예제 #1
0
 public List <object> GetEntities()
 {
     return(BlockHandlerRegistry.GetBlocks(blockType, (b) => b.CustomName.Equals(PROGRAM.Me.CustomName)));
 }
예제 #2
0
 public List <object> GetEntities()
 {
     return(BlockHandlerRegistry.GetBlocks(blockType, block => true));
 }
예제 #3
0
            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);
            }