@@ -0,0 +1,1747 @@
+/*%0A * Copyright 2017 MovingBlocks%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage org.terasology.persistence.typeHandling.extensionTypes;%0A%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0Aimport org.terasology.persistence.typeHandling.StringRepresentationTypeHandler;%0Aimport org.terasology.rendering.assets.texture.TextureRegionAsset;%0Aimport org.terasology.utilities.Assets;%0A%0Aimport java.util.Optional;%0A%0Apublic class TextureRegionAssetTypeHandler extends StringRepresentationTypeHandler%3CTextureRegionAsset%3E %7B%0A    private static final Logger logger = LoggerFactory.getLogger(TextureRegionTypeHandler.class);%0A%0A    @Override%0A    public String getAsString(TextureRegionAsset item) %7B%0A        if (item != null) %7B%0A            return item.getUrn().toString();%0A        %7D%0A        return %22%22;%0A    %7D%0A%0A    @Override%0A    public TextureRegionAsset getFromString(String representation) %7B%0A        Optional%3CTextureRegionAsset%3E region = Assets.getTextureRegion(representation);%0A        if (region.isPresent()) %7B%0A            return region.get();%0A        %7D else %7B%0A            logger.error(%22Failed to resolve texture region '%22 + representation + %22'%22);%0A            return Assets.getTextureRegion(%22engine:default%22).get();%0A        %7D%0A    %7D%0A%0A%7D%0A

Add TextureRegionAssetTypeHandler