19w38b
This commit is contained in:
parent
2d8961589d
commit
3fe62e2c77
6 changed files with 19 additions and 26 deletions
|
@ -25,7 +25,9 @@
|
|||
package techreborn;
|
||||
|
||||
import net.fabricmc.api.ClientModInitializer;
|
||||
import net.fabricmc.fabric.api.blockrenderlayer.v1.BlockRenderLayerMap;
|
||||
import net.fabricmc.fabric.api.client.model.ModelLoadingRegistry;
|
||||
import net.minecraft.block.BlockRenderLayer;
|
||||
import net.minecraft.client.render.model.BakedModel;
|
||||
import net.minecraft.client.render.model.ModelBakeSettings;
|
||||
import net.minecraft.client.render.model.ModelLoader;
|
||||
|
@ -47,9 +49,11 @@ import techreborn.items.ItemDynamicCell;
|
|||
import techreborn.items.ItemFrequencyTransmitter;
|
||||
import techreborn.utils.StackWIPHandler;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.Set;
|
||||
import java.util.function.Consumer;
|
||||
import java.util.function.Function;
|
||||
|
||||
public class TechRebornClient implements ClientModInitializer {
|
||||
|
@ -117,6 +121,12 @@ public class TechRebornClient implements ClientModInitializer {
|
|||
GuiBase.fluidCellProvider = ItemDynamicCell::getCellWithFluid;
|
||||
|
||||
StackInfoHUD.registerElement(new ItemFrequencyTransmitter.StackInfoFreqTransmitter());
|
||||
|
||||
Arrays.stream(TRContent.Cables.values()).forEach(cable -> BlockRenderLayerMap.INSTANCE.putBlock(cable.block, BlockRenderLayer.field_9174));
|
||||
|
||||
BlockRenderLayerMap.INSTANCE.putBlock(TRContent.Machine.LAMP_INCANDESCENT.block, BlockRenderLayer.field_9174);
|
||||
BlockRenderLayerMap.INSTANCE.putBlock(TRContent.Machine.LAMP_LED.block, BlockRenderLayer.field_9174);
|
||||
BlockRenderLayerMap.INSTANCE.putBlock(TRContent.Machine.ALARM.block, BlockRenderLayer.field_9174);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -153,11 +153,6 @@ public class BlockAlarm extends BaseBlockEntityProvider {
|
|||
return BlockRenderType.MODEL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public BlockRenderLayer getRenderLayer() {
|
||||
return BlockRenderLayer.CUTOUT;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, EntityContext entityContext) {
|
||||
|
|
|
@ -166,11 +166,6 @@ public class BlockCable extends BlockWithEntity {
|
|||
return ourState.with(getProperty(ourFacing), value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BlockRenderLayer getRenderLayer() {
|
||||
return BlockRenderLayer.CUTOUT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, EntityContext entityContext) {
|
||||
if (type != null) {
|
||||
|
|
|
@ -130,12 +130,6 @@ public class BlockLamp extends BaseBlockEntityProvider {
|
|||
public int getLuminance(BlockState state) {
|
||||
return state.get(ACTIVE) ? brightness : 0;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public BlockRenderLayer getRenderLayer() {
|
||||
return BlockRenderLayer.CUTOUT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public BlockRenderType getRenderType(BlockState state) {
|
||||
|
|
|
@ -85,7 +85,7 @@ public class GuiManual extends Screen {
|
|||
@Override
|
||||
public void render(int mouseX, int mouseY, float partialTicks) {
|
||||
renderBackground();
|
||||
minecraft.getTextureManager().bindTexture(GuiManual.texture);
|
||||
minecraft.getTextureManager().method_22813(GuiManual.texture);
|
||||
int centerX = (width / 2) - guiWidth / 2;
|
||||
int centerY = (height / 2) - guiHeight / 2;
|
||||
blit(centerX, centerY, 0, 0, guiWidth, guiHeight);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue