Post-Merge fixes.

This commit is contained in:
Sebastian Hartte
2020-08-23 21:20:51 +02:00
parent 73cc3f8998
commit e256a4f664
2 changed files with 11 additions and 11 deletions
@@ -141,12 +141,12 @@ public final class ApiItems implements IItems {
private final AEColoredItemDefinition coloredLumenPaintBall; private final AEColoredItemDefinition coloredLumenPaintBall;
// unsupported dev tools // unsupported dev tools
private IItemDefinition toolEraser; private final IItemDefinition toolEraser;
private IItemDefinition toolMeteoritePlacer; private final IItemDefinition toolMeteoritePlacer;
private IItemDefinition toolDebugCard; private final IItemDefinition toolDebugCard;
private IItemDefinition toolReplicatorCard; private final IItemDefinition toolReplicatorCard;
private IItemDefinition dummyFluidItem; private final IItemDefinition dummyFluidItem;
public ApiItems(FeatureFactory registry, ApiMaterials materials) { public ApiItems(FeatureFactory registry, ApiMaterials materials) {
FeatureFactory certusTools = registry.features(AEFeature.CERTUS_QUARTZ_TOOLS); FeatureFactory certusTools = registry.features(AEFeature.CERTUS_QUARTZ_TOOLS);
@@ -1,12 +1,12 @@
package appeng.items.misc; package appeng.items.misc;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.fabricmc.fabric.api.object.builder.v1.client.model.FabricModelPredicateProviderRegistry;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import net.minecraft.item.ItemModelsProperties;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
import appeng.bootstrap.components.IClientSetupComponent; import appeng.bootstrap.components.IClientSetupComponent;
import appeng.core.AppEng;
/** /**
* Exposes a predicate "growth", which is used in the item model to * Exposes a predicate "growth", which is used in the item model to
@@ -20,10 +20,10 @@ public class CrystalSeedRendering implements IClientSetupComponent {
} }
@Override @Override
@OnlyIn(Dist.CLIENT) @Environment(EnvType.CLIENT)
public void setup() { public void setup() {
// Expose the growth of the seed to the model system // Expose the growth of the seed to the model system
ItemModelsProperties.func_239418_a_(item, new ResourceLocation("appliedenergistics2:growth"), FabricModelPredicateProviderRegistry.register(item, AppEng.makeId("growth"),
(is, w, p) -> CrystalSeedItem.getGrowthTicks(is) / (float) CrystalSeedItem.GROWTH_TICKS_REQUIRED); (is, w, p) -> CrystalSeedItem.getGrowthTicks(is) / (float) CrystalSeedItem.GROWTH_TICKS_REQUIRED);
} }
} }