2019-07-11 19:55:11 +02:00
|
|
|
package com.simibubi.create;
|
|
|
|
|
|
|
|
import java.util.function.Supplier;
|
|
|
|
|
2020-01-05 19:41:38 +01:00
|
|
|
import com.simibubi.create.foundation.behaviour.base.SmartTileEntityRenderer;
|
2019-10-15 22:22:19 +02:00
|
|
|
import com.simibubi.create.foundation.utility.Lang;
|
2019-08-17 00:57:36 +02:00
|
|
|
import com.simibubi.create.modules.contraptions.base.KineticTileEntityRenderer;
|
2019-12-12 10:56:34 +01:00
|
|
|
import com.simibubi.create.modules.contraptions.components.actors.DrillTileEntity;
|
|
|
|
import com.simibubi.create.modules.contraptions.components.actors.DrillTileEntityRenderer;
|
|
|
|
import com.simibubi.create.modules.contraptions.components.actors.HarvesterTileEntity;
|
|
|
|
import com.simibubi.create.modules.contraptions.components.actors.HarvesterTileEntityRenderer;
|
2020-02-05 23:34:23 +01:00
|
|
|
import com.simibubi.create.modules.contraptions.components.clock.CuckooClockRenderer;
|
|
|
|
import com.simibubi.create.modules.contraptions.components.clock.CuckooClockTileEntity;
|
2020-02-15 18:54:23 +01:00
|
|
|
import com.simibubi.create.modules.contraptions.components.contraptions.bearing.BearingTileEntityRenderer;
|
|
|
|
import com.simibubi.create.modules.contraptions.components.contraptions.bearing.ClockworkBearingTileEntity;
|
2019-12-12 11:58:29 +01:00
|
|
|
import com.simibubi.create.modules.contraptions.components.contraptions.bearing.MechanicalBearingTileEntity;
|
|
|
|
import com.simibubi.create.modules.contraptions.components.contraptions.chassis.ChassisTileEntity;
|
|
|
|
import com.simibubi.create.modules.contraptions.components.contraptions.piston.MechanicalPistonTileEntity;
|
|
|
|
import com.simibubi.create.modules.contraptions.components.contraptions.piston.MechanicalPistonTileEntityRenderer;
|
2020-02-15 18:54:23 +01:00
|
|
|
import com.simibubi.create.modules.contraptions.components.contraptions.pulley.PulleyRenderer;
|
|
|
|
import com.simibubi.create.modules.contraptions.components.contraptions.pulley.PulleyTileEntity;
|
2019-12-12 10:56:34 +01:00
|
|
|
import com.simibubi.create.modules.contraptions.components.crafter.MechanicalCrafterTileEntity;
|
|
|
|
import com.simibubi.create.modules.contraptions.components.crafter.MechanicalCrafterTileEntityRenderer;
|
2020-01-28 20:35:46 +01:00
|
|
|
import com.simibubi.create.modules.contraptions.components.crank.HandCrankTileEntity;
|
|
|
|
import com.simibubi.create.modules.contraptions.components.crank.HandCrankTileEntityRenderer;
|
2019-12-12 10:56:34 +01:00
|
|
|
import com.simibubi.create.modules.contraptions.components.crusher.CrushingWheelControllerTileEntity;
|
|
|
|
import com.simibubi.create.modules.contraptions.components.crusher.CrushingWheelTileEntity;
|
2020-01-23 22:23:00 +01:00
|
|
|
import com.simibubi.create.modules.contraptions.components.deployer.DeployerTileEntity;
|
|
|
|
import com.simibubi.create.modules.contraptions.components.deployer.DeployerTileEntityRenderer;
|
2019-12-12 10:56:34 +01:00
|
|
|
import com.simibubi.create.modules.contraptions.components.fan.EncasedFanTileEntity;
|
|
|
|
import com.simibubi.create.modules.contraptions.components.fan.EncasedFanTileEntityRenderer;
|
2020-01-28 20:35:46 +01:00
|
|
|
import com.simibubi.create.modules.contraptions.components.fan.NozzleTileEntity;
|
2020-02-05 12:36:22 +01:00
|
|
|
import com.simibubi.create.modules.contraptions.components.flywheel.FlywheelRenderer;
|
|
|
|
import com.simibubi.create.modules.contraptions.components.flywheel.FlywheelTileEntity;
|
|
|
|
import com.simibubi.create.modules.contraptions.components.flywheel.engine.EngineRenderer;
|
|
|
|
import com.simibubi.create.modules.contraptions.components.flywheel.engine.FurnaceEngineTileEntity;
|
2019-12-12 10:56:34 +01:00
|
|
|
import com.simibubi.create.modules.contraptions.components.mixer.MechanicalMixerTileEntity;
|
|
|
|
import com.simibubi.create.modules.contraptions.components.mixer.MechanicalMixerTileEntityRenderer;
|
|
|
|
import com.simibubi.create.modules.contraptions.components.motor.MotorTileEntity;
|
|
|
|
import com.simibubi.create.modules.contraptions.components.motor.MotorTileEntityRenderer;
|
|
|
|
import com.simibubi.create.modules.contraptions.components.press.MechanicalPressTileEntity;
|
|
|
|
import com.simibubi.create.modules.contraptions.components.press.MechanicalPressTileEntityRenderer;
|
|
|
|
import com.simibubi.create.modules.contraptions.components.saw.SawTileEntity;
|
|
|
|
import com.simibubi.create.modules.contraptions.components.saw.SawTileEntityRenderer;
|
|
|
|
import com.simibubi.create.modules.contraptions.components.turntable.TurntableTileEntity;
|
|
|
|
import com.simibubi.create.modules.contraptions.components.waterwheel.WaterWheelTileEntity;
|
|
|
|
import com.simibubi.create.modules.contraptions.processing.BasinTileEntity;
|
|
|
|
import com.simibubi.create.modules.contraptions.processing.BasinTileEntityRenderer;
|
2020-02-03 00:31:55 +01:00
|
|
|
import com.simibubi.create.modules.contraptions.redstone.AnalogLeverTileEntity;
|
|
|
|
import com.simibubi.create.modules.contraptions.redstone.AnalogLeverTileEntityRenderer;
|
2020-02-28 22:17:40 +01:00
|
|
|
import com.simibubi.create.modules.contraptions.relays.advanced.SpeedControllerRenderer;
|
|
|
|
import com.simibubi.create.modules.contraptions.relays.advanced.SpeedControllerTileEntity;
|
2019-08-31 08:37:57 +02:00
|
|
|
import com.simibubi.create.modules.contraptions.relays.belt.BeltTileEntity;
|
|
|
|
import com.simibubi.create.modules.contraptions.relays.belt.BeltTileEntityRenderer;
|
2019-11-29 10:06:03 +01:00
|
|
|
import com.simibubi.create.modules.contraptions.relays.belt.BeltTunnelTileEntity;
|
|
|
|
import com.simibubi.create.modules.contraptions.relays.belt.BeltTunnelTileEntityRenderer;
|
2019-12-12 10:56:34 +01:00
|
|
|
import com.simibubi.create.modules.contraptions.relays.elementary.ShaftTileEntity;
|
2020-02-03 00:31:55 +01:00
|
|
|
import com.simibubi.create.modules.contraptions.relays.encased.AdjustablePulleyTileEntity;
|
2019-12-12 10:56:34 +01:00
|
|
|
import com.simibubi.create.modules.contraptions.relays.encased.ClutchTileEntity;
|
|
|
|
import com.simibubi.create.modules.contraptions.relays.encased.EncasedShaftTileEntity;
|
|
|
|
import com.simibubi.create.modules.contraptions.relays.encased.EncasedShaftTileEntityRenderer;
|
|
|
|
import com.simibubi.create.modules.contraptions.relays.encased.SplitShaftTileEntityRenderer;
|
2019-12-09 22:58:06 +01:00
|
|
|
import com.simibubi.create.modules.contraptions.relays.gauge.GaugeBlock;
|
|
|
|
import com.simibubi.create.modules.contraptions.relays.gauge.GaugeTileEntityRenderer;
|
|
|
|
import com.simibubi.create.modules.contraptions.relays.gauge.SpeedGaugeTileEntity;
|
|
|
|
import com.simibubi.create.modules.contraptions.relays.gauge.StressGaugeTileEntity;
|
2019-12-12 10:56:34 +01:00
|
|
|
import com.simibubi.create.modules.contraptions.relays.gearbox.GearboxTileEntity;
|
|
|
|
import com.simibubi.create.modules.contraptions.relays.gearbox.GearboxTileEntityRenderer;
|
|
|
|
import com.simibubi.create.modules.contraptions.relays.gearbox.GearshiftTileEntity;
|
2019-09-24 14:40:01 +02:00
|
|
|
import com.simibubi.create.modules.curiosities.partialWindows.WindowInABlockTileEntity;
|
2020-01-05 19:41:38 +01:00
|
|
|
import com.simibubi.create.modules.logistics.block.RedstoneLinkTileEntity;
|
2019-08-27 17:35:34 +02:00
|
|
|
import com.simibubi.create.modules.logistics.block.StockswitchTileEntity;
|
2020-01-05 19:41:38 +01:00
|
|
|
import com.simibubi.create.modules.logistics.block.belts.BeltObserverTileEntity;
|
|
|
|
import com.simibubi.create.modules.logistics.block.belts.BeltObserverTileEntityRenderer;
|
|
|
|
import com.simibubi.create.modules.logistics.block.belts.FunnelTileEntity;
|
2020-01-28 14:41:05 +01:00
|
|
|
import com.simibubi.create.modules.logistics.block.diodes.FlexPulsepeaterTileEntity;
|
2019-09-13 18:36:18 +02:00
|
|
|
import com.simibubi.create.modules.logistics.block.diodes.FlexpeaterTileEntity;
|
|
|
|
import com.simibubi.create.modules.logistics.block.diodes.FlexpeaterTileEntityRenderer;
|
2020-01-05 19:41:38 +01:00
|
|
|
import com.simibubi.create.modules.logistics.block.extractor.ExtractorTileEntity;
|
|
|
|
import com.simibubi.create.modules.logistics.block.extractor.LinkedExtractorTileEntity;
|
2019-10-05 19:00:43 +02:00
|
|
|
import com.simibubi.create.modules.logistics.block.inventories.FlexcrateTileEntity;
|
2020-01-05 19:41:38 +01:00
|
|
|
import com.simibubi.create.modules.logistics.block.transposer.LinkedTransposerTileEntity;
|
|
|
|
import com.simibubi.create.modules.logistics.block.transposer.TransposerTileEntity;
|
2019-07-23 12:54:53 +02:00
|
|
|
import com.simibubi.create.modules.schematics.block.SchematicTableTileEntity;
|
|
|
|
import com.simibubi.create.modules.schematics.block.SchematicannonRenderer;
|
|
|
|
import com.simibubi.create.modules.schematics.block.SchematicannonTileEntity;
|
2019-07-11 19:55:11 +02:00
|
|
|
|
2019-08-06 18:13:33 +02:00
|
|
|
import net.minecraft.block.Block;
|
2019-07-13 12:55:28 +02:00
|
|
|
import net.minecraft.client.renderer.tileentity.TileEntityRenderer;
|
2019-07-11 19:55:11 +02:00
|
|
|
import net.minecraft.tileentity.TileEntity;
|
|
|
|
import net.minecraft.tileentity.TileEntityType;
|
|
|
|
import net.minecraft.util.ResourceLocation;
|
2019-07-15 12:10:57 +02:00
|
|
|
import net.minecraftforge.api.distmarker.Dist;
|
|
|
|
import net.minecraftforge.api.distmarker.OnlyIn;
|
2019-12-05 23:42:01 +01:00
|
|
|
import net.minecraftforge.event.RegistryEvent;
|
2019-07-13 12:55:28 +02:00
|
|
|
import net.minecraftforge.fml.client.registry.ClientRegistry;
|
2019-07-11 19:55:11 +02:00
|
|
|
|
|
|
|
public enum AllTileEntities {
|
|
|
|
|
2019-08-06 18:13:33 +02:00
|
|
|
// Schematics
|
|
|
|
SCHEMATICANNON(SchematicannonTileEntity::new, AllBlocks.SCHEMATICANNON),
|
|
|
|
SCHEMATICTABLE(SchematicTableTileEntity::new, AllBlocks.SCHEMATIC_TABLE),
|
2019-07-11 19:55:11 +02:00
|
|
|
|
2019-08-06 18:13:33 +02:00
|
|
|
// Kinetics
|
2019-08-29 01:51:28 +02:00
|
|
|
SHAFT(ShaftTileEntity::new, AllBlocks.SHAFT, AllBlocks.COGWHEEL, AllBlocks.LARGE_COGWHEEL, AllBlocks.ENCASED_SHAFT),
|
2020-02-08 20:02:14 +01:00
|
|
|
MOTOR(MotorTileEntity::new, AllBlocks.CREATIVE_MOTOR),
|
2019-09-07 13:12:12 +02:00
|
|
|
GEARBOX(GearboxTileEntity::new, AllBlocks.GEARBOX),
|
2019-08-06 18:13:33 +02:00
|
|
|
TURNTABLE(TurntableTileEntity::new, AllBlocks.TURNTABLE),
|
2019-08-29 01:51:28 +02:00
|
|
|
ENCASED_SHAFT(EncasedShaftTileEntity::new, AllBlocks.ENCASED_SHAFT, AllBlocks.ENCASED_BELT),
|
2020-02-03 00:31:55 +01:00
|
|
|
ADJUSTABLE_PULLEY(AdjustablePulleyTileEntity::new, AllBlocks.ADJUSTABLE_PULLEY),
|
2019-09-07 13:12:12 +02:00
|
|
|
ENCASED_FAN(EncasedFanTileEntity::new, AllBlocks.ENCASED_FAN),
|
2020-01-28 20:35:46 +01:00
|
|
|
NOZZLE(NozzleTileEntity::new, AllBlocks.NOZZLE),
|
2019-09-07 13:12:12 +02:00
|
|
|
CLUTCH(ClutchTileEntity::new, AllBlocks.CLUTCH),
|
|
|
|
GEARSHIFT(GearshiftTileEntity::new, AllBlocks.GEARSHIFT),
|
2020-01-28 20:35:46 +01:00
|
|
|
HAND_CRANK(HandCrankTileEntity::new, AllBlocks.HAND_CRANK),
|
2020-02-05 23:34:23 +01:00
|
|
|
CUCKOO_CLOCK(CuckooClockTileEntity::new, AllBlocks.CUCKOO_CLOCK, AllBlocks.MYSTERIOUS_CUCKOO_CLOCK),
|
|
|
|
|
2019-09-07 13:12:12 +02:00
|
|
|
BELT(BeltTileEntity::new, AllBlocks.BELT),
|
2019-11-29 10:06:03 +01:00
|
|
|
BELT_TUNNEL(BeltTunnelTileEntity::new, AllBlocks.BELT_TUNNEL),
|
2019-08-17 00:57:36 +02:00
|
|
|
MECHANICAL_PISTON(MechanicalPistonTileEntity::new, AllBlocks.MECHANICAL_PISTON, AllBlocks.STICKY_MECHANICAL_PISTON),
|
2019-09-07 13:12:12 +02:00
|
|
|
MECHANICAL_BEARING(MechanicalBearingTileEntity::new, AllBlocks.MECHANICAL_BEARING),
|
2020-02-15 18:54:23 +01:00
|
|
|
CLOCKWORK_BEARING(ClockworkBearingTileEntity::new, AllBlocks.CLOCKWORK_BEARING),
|
|
|
|
ROPE_PULLEY(PulleyTileEntity::new, AllBlocks.ROPE_PULLEY),
|
2020-02-28 22:17:40 +01:00
|
|
|
CHASSIS(
|
|
|
|
ChassisTileEntity::new,
|
|
|
|
AllBlocks.ROTATION_CHASSIS,
|
|
|
|
AllBlocks.TRANSLATION_CHASSIS,
|
2019-10-18 13:14:03 +02:00
|
|
|
AllBlocks.TRANSLATION_CHASSIS_SECONDARY),
|
2019-08-17 00:57:36 +02:00
|
|
|
DRILL(DrillTileEntity::new, AllBlocks.DRILL),
|
2019-10-19 23:42:44 +02:00
|
|
|
SAW(SawTileEntity::new, AllBlocks.SAW),
|
2019-10-19 15:42:42 +02:00
|
|
|
HARVESTER(HarvesterTileEntity::new, AllBlocks.HARVESTER),
|
2020-02-05 12:36:22 +01:00
|
|
|
FLYWHEEL(FlywheelTileEntity::new, AllBlocks.FLYWHEEL),
|
|
|
|
FURNACE_ENGINE(FurnaceEngineTileEntity::new, AllBlocks.FURNACE_ENGINE),
|
2019-08-17 00:57:36 +02:00
|
|
|
CRUSHING_WHEEL(CrushingWheelTileEntity::new, AllBlocks.CRUSHING_WHEEL),
|
2019-08-22 15:52:15 +02:00
|
|
|
CRUSHING_WHEEL_CONTROLLER(CrushingWheelControllerTileEntity::new, AllBlocks.CRUSHING_WHEEL_CONTROLLER),
|
2019-08-20 11:37:32 +02:00
|
|
|
WATER_WHEEL(WaterWheelTileEntity::new, AllBlocks.WATER_WHEEL),
|
2019-09-13 18:36:18 +02:00
|
|
|
MECHANICAL_PRESS(MechanicalPressTileEntity::new, AllBlocks.MECHANICAL_PRESS),
|
2019-10-29 19:02:20 +01:00
|
|
|
MECHANICAL_MIXER(MechanicalMixerTileEntity::new, AllBlocks.MECHANICAL_MIXER),
|
2020-01-23 22:23:00 +01:00
|
|
|
DEPLOYER(DeployerTileEntity::new, AllBlocks.DEPLOYER),
|
2019-10-29 19:02:20 +01:00
|
|
|
BASIN(BasinTileEntity::new, AllBlocks.BASIN),
|
2019-11-29 10:06:03 +01:00
|
|
|
MECHANICAL_CRAFTER(MechanicalCrafterTileEntity::new, AllBlocks.MECHANICAL_CRAFTER),
|
2020-02-28 22:17:40 +01:00
|
|
|
ROTATION_SPEED_CONTROLLER(SpeedControllerTileEntity::new, AllBlocks.ROTATION_SPEED_CONTROLLER),
|
2019-12-09 22:58:06 +01:00
|
|
|
SPEED_GAUGE(SpeedGaugeTileEntity::new, AllBlocks.SPEED_GAUGE),
|
|
|
|
STRESS_GAUGE(StressGaugeTileEntity::new, AllBlocks.STRESS_GAUGE),
|
2020-02-03 00:31:55 +01:00
|
|
|
ANALOG_LEVER(AnalogLeverTileEntity::new, AllBlocks.ANALOG_LEVER),
|
2019-08-17 00:57:36 +02:00
|
|
|
|
2019-08-25 10:14:15 +02:00
|
|
|
// Logistics
|
2020-01-05 19:41:38 +01:00
|
|
|
REDSTONE_BRIDGE(RedstoneLinkTileEntity::new, AllBlocks.REDSTONE_BRIDGE),
|
2019-08-26 20:17:16 +02:00
|
|
|
STOCKSWITCH(StockswitchTileEntity::new, AllBlocks.STOCKSWITCH),
|
2019-09-07 13:12:12 +02:00
|
|
|
FLEXCRATE(FlexcrateTileEntity::new, AllBlocks.FLEXCRATE),
|
2019-12-22 01:31:40 +01:00
|
|
|
EXTRACTOR(ExtractorTileEntity::new, AllBlocks.EXTRACTOR, AllBlocks.VERTICAL_EXTRACTOR),
|
|
|
|
LINKED_EXTRACTOR(LinkedExtractorTileEntity::new, AllBlocks.LINKED_EXTRACTOR, AllBlocks.VERTICAL_LINKED_EXTRACTOR),
|
2020-01-05 19:41:38 +01:00
|
|
|
TRANSPOSER(TransposerTileEntity::new, AllBlocks.TRANSPOSER, AllBlocks.VERTICAL_TRANSPOSER),
|
2020-02-28 22:17:40 +01:00
|
|
|
LINKED_TRANSPOSER(
|
|
|
|
LinkedTransposerTileEntity::new,
|
|
|
|
AllBlocks.LINKED_TRANSPOSER,
|
2020-01-05 19:41:38 +01:00
|
|
|
AllBlocks.VERTICAL_LINKED_TRANSPOSER),
|
|
|
|
BELT_FUNNEL(FunnelTileEntity::new, AllBlocks.BELT_FUNNEL, AllBlocks.VERTICAL_FUNNEL),
|
|
|
|
ENTITY_DETECTOR(BeltObserverTileEntity::new, AllBlocks.ENTITY_DETECTOR),
|
2019-09-13 18:36:18 +02:00
|
|
|
FLEXPEATER(FlexpeaterTileEntity::new, AllBlocks.FLEXPEATER),
|
2020-01-28 14:41:05 +01:00
|
|
|
FLEXPULSEPEATER(FlexPulsepeaterTileEntity::new, AllBlocks.FLEXPULSEPEATER),
|
2019-10-11 05:56:32 +02:00
|
|
|
|
2019-09-24 14:40:01 +02:00
|
|
|
// Curiosities
|
|
|
|
WINDOW_IN_A_BLOCK(WindowInABlockTileEntity::new, AllBlocks.WINDOW_IN_A_BLOCK),
|
2019-08-28 19:45:41 +02:00
|
|
|
|
2019-08-26 20:21:03 +02:00
|
|
|
;
|
2019-08-28 19:45:41 +02:00
|
|
|
|
2019-07-11 19:55:11 +02:00
|
|
|
private Supplier<? extends TileEntity> supplier;
|
|
|
|
public TileEntityType<?> type;
|
2019-08-06 18:13:33 +02:00
|
|
|
private AllBlocks[] blocks;
|
2019-07-11 19:55:11 +02:00
|
|
|
|
2019-08-06 18:13:33 +02:00
|
|
|
private AllTileEntities(Supplier<? extends TileEntity> supplier, AllBlocks... blocks) {
|
2019-07-11 19:55:11 +02:00
|
|
|
this.supplier = supplier;
|
2019-08-06 18:13:33 +02:00
|
|
|
this.blocks = blocks;
|
2019-07-11 19:55:11 +02:00
|
|
|
}
|
2019-10-18 13:14:03 +02:00
|
|
|
|
2019-10-11 05:56:32 +02:00
|
|
|
public boolean typeOf(TileEntity te) {
|
|
|
|
return te.getType().equals(type);
|
|
|
|
}
|
2019-07-11 19:55:11 +02:00
|
|
|
|
2019-12-05 23:42:01 +01:00
|
|
|
public static void register(RegistryEvent.Register<TileEntityType<?>> event) {
|
2019-07-11 19:55:11 +02:00
|
|
|
for (AllTileEntities tileEntity : values()) {
|
2019-08-06 18:13:33 +02:00
|
|
|
Block[] blocks = new Block[tileEntity.blocks.length];
|
|
|
|
for (int i = 0; i < blocks.length; i++)
|
|
|
|
blocks[i] = tileEntity.blocks[i].block;
|
2019-08-17 00:57:36 +02:00
|
|
|
|
2019-10-15 22:22:19 +02:00
|
|
|
ResourceLocation resourceLocation = new ResourceLocation(Create.ID, Lang.asId(tileEntity.name()));
|
2019-08-06 18:13:33 +02:00
|
|
|
tileEntity.type = TileEntityType.Builder.create(tileEntity.supplier, blocks).build(null)
|
2019-07-11 19:55:11 +02:00
|
|
|
.setRegistryName(resourceLocation);
|
2019-12-05 23:42:01 +01:00
|
|
|
event.getRegistry().register(tileEntity.type);
|
2019-07-11 19:55:11 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-15 12:10:57 +02:00
|
|
|
@OnlyIn(Dist.CLIENT)
|
2019-07-11 19:55:11 +02:00
|
|
|
public static void registerRenderers() {
|
2019-07-13 12:55:28 +02:00
|
|
|
bind(SchematicannonTileEntity.class, new SchematicannonRenderer());
|
2020-01-05 19:41:38 +01:00
|
|
|
|
2019-08-29 01:51:28 +02:00
|
|
|
bind(ShaftTileEntity.class, new KineticTileEntityRenderer());
|
2019-08-06 18:13:33 +02:00
|
|
|
bind(TurntableTileEntity.class, new KineticTileEntityRenderer());
|
|
|
|
bind(MotorTileEntity.class, new MotorTileEntityRenderer());
|
2019-08-29 01:51:28 +02:00
|
|
|
bind(EncasedShaftTileEntity.class, new EncasedShaftTileEntityRenderer());
|
2020-02-03 00:31:55 +01:00
|
|
|
bind(AdjustablePulleyTileEntity.class, new EncasedShaftTileEntityRenderer());
|
2019-10-19 15:42:42 +02:00
|
|
|
bind(DrillTileEntity.class, new DrillTileEntityRenderer());
|
2019-10-19 23:42:44 +02:00
|
|
|
bind(SawTileEntity.class, new SawTileEntityRenderer());
|
2019-08-29 01:51:28 +02:00
|
|
|
bind(EncasedFanTileEntity.class, new EncasedFanTileEntityRenderer());
|
2019-08-06 18:13:33 +02:00
|
|
|
bind(GearboxTileEntity.class, new GearboxTileEntityRenderer());
|
2019-08-29 01:51:28 +02:00
|
|
|
bind(GearshiftTileEntity.class, new SplitShaftTileEntityRenderer());
|
|
|
|
bind(ClutchTileEntity.class, new SplitShaftTileEntityRenderer());
|
2019-08-10 01:00:36 +02:00
|
|
|
bind(BeltTileEntity.class, new BeltTileEntityRenderer());
|
2020-01-05 19:41:38 +01:00
|
|
|
bind(WaterWheelTileEntity.class, new KineticTileEntityRenderer());
|
2020-01-28 20:35:46 +01:00
|
|
|
bind(HandCrankTileEntity.class, new HandCrankTileEntityRenderer());
|
2020-02-05 23:34:23 +01:00
|
|
|
bind(CuckooClockTileEntity.class, new CuckooClockRenderer());
|
2020-02-03 00:31:55 +01:00
|
|
|
bind(AnalogLeverTileEntity.class, new AnalogLeverTileEntityRenderer());
|
2020-01-05 19:41:38 +01:00
|
|
|
|
2019-08-17 00:57:36 +02:00
|
|
|
bind(MechanicalPistonTileEntity.class, new MechanicalPistonTileEntityRenderer());
|
2020-02-15 18:54:23 +01:00
|
|
|
bind(MechanicalBearingTileEntity.class, new BearingTileEntityRenderer());
|
|
|
|
bind(ClockworkBearingTileEntity.class, new BearingTileEntityRenderer());
|
|
|
|
bind(PulleyTileEntity.class, new PulleyRenderer());
|
2020-01-05 19:41:38 +01:00
|
|
|
bind(HarvesterTileEntity.class, new HarvesterTileEntityRenderer());
|
|
|
|
|
2019-08-17 00:57:36 +02:00
|
|
|
bind(CrushingWheelTileEntity.class, new KineticTileEntityRenderer());
|
2019-09-13 18:36:18 +02:00
|
|
|
bind(MechanicalPressTileEntity.class, new MechanicalPressTileEntityRenderer());
|
2019-10-29 19:02:20 +01:00
|
|
|
bind(MechanicalMixerTileEntity.class, new MechanicalMixerTileEntityRenderer());
|
2019-11-30 00:27:03 +01:00
|
|
|
bind(MechanicalCrafterTileEntity.class, new MechanicalCrafterTileEntityRenderer());
|
2019-12-09 22:58:06 +01:00
|
|
|
bind(SpeedGaugeTileEntity.class, new GaugeTileEntityRenderer(GaugeBlock.Type.SPEED));
|
|
|
|
bind(StressGaugeTileEntity.class, new GaugeTileEntityRenderer(GaugeBlock.Type.STRESS));
|
2020-01-05 19:41:38 +01:00
|
|
|
bind(BasinTileEntity.class, new BasinTileEntityRenderer());
|
2020-01-23 22:23:00 +01:00
|
|
|
bind(DeployerTileEntity.class, new DeployerTileEntityRenderer());
|
2020-02-05 12:36:22 +01:00
|
|
|
bind(FlywheelTileEntity.class, new FlywheelRenderer());
|
|
|
|
bind(FurnaceEngineTileEntity.class, new EngineRenderer<>());
|
2020-02-28 22:17:40 +01:00
|
|
|
bind(SpeedControllerTileEntity.class, new SpeedControllerRenderer());
|
2020-01-05 19:41:38 +01:00
|
|
|
|
|
|
|
bind(RedstoneLinkTileEntity.class, new SmartTileEntityRenderer<>());
|
|
|
|
bind(ExtractorTileEntity.class, new SmartTileEntityRenderer<>());
|
|
|
|
bind(LinkedExtractorTileEntity.class, new SmartTileEntityRenderer<>());
|
|
|
|
bind(TransposerTileEntity.class, new SmartTileEntityRenderer<>());
|
|
|
|
bind(LinkedTransposerTileEntity.class, new SmartTileEntityRenderer<>());
|
|
|
|
bind(FunnelTileEntity.class, new SmartTileEntityRenderer<>());
|
|
|
|
bind(BeltTunnelTileEntity.class, new BeltTunnelTileEntityRenderer());
|
|
|
|
bind(BeltObserverTileEntity.class, new BeltObserverTileEntityRenderer());
|
|
|
|
bind(FlexpeaterTileEntity.class, new FlexpeaterTileEntityRenderer());
|
2020-02-03 00:31:55 +01:00
|
|
|
|
2020-01-26 23:58:55 +01:00
|
|
|
// bind(LogisticalControllerTileEntity.class, new LogisticalControllerTileEntityRenderer());
|
|
|
|
// bind(LogisticiansTableTileEntity.class, new LogisticiansTableTileEntityRenderer());
|
2019-07-11 19:55:11 +02:00
|
|
|
}
|
|
|
|
|
2019-07-15 12:10:57 +02:00
|
|
|
@OnlyIn(Dist.CLIENT)
|
2019-07-13 12:55:28 +02:00
|
|
|
private static <T extends TileEntity> void bind(Class<T> clazz, TileEntityRenderer<? super T> renderer) {
|
|
|
|
ClientRegistry.bindTileEntitySpecialRenderer(clazz, renderer);
|
|
|
|
}
|
2019-07-11 19:55:11 +02:00
|
|
|
|
|
|
|
}
|