@Override public BlockFamily deserialize(EntityData.Value value) { if (value.getStringCount() > 0) { return blockManager.getBlockFamily(value.getString(0)); } return null; }
@Override public T deserialize(EntityData.Value value) { if (value.getStringCount() > 0) { Asset asset = Assets.resolve(type, value.getString(0)); if (asset != null && assetClass.isAssignableFrom(asset.getClass())) { return assetClass.cast(asset); } } return null; }