示例#1
0
 private AssetUri getDefaultTile(BlockDefinition blockDef, AssetUri uri) {
   String defaultName = uri.toSimpleString();
   if (!blockDef.tile.isEmpty()) {
     defaultName = blockDef.tile;
   }
   return new AssetUri(AssetType.BLOCK_TILE, defaultName);
 }
示例#2
0
 @Override
 public String toString() {
   AssetUri prefabUri = getPrefabURI();
   StringBuilder builder = new StringBuilder();
   builder.append("EntityRef{id = ");
   builder.append(getId());
   NetworkComponent networkComponent = getComponent(NetworkComponent.class);
   if (networkComponent != null) {
     builder.append(", netId = ");
     builder.append(networkComponent.getNetworkId());
   }
   if (prefabUri != null) {
     builder.append(", prefab = '");
     builder.append(prefabUri.toSimpleString());
     builder.append("'");
   }
   builder.append("}");
   return builder.toString();
 }