@@ -0,0 +1,1866 @@
+package info.u_team.u_team_core.data;%0A%0Aimport java.io.IOException;%0A%0Aimport org.apache.logging.log4j.*;%0A%0Aimport com.google.common.base.Preconditions;%0A%0Aimport net.minecraft.data.*;%0Aimport net.minecraft.util.ResourceLocation;%0Aimport net.minecraftforge.client.model.generators.*;%0A%0Apublic abstract class CommonBlockStatesProvider extends BlockStateProvider %7B%0A%09%0A%09protected final Marker marker;%0A%09%0A%09public CommonBlockStatesProvider(DataGenerator generator, String modid, ExistingFileHelper existingFileHelper) %7B%0A%09%09super(generator, modid, existingFileHelper);%0A%09%09marker = MarkerManager.getMarker(getName());%0A%09%7D%0A%09%0A%09@Override%0A%09public void act(DirectoryCache cache) throws IOException %7B%0A%09%09this.cache = cache;%0A%09%09generatedModels.clear();%0A%09%09registerModels0();%0A%09%09generatedModels.values().forEach(model -%3E %7B%0A%09%09%09try %7B%0A%09%09%09%09final ResourceLocation location = model.getLocation();%0A%09%09%09%09CommonProvider.write(cache, model.toJson(), generator.getOutputFolder().resolve(%22assets/%22 + location.getNamespace() + %22/models/%22 + location.getPath() + %22.json%22));%0A%09%09%09%7D catch (IOException ex) %7B%0A%09%09%09%09CommonProvider.LOGGER.error(marker, %22Could not write data.%22, ex);%0A%09%09%09%7D%0A%09%09%7D);%0A%09%09this.cache = null;%0A%09%7D%0A%09%0A%09// We need to overide registerModels, but this method is marked final...%0A%09private void registerModels0() %7B%0A%09%09registeredBlocks.clear();%0A%09%09registerStatesAndModels();%0A%09%09%0A%09%09registeredBlocks.forEach((block, generatedState) -%3E %7B%0A%09%09%09try %7B%0A%09%09%09%09final ResourceLocation location = Preconditions.checkNotNull(block.getRegistryName());%0A%09%09%09%09CommonProvider.write(cache, generatedState.toJson(), generator.getOutputFolder().resolve(%22assets/%22 + location.getNamespace() + %22/blockstates/%22 + location.getPath() + %22.json%22));%0A%09%09%09%7D catch (IOException ex) %7B%0A%09%09%09%09CommonProvider.LOGGER.error(marker, %22Could not write data.%22, ex);%0A%09%09%09%7D%0A%09%09%7D);%0A%09%7D%0A%09%0A%09@Override%0A%09public String getName() %7B%0A%09%09return %22Block-States %7C Block-Models%22;%0A%09%7D%0A%7D%0A

Add block state / block models provider