mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-06-28 15:39:09 +02:00
2c07ef0fa0
Removed some Recipes after the decision to not port it or change it to loot tables in favor of recipes. A lot more @Nonnull annotations. Signed-off-by: canitzp <canitzp@gmail.com>
29 lines
1.1 KiB
Java
29 lines
1.1 KiB
Java
package de.ellpeck.actuallyadditions.data;
|
|
|
|
|
|
import de.ellpeck.actuallyadditions.common.ActuallyAdditions;
|
|
import de.ellpeck.actuallyadditions.common.blocks.InitBlocks;
|
|
import net.minecraft.block.Block;
|
|
import net.minecraft.data.DataGenerator;
|
|
import net.minecraftforge.client.model.generators.BlockStateProvider;
|
|
import net.minecraftforge.client.model.generators.ExistingFileHelper;
|
|
import net.minecraftforge.fml.RegistryObject;
|
|
|
|
public class BlockStateGenerator extends BlockStateProvider {
|
|
|
|
public BlockStateGenerator(DataGenerator dataGenerator, ExistingFileHelper existingFileHelper){
|
|
super(dataGenerator, ActuallyAdditions.MODID, existingFileHelper);
|
|
}
|
|
|
|
@Override
|
|
protected void registerStatesAndModels(){
|
|
for(RegistryObject<Block> blockEntry : InitBlocks.BLOCKS.getEntries()){
|
|
blockEntry.ifPresent(block -> {
|
|
// todo check if the blocks aren't "simple" and provide a different model,
|
|
// probably with the help of a interface the block implements, like naturesaura does
|
|
this.simpleBlock(block);
|
|
});
|
|
}
|
|
}
|
|
}
|