Skip to content

Commit

Permalink
Fix sidedness issues
Browse files Browse the repository at this point in the history
  • Loading branch information
NotMyWing committed Dec 13, 2023
1 parent dd6025a commit 678a6d3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import java.util.function.Function;

@SideOnly(Side.CLIENT)
public
class DenseCraftingCubeModel implements IModel {
private static final ResourceLocation RING_CORNER = texture("ring_corner");
private static final ResourceLocation RING_SIDE_HOR = texture("ring_side_hor");
Expand All @@ -39,7 +40,7 @@ class DenseCraftingCubeModel implements IModel {
private static final ResourceLocation STORAGE_16384K_LIGHT = naetexture("crafting_storage_16384k_light");
private final BlockDenseCraftingUnit.DenseCraftingUnitType type;

DenseCraftingCubeModel(BlockDenseCraftingUnit.DenseCraftingUnitType type) {
public DenseCraftingCubeModel(BlockDenseCraftingUnit.DenseCraftingUnitType type) {
this.type = type;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
import appeng.bootstrap.IBlockRendering;
import appeng.bootstrap.IItemRendering;
import appeng.bootstrap.definitions.TileEntityDefinition;
import co.neeve.nae2.client.rendering.models.crafting.DenseCraftingCubeRendering;
import co.neeve.nae2.client.rendering.tesr.TESRReconstructionChamber;
import co.neeve.nae2.common.blocks.BlockDenseCraftingUnit;
import co.neeve.nae2.common.blocks.BlockReconstructionChamber;
import co.neeve.nae2.common.features.Features;
import co.neeve.nae2.common.features.subfeatures.DenseCellFeatures;
import co.neeve.nae2.common.registration.registry.Registry;
import co.neeve.nae2.common.registration.registry.rendering.DenseCraftingCubeRendering;
import co.neeve.nae2.common.tiles.TileDenseCraftingUnit;
import co.neeve.nae2.common.tiles.TileReconstructionChamber;
import net.minecraftforge.fml.relauncher.Side;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package co.neeve.nae2.client.rendering.models.crafting;
package co.neeve.nae2.common.registration.registry.rendering;

import appeng.block.crafting.BlockCraftingUnit;
import appeng.bootstrap.BlockRenderingCustomizer;
import appeng.bootstrap.IBlockRendering;
import appeng.bootstrap.IItemRendering;
import co.neeve.nae2.Tags;
import co.neeve.nae2.client.rendering.models.crafting.DenseCraftingCubeModel;
import co.neeve.nae2.common.blocks.BlockDenseCraftingUnit;
import net.minecraft.block.Block;
import net.minecraft.block.state.IBlockState;
Expand All @@ -16,7 +17,6 @@
import java.util.HashMap;
import java.util.Map;

@SideOnly(Side.CLIENT)
public class DenseCraftingCubeRendering extends BlockRenderingCustomizer {
private final String registryName;
private final BlockDenseCraftingUnit.DenseCraftingUnitType type;
Expand All @@ -38,6 +38,7 @@ public void customize(IBlockRendering rendering, IItemRendering itemRendering) {
rendering.modelCustomizer((loc, model) -> model);
}

@SideOnly(Side.CLIENT)
private Map<IBlockState, ModelResourceLocation> mapState(Block block, ModelResourceLocation defaultModel,
ModelResourceLocation formedModel) {
Map<IBlockState, ModelResourceLocation> result = new HashMap<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public void customize(IItemRendering rendering) {
.collect(Collectors.toList()));
}

@SideOnly(Side.CLIENT)
private ModelResourceLocation getItemMeshDefinition(ItemStack is) {
var partType = this.item.getTypeByStack(is);
var variant = this.item.variantOf(is.getItemDamage());
Expand Down

0 comments on commit 678a6d3

Please sign in to comment.