From 55b8e55015e1ff26a6e89b597ade8c3c87ecf5e4 Mon Sep 17 00:00:00 2001 From: Adrien1106 Date: Tue, 13 Feb 2024 16:56:57 +0100 Subject: [PATCH] small generator cleanup --- .../reframedtemplates/generator/GBlockstate.java | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/main/java/fr/adrien1106/reframedtemplates/generator/GBlockstate.java b/src/main/java/fr/adrien1106/reframedtemplates/generator/GBlockstate.java index 1bab3f4..68508db 100644 --- a/src/main/java/fr/adrien1106/reframedtemplates/generator/GBlockstate.java +++ b/src/main/java/fr/adrien1106/reframedtemplates/generator/GBlockstate.java @@ -2,18 +2,12 @@ package fr.adrien1106.reframedtemplates.generator; import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput; import net.fabricmc.fabric.api.datagen.v1.provider.FabricModelProvider; -import net.minecraft.block.CandleBlock; -import net.minecraft.block.DoorBlock; -import net.minecraft.block.LeverBlock; -import net.minecraft.block.PaneBlock; import net.minecraft.data.client.*; import net.minecraft.registry.Registries; import net.minecraft.state.property.Property; import net.minecraft.util.Identifier; -import java.util.Iterator; import java.util.Objects; -import java.util.stream.Stream; public class GBlockstate extends FabricModelProvider { @@ -24,14 +18,7 @@ public class GBlockstate extends FabricModelProvider { @Override public void generateBlockStateModels(BlockStateModelGenerator model_generator) { // TODO Find out smth for items Generator.BLOCKS - .forEach(block -> { - Identifier block_id = Registries.BLOCK.getId(block); - model_generator.excludeFromSimpleItemModelGeneration(block); -// model_generator.registerParentedItemModel( -// block.asItem(), -// block_id.withSuffixedPath("_special") -// ); - }); + .forEach(model_generator::excludeFromSimpleItemModelGeneration); Generator.BLOCKS.stream() .map(block -> block instanceof MultipartBlockStateProvider multipart_block ? multipart_block.getMultipart(): null) .filter(Objects::nonNull)