Esempio n. 1
0
 @Override // IStrictJson
 public void initialize() {
   super.initialize();
   mNameSpace = Variable.PLAYER_NAMESPACE;
   mPermeableBlockIds = new ArrayList<Integer>();
   for (String spec : mPermeableBlockSpecs) {
     ArrayList<Integer> ids = Helpers.buildBlockIdList(spec);
     mPermeableBlockIds.addAll(ids);
   }
   mClosed = new ArrayList<Pos>();
   mOpen = new ArrayDeque<Pos>();
   if (mDepth == null) mDepth = 10;
 }
Esempio n. 2
0
 @Override // IStrictJson
 public void validate() throws StrictJsonException {
   super.validate();
   if (mPermeableBlockSpecs == null)
     throw new StrictJsonException("AirPermeableBlocks must be defined");
 }