2019-07-11 19:55:11 +02:00
|
|
|
package com.simibubi.create;
|
|
|
|
|
2020-03-29 04:10:23 +02:00
|
|
|
import java.util.function.Function;
|
2019-07-11 19:55:11 +02:00
|
|
|
|
2020-05-23 14:02:38 +02:00
|
|
|
import com.simibubi.create.content.contraptions.base.KineticTileEntityRenderer;
|
2020-05-25 23:09:36 +02:00
|
|
|
import com.simibubi.create.content.contraptions.components.actors.DrillRenderer;
|
2020-05-28 01:29:26 +02:00
|
|
|
import com.simibubi.create.content.contraptions.components.actors.DrillTileEntity;
|
2020-05-23 14:02:38 +02:00
|
|
|
import com.simibubi.create.content.contraptions.components.actors.HarvesterRenderer;
|
|
|
|
import com.simibubi.create.content.contraptions.components.actors.HarvesterTileEntity;
|
|
|
|
import com.simibubi.create.content.contraptions.components.clock.CuckooClockRenderer;
|
|
|
|
import com.simibubi.create.content.contraptions.components.clock.CuckooClockTileEntity;
|
2020-05-25 23:09:36 +02:00
|
|
|
import com.simibubi.create.content.contraptions.components.crafter.MechanicalCrafterRenderer;
|
2020-05-28 01:29:26 +02:00
|
|
|
import com.simibubi.create.content.contraptions.components.crafter.MechanicalCrafterTileEntity;
|
2020-05-25 23:09:36 +02:00
|
|
|
import com.simibubi.create.content.contraptions.components.crank.HandCrankRenderer;
|
2020-05-28 01:29:26 +02:00
|
|
|
import com.simibubi.create.content.contraptions.components.crank.HandCrankTileEntity;
|
2020-05-23 14:02:38 +02:00
|
|
|
import com.simibubi.create.content.contraptions.components.crusher.CrushingWheelControllerTileEntity;
|
|
|
|
import com.simibubi.create.content.contraptions.components.crusher.CrushingWheelTileEntity;
|
2020-05-25 23:09:36 +02:00
|
|
|
import com.simibubi.create.content.contraptions.components.deployer.DeployerRenderer;
|
2020-05-28 01:29:26 +02:00
|
|
|
import com.simibubi.create.content.contraptions.components.deployer.DeployerTileEntity;
|
2020-05-25 23:09:36 +02:00
|
|
|
import com.simibubi.create.content.contraptions.components.fan.EncasedFanRenderer;
|
2020-05-28 01:29:26 +02:00
|
|
|
import com.simibubi.create.content.contraptions.components.fan.EncasedFanTileEntity;
|
2020-05-23 14:02:38 +02:00
|
|
|
import com.simibubi.create.content.contraptions.components.fan.NozzleTileEntity;
|
|
|
|
import com.simibubi.create.content.contraptions.components.flywheel.FlywheelRenderer;
|
|
|
|
import com.simibubi.create.content.contraptions.components.flywheel.FlywheelTileEntity;
|
|
|
|
import com.simibubi.create.content.contraptions.components.flywheel.engine.EngineRenderer;
|
|
|
|
import com.simibubi.create.content.contraptions.components.flywheel.engine.FurnaceEngineTileEntity;
|
|
|
|
import com.simibubi.create.content.contraptions.components.millstone.MillstoneRenderer;
|
|
|
|
import com.simibubi.create.content.contraptions.components.millstone.MillstoneTileEntity;
|
2020-05-25 23:09:36 +02:00
|
|
|
import com.simibubi.create.content.contraptions.components.mixer.MechanicalMixerRenderer;
|
2020-05-28 01:29:26 +02:00
|
|
|
import com.simibubi.create.content.contraptions.components.mixer.MechanicalMixerTileEntity;
|
2020-05-25 23:09:36 +02:00
|
|
|
import com.simibubi.create.content.contraptions.components.motor.CreativeMotorRenderer;
|
2020-05-28 01:29:26 +02:00
|
|
|
import com.simibubi.create.content.contraptions.components.motor.CreativeMotorTileEntity;
|
2020-05-25 23:09:36 +02:00
|
|
|
import com.simibubi.create.content.contraptions.components.press.MechanicalPressRenderer;
|
2020-05-28 01:29:26 +02:00
|
|
|
import com.simibubi.create.content.contraptions.components.press.MechanicalPressTileEntity;
|
2020-05-25 23:09:36 +02:00
|
|
|
import com.simibubi.create.content.contraptions.components.saw.SawRenderer;
|
2020-05-28 01:29:26 +02:00
|
|
|
import com.simibubi.create.content.contraptions.components.saw.SawTileEntity;
|
2020-05-25 23:09:36 +02:00
|
|
|
import com.simibubi.create.content.contraptions.components.structureMovement.bearing.BearingRenderer;
|
2020-05-23 14:02:38 +02:00
|
|
|
import com.simibubi.create.content.contraptions.components.structureMovement.bearing.ClockworkBearingTileEntity;
|
|
|
|
import com.simibubi.create.content.contraptions.components.structureMovement.bearing.MechanicalBearingTileEntity;
|
|
|
|
import com.simibubi.create.content.contraptions.components.structureMovement.chassis.ChassisTileEntity;
|
|
|
|
import com.simibubi.create.content.contraptions.components.structureMovement.mounted.CartAssemblerTileEntity;
|
2020-05-25 23:09:36 +02:00
|
|
|
import com.simibubi.create.content.contraptions.components.structureMovement.piston.MechanicalPistonRenderer;
|
2020-05-28 01:29:26 +02:00
|
|
|
import com.simibubi.create.content.contraptions.components.structureMovement.piston.MechanicalPistonTileEntity;
|
2020-05-23 14:02:38 +02:00
|
|
|
import com.simibubi.create.content.contraptions.components.structureMovement.pulley.PulleyRenderer;
|
|
|
|
import com.simibubi.create.content.contraptions.components.structureMovement.pulley.PulleyTileEntity;
|
|
|
|
import com.simibubi.create.content.contraptions.components.turntable.TurntableTileEntity;
|
|
|
|
import com.simibubi.create.content.contraptions.components.waterwheel.WaterWheelTileEntity;
|
2020-06-15 02:25:33 +02:00
|
|
|
import com.simibubi.create.content.contraptions.fluids.PumpRenderer;
|
|
|
|
import com.simibubi.create.content.contraptions.fluids.PumpTileEntity;
|
2020-05-25 23:09:36 +02:00
|
|
|
import com.simibubi.create.content.contraptions.processing.BasinRenderer;
|
2020-05-28 01:29:26 +02:00
|
|
|
import com.simibubi.create.content.contraptions.processing.BasinTileEntity;
|
2020-05-23 14:02:38 +02:00
|
|
|
import com.simibubi.create.content.contraptions.relays.advanced.SpeedControllerRenderer;
|
|
|
|
import com.simibubi.create.content.contraptions.relays.advanced.SpeedControllerTileEntity;
|
|
|
|
import com.simibubi.create.content.contraptions.relays.advanced.sequencer.SequencedGearshiftTileEntity;
|
2020-05-25 23:09:36 +02:00
|
|
|
import com.simibubi.create.content.contraptions.relays.belt.BeltRenderer;
|
2020-05-28 01:29:26 +02:00
|
|
|
import com.simibubi.create.content.contraptions.relays.belt.BeltTileEntity;
|
2020-05-23 14:02:38 +02:00
|
|
|
import com.simibubi.create.content.contraptions.relays.elementary.SimpleKineticTileEntity;
|
|
|
|
import com.simibubi.create.content.contraptions.relays.encased.AdjustablePulleyTileEntity;
|
|
|
|
import com.simibubi.create.content.contraptions.relays.encased.ClutchTileEntity;
|
2020-05-25 23:09:36 +02:00
|
|
|
import com.simibubi.create.content.contraptions.relays.encased.EncasedShaftRenderer;
|
2020-05-28 01:29:26 +02:00
|
|
|
import com.simibubi.create.content.contraptions.relays.encased.EncasedShaftTileEntity;
|
2020-05-25 23:09:36 +02:00
|
|
|
import com.simibubi.create.content.contraptions.relays.encased.SplitShaftRenderer;
|
|
|
|
import com.simibubi.create.content.contraptions.relays.gauge.GaugeRenderer;
|
2020-05-23 14:02:38 +02:00
|
|
|
import com.simibubi.create.content.contraptions.relays.gauge.SpeedGaugeTileEntity;
|
|
|
|
import com.simibubi.create.content.contraptions.relays.gauge.StressGaugeTileEntity;
|
2020-05-25 23:09:36 +02:00
|
|
|
import com.simibubi.create.content.contraptions.relays.gearbox.GearboxRenderer;
|
2020-05-28 01:29:26 +02:00
|
|
|
import com.simibubi.create.content.contraptions.relays.gearbox.GearboxTileEntity;
|
2020-05-23 14:02:38 +02:00
|
|
|
import com.simibubi.create.content.contraptions.relays.gearbox.GearshiftTileEntity;
|
2020-05-25 23:09:36 +02:00
|
|
|
import com.simibubi.create.content.logistics.block.belts.observer.BeltObserverRenderer;
|
2020-05-28 01:29:26 +02:00
|
|
|
import com.simibubi.create.content.logistics.block.belts.observer.BeltObserverTileEntity;
|
2020-05-25 23:09:36 +02:00
|
|
|
import com.simibubi.create.content.logistics.block.belts.tunnel.BeltTunnelRenderer;
|
2020-05-28 01:29:26 +02:00
|
|
|
import com.simibubi.create.content.logistics.block.belts.tunnel.BeltTunnelTileEntity;
|
2020-05-23 14:02:38 +02:00
|
|
|
import com.simibubi.create.content.logistics.block.diodes.AdjustablePulseRepeaterTileEntity;
|
|
|
|
import com.simibubi.create.content.logistics.block.diodes.AdjustableRepeaterRenderer;
|
|
|
|
import com.simibubi.create.content.logistics.block.diodes.AdjustableRepeaterTileEntity;
|
|
|
|
import com.simibubi.create.content.logistics.block.extractor.ExtractorTileEntity;
|
|
|
|
import com.simibubi.create.content.logistics.block.extractor.LinkedExtractorTileEntity;
|
|
|
|
import com.simibubi.create.content.logistics.block.funnel.FunnelTileEntity;
|
|
|
|
import com.simibubi.create.content.logistics.block.inventories.AdjustableCrateTileEntity;
|
|
|
|
import com.simibubi.create.content.logistics.block.inventories.CreativeCrateTileEntity;
|
2020-05-25 23:09:36 +02:00
|
|
|
import com.simibubi.create.content.logistics.block.redstone.AnalogLeverRenderer;
|
2020-05-28 01:29:26 +02:00
|
|
|
import com.simibubi.create.content.logistics.block.redstone.AnalogLeverTileEntity;
|
2020-06-05 23:26:22 +02:00
|
|
|
import com.simibubi.create.content.logistics.block.redstone.NixieTubeRenderer;
|
|
|
|
import com.simibubi.create.content.logistics.block.redstone.NixieTubeTileEntity;
|
2020-05-23 14:02:38 +02:00
|
|
|
import com.simibubi.create.content.logistics.block.redstone.RedstoneLinkTileEntity;
|
|
|
|
import com.simibubi.create.content.logistics.block.redstone.StockpileSwitchTileEntity;
|
|
|
|
import com.simibubi.create.content.logistics.block.transposer.LinkedTransposerTileEntity;
|
|
|
|
import com.simibubi.create.content.logistics.block.transposer.TransposerTileEntity;
|
|
|
|
import com.simibubi.create.content.schematics.block.SchematicTableTileEntity;
|
|
|
|
import com.simibubi.create.content.schematics.block.SchematicannonRenderer;
|
|
|
|
import com.simibubi.create.content.schematics.block.SchematicannonTileEntity;
|
|
|
|
import com.simibubi.create.foundation.tileEntity.renderer.SmartTileEntityRenderer;
|
2020-06-01 06:33:08 +02:00
|
|
|
import com.tterrag.registrate.util.entry.TileEntityEntry;
|
|
|
|
import com.tterrag.registrate.util.nullness.NonNullFunction;
|
|
|
|
import com.tterrag.registrate.util.nullness.NonNullSupplier;
|
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;
|
2020-03-29 04:10:23 +02:00
|
|
|
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
|
2019-07-11 19:55:11 +02:00
|
|
|
import net.minecraft.tileentity.TileEntity;
|
|
|
|
import net.minecraft.tileentity.TileEntityType;
|
2019-07-15 12:10:57 +02:00
|
|
|
import net.minecraftforge.api.distmarker.Dist;
|
|
|
|
import net.minecraftforge.api.distmarker.OnlyIn;
|
2019-07-13 12:55:28 +02:00
|
|
|
import net.minecraftforge.fml.client.registry.ClientRegistry;
|
2019-07-11 19:55:11 +02:00
|
|
|
|
2020-06-01 06:33:08 +02:00
|
|
|
public class AllTileEntities {
|
2019-07-11 19:55:11 +02:00
|
|
|
|
2019-08-06 18:13:33 +02:00
|
|
|
// Schematics
|
2020-06-05 23:26:22 +02:00
|
|
|
public static final TileEntityEntry<SchematicannonTileEntity> SCHEMATICANNON =
|
|
|
|
register("schematicannon", SchematicannonTileEntity::new, AllBlocks.SCHEMATICANNON);
|
|
|
|
public static final TileEntityEntry<SchematicTableTileEntity> SCHEMATIC_TABLE =
|
|
|
|
register("schematic_table", SchematicTableTileEntity::new, AllBlocks.SCHEMATIC_TABLE);
|
2019-07-11 19:55:11 +02:00
|
|
|
|
2019-08-06 18:13:33 +02:00
|
|
|
// Kinetics
|
2020-06-05 23:26:22 +02:00
|
|
|
public static final TileEntityEntry<SimpleKineticTileEntity> SIMPLE_KINETIC =
|
|
|
|
register("simple_kinetic", SimpleKineticTileEntity::new, AllBlocks.SHAFT, AllBlocks.COGWHEEL,
|
2020-06-01 06:33:08 +02:00
|
|
|
AllBlocks.LARGE_COGWHEEL, AllBlocks.ENCASED_SHAFT);
|
2020-06-05 23:26:22 +02:00
|
|
|
public static final TileEntityEntry<CreativeMotorTileEntity> MOTOR =
|
|
|
|
register("motor", CreativeMotorTileEntity::new, AllBlocks.CREATIVE_MOTOR);
|
|
|
|
public static final TileEntityEntry<GearboxTileEntity> GEARBOX =
|
|
|
|
register("gearbox", GearboxTileEntity::new, AllBlocks.GEARBOX);
|
|
|
|
public static final TileEntityEntry<EncasedShaftTileEntity> ENCASED_SHAFT =
|
|
|
|
register("encased_shaft", EncasedShaftTileEntity::new, AllBlocks.ENCASED_SHAFT, AllBlocks.ENCASED_BELT);
|
|
|
|
public static final TileEntityEntry<AdjustablePulleyTileEntity> ADJUSTABLE_PULLEY =
|
|
|
|
register("adjustable_pulley", AdjustablePulleyTileEntity::new, AllBlocks.ADJUSTABLE_PULLEY);
|
|
|
|
public static final TileEntityEntry<EncasedFanTileEntity> ENCASED_FAN =
|
|
|
|
register("encased_fan", EncasedFanTileEntity::new, AllBlocks.ENCASED_FAN);
|
|
|
|
public static final TileEntityEntry<NozzleTileEntity> NOZZLE =
|
|
|
|
register("nozzle", NozzleTileEntity::new, AllBlocks.NOZZLE);
|
|
|
|
public static final TileEntityEntry<ClutchTileEntity> CLUTCH =
|
|
|
|
register("clutch", ClutchTileEntity::new, AllBlocks.CLUTCH);
|
|
|
|
public static final TileEntityEntry<GearshiftTileEntity> GEARSHIFT =
|
|
|
|
register("gearshift", GearshiftTileEntity::new, AllBlocks.GEARSHIFT);
|
|
|
|
public static final TileEntityEntry<TurntableTileEntity> TURNTABLE =
|
|
|
|
register("turntable", TurntableTileEntity::new, AllBlocks.TURNTABLE);
|
|
|
|
public static final TileEntityEntry<HandCrankTileEntity> HAND_CRANK =
|
|
|
|
register("hand_crank", HandCrankTileEntity::new, AllBlocks.HAND_CRANK);
|
|
|
|
public static final TileEntityEntry<CuckooClockTileEntity> CUCKOO_CLOCK =
|
|
|
|
register("cuckoo_clock", CuckooClockTileEntity::new, AllBlocks.CUCKOO_CLOCK, AllBlocks.MYSTERIOUS_CUCKOO_CLOCK);
|
2020-05-22 20:12:53 +02:00
|
|
|
|
2020-06-15 02:25:33 +02:00
|
|
|
public static final TileEntityEntry<PumpTileEntity> MECHANICAL_PUMP =
|
|
|
|
register("mechanical_pump", PumpTileEntity::new, AllBlocks.MECHANICAL_PUMP);
|
|
|
|
|
2020-06-05 23:26:22 +02:00
|
|
|
public static final TileEntityEntry<BeltTileEntity> BELT = register("belt", BeltTileEntity::new, AllBlocks.BELT);
|
|
|
|
public static final TileEntityEntry<BeltTunnelTileEntity> BELT_TUNNEL =
|
|
|
|
register("belt_tunnel", BeltTunnelTileEntity::new, AllBlocks.BELT_TUNNEL);
|
|
|
|
public static final TileEntityEntry<MechanicalPistonTileEntity> MECHANICAL_PISTON = register("mechanical_piston",
|
|
|
|
MechanicalPistonTileEntity::new, AllBlocks.MECHANICAL_PISTON, AllBlocks.STICKY_MECHANICAL_PISTON);
|
|
|
|
public static final TileEntityEntry<MechanicalBearingTileEntity> MECHANICAL_BEARING =
|
|
|
|
register("mechanical_bearing", MechanicalBearingTileEntity::new, AllBlocks.MECHANICAL_BEARING);
|
|
|
|
public static final TileEntityEntry<ClockworkBearingTileEntity> CLOCKWORK_BEARING =
|
|
|
|
register("clockwork_bearing", ClockworkBearingTileEntity::new, AllBlocks.CLOCKWORK_BEARING);
|
|
|
|
public static final TileEntityEntry<PulleyTileEntity> ROPE_PULLEY =
|
|
|
|
register("rope_pulley", PulleyTileEntity::new, AllBlocks.ROPE_PULLEY);
|
|
|
|
public static final TileEntityEntry<ChassisTileEntity> CHASSIS = register("chassis", ChassisTileEntity::new,
|
|
|
|
AllBlocks.RADIAL_CHASSIS, AllBlocks.LINEAR_CHASSIS, AllBlocks.SECONDARY_LINEAR_CHASSIS);
|
|
|
|
public static final TileEntityEntry<DrillTileEntity> DRILL =
|
|
|
|
register("drill", DrillTileEntity::new, AllBlocks.MECHANICAL_DRILL);
|
|
|
|
public static final TileEntityEntry<SawTileEntity> SAW =
|
|
|
|
register("saw", SawTileEntity::new, AllBlocks.MECHANICAL_SAW);
|
|
|
|
public static final TileEntityEntry<HarvesterTileEntity> HARVESTER =
|
|
|
|
register("harvester", HarvesterTileEntity::new, AllBlocks.MECHANICAL_HARVESTER);
|
|
|
|
public static final TileEntityEntry<FlywheelTileEntity> FLYWHEEL =
|
|
|
|
register("flywheel", FlywheelTileEntity::new, AllBlocks.FLYWHEEL);
|
|
|
|
public static final TileEntityEntry<FurnaceEngineTileEntity> FURNACE_ENGINE =
|
|
|
|
register("furnace_engine", FurnaceEngineTileEntity::new, AllBlocks.FURNACE_ENGINE);
|
2020-05-22 20:12:53 +02:00
|
|
|
|
2020-06-05 23:26:22 +02:00
|
|
|
public static final TileEntityEntry<MillstoneTileEntity> MILLSTONE =
|
|
|
|
register("millstone", MillstoneTileEntity::new, AllBlocks.MILLSTONE);
|
|
|
|
public static final TileEntityEntry<CrushingWheelTileEntity> CRUSHING_WHEEL =
|
|
|
|
register("crushing_wheel", CrushingWheelTileEntity::new, AllBlocks.CRUSHING_WHEEL);
|
2020-06-01 06:33:08 +02:00
|
|
|
public static final TileEntityEntry<CrushingWheelControllerTileEntity> CRUSHING_WHEEL_CONTROLLER = register(
|
2020-06-05 23:26:22 +02:00
|
|
|
"crushing_wheel_controller", CrushingWheelControllerTileEntity::new, AllBlocks.CRUSHING_WHEEL_CONTROLLER);
|
|
|
|
public static final TileEntityEntry<WaterWheelTileEntity> WATER_WHEEL =
|
|
|
|
register("water_wheel", WaterWheelTileEntity::new, AllBlocks.WATER_WHEEL);
|
|
|
|
public static final TileEntityEntry<MechanicalPressTileEntity> MECHANICAL_PRESS =
|
|
|
|
register("mechanical_press", MechanicalPressTileEntity::new, AllBlocks.MECHANICAL_PRESS);
|
|
|
|
public static final TileEntityEntry<MechanicalMixerTileEntity> MECHANICAL_MIXER =
|
|
|
|
register("mechanical_mixer", MechanicalMixerTileEntity::new, AllBlocks.MECHANICAL_MIXER);
|
|
|
|
public static final TileEntityEntry<DeployerTileEntity> DEPLOYER =
|
|
|
|
register("deployer", DeployerTileEntity::new, AllBlocks.DEPLOYER);
|
|
|
|
public static final TileEntityEntry<BasinTileEntity> BASIN =
|
|
|
|
register("basin", BasinTileEntity::new, AllBlocks.BASIN);
|
|
|
|
public static final TileEntityEntry<MechanicalCrafterTileEntity> MECHANICAL_CRAFTER =
|
|
|
|
register("mechanical_crafter", MechanicalCrafterTileEntity::new, AllBlocks.MECHANICAL_CRAFTER);
|
|
|
|
public static final TileEntityEntry<SequencedGearshiftTileEntity> SEQUENCED_GEARSHIFT =
|
|
|
|
register("sequenced_gearshift", SequencedGearshiftTileEntity::new, AllBlocks.SEQUENCED_GEARSHIFT);
|
|
|
|
public static final TileEntityEntry<SpeedControllerTileEntity> ROTATION_SPEED_CONTROLLER =
|
|
|
|
register("rotation_speed_controller", SpeedControllerTileEntity::new, AllBlocks.ROTATION_SPEED_CONTROLLER);
|
|
|
|
public static final TileEntityEntry<SpeedGaugeTileEntity> SPEEDOMETER =
|
|
|
|
register("speedometer", SpeedGaugeTileEntity::new, AllBlocks.SPEEDOMETER);
|
|
|
|
public static final TileEntityEntry<StressGaugeTileEntity> STRESSOMETER =
|
|
|
|
register("stressometer", StressGaugeTileEntity::new, AllBlocks.STRESSOMETER);
|
|
|
|
public static final TileEntityEntry<AnalogLeverTileEntity> ANALOG_LEVER =
|
|
|
|
register("analog_lever", AnalogLeverTileEntity::new, AllBlocks.ANALOG_LEVER);
|
|
|
|
public static final TileEntityEntry<CartAssemblerTileEntity> CART_ASSEMBLER =
|
|
|
|
register("cart_assembler", CartAssemblerTileEntity::new, AllBlocks.CART_ASSEMBLER);
|
2019-08-17 00:57:36 +02:00
|
|
|
|
2019-08-25 10:14:15 +02:00
|
|
|
// Logistics
|
2020-06-05 23:26:22 +02:00
|
|
|
public static final TileEntityEntry<RedstoneLinkTileEntity> REDSTONE_LINK =
|
|
|
|
register("redstone_link", RedstoneLinkTileEntity::new, AllBlocks.REDSTONE_LINK);
|
|
|
|
public static final TileEntityEntry<NixieTubeTileEntity> NIXIE_TUBE =
|
|
|
|
register("nixie_tube", NixieTubeTileEntity::new, AllBlocks.NIXIE_TUBE);
|
|
|
|
public static final TileEntityEntry<StockpileSwitchTileEntity> STOCKPILE_SWITCH =
|
|
|
|
register("stockpile_switch", StockpileSwitchTileEntity::new, AllBlocks.STOCKPILE_SWITCH);
|
|
|
|
public static final TileEntityEntry<AdjustableCrateTileEntity> ADJUSTABLE_CRATE =
|
|
|
|
register("adjustable_crate", AdjustableCrateTileEntity::new, AllBlocks.ADJUSTABLE_CRATE);
|
|
|
|
public static final TileEntityEntry<CreativeCrateTileEntity> CREATIVE_CRATE =
|
|
|
|
register("creative_crate", CreativeCrateTileEntity::new, AllBlocks.CREATIVE_CRATE);
|
|
|
|
public static final TileEntityEntry<ExtractorTileEntity> EXTRACTOR =
|
|
|
|
register("extractor", ExtractorTileEntity::new, AllBlocks.EXTRACTOR, AllBlocks.VERTICAL_EXTRACTOR);
|
|
|
|
public static final TileEntityEntry<LinkedExtractorTileEntity> LINKED_EXTRACTOR = register("linked_extractor",
|
|
|
|
LinkedExtractorTileEntity::new, AllBlocks.LINKED_EXTRACTOR, AllBlocks.VERTICAL_LINKED_EXTRACTOR);
|
|
|
|
public static final TileEntityEntry<TransposerTileEntity> TRANSPOSER =
|
|
|
|
register("transposer", TransposerTileEntity::new, AllBlocks.TRANSPOSER, AllBlocks.VERTICAL_TRANSPOSER);
|
|
|
|
public static final TileEntityEntry<LinkedTransposerTileEntity> LINKED_TRANSPOSER = register("linked_transposer",
|
|
|
|
LinkedTransposerTileEntity::new, AllBlocks.LINKED_TRANSPOSER, AllBlocks.VERTICAL_LINKED_TRANSPOSER);
|
|
|
|
public static final TileEntityEntry<FunnelTileEntity> FUNNEL =
|
|
|
|
register("funnel", FunnelTileEntity::new, AllBlocks.FUNNEL, AllBlocks.VERTICAL_FUNNEL);
|
|
|
|
public static final TileEntityEntry<BeltObserverTileEntity> BELT_OBSERVER =
|
|
|
|
register("belt_observer", BeltObserverTileEntity::new, AllBlocks.BELT_OBSERVER);
|
|
|
|
public static final TileEntityEntry<AdjustableRepeaterTileEntity> ADJUSTABLE_REPEATER =
|
|
|
|
register("adjustable_repeater", AdjustableRepeaterTileEntity::new, AllBlocks.ADJUSTABLE_REPEATER);
|
2020-06-01 06:33:08 +02:00
|
|
|
public static final TileEntityEntry<AdjustablePulseRepeaterTileEntity> ADJUSTABLE_PULSE_REPEATER = register(
|
2020-06-05 23:26:22 +02:00
|
|
|
"adjustable_pulse_repeater", AdjustablePulseRepeaterTileEntity::new, AllBlocks.ADJUSTABLE_PULSE_REPEATER);
|
2019-07-11 19:55:11 +02:00
|
|
|
|
2020-04-26 06:58:38 +02:00
|
|
|
@SafeVarargs
|
2020-06-05 23:26:22 +02:00
|
|
|
public static <T extends TileEntity> TileEntityEntry<T> register(String name,
|
|
|
|
NonNullFunction<TileEntityType<T>, ? extends T> supplier, NonNullSupplier<? extends Block>... blocks) {
|
|
|
|
return Create.registrate()
|
|
|
|
.<T>tileEntity(name, supplier)
|
|
|
|
.validBlocks(blocks)
|
|
|
|
.register();
|
2019-07-11 19:55:11 +02:00
|
|
|
}
|
|
|
|
|
2020-06-01 06:33:08 +02:00
|
|
|
// TODO move to TileEntityBuilder#renderer
|
2019-07-15 12:10:57 +02:00
|
|
|
@OnlyIn(Dist.CLIENT)
|
2019-07-11 19:55:11 +02:00
|
|
|
public static void registerRenderers() {
|
2020-03-29 04:10:23 +02:00
|
|
|
bind(SCHEMATICANNON, SchematicannonRenderer::new);
|
|
|
|
|
2020-05-22 20:02:07 +02:00
|
|
|
bind(SIMPLE_KINETIC, KineticTileEntityRenderer::new);
|
2020-03-29 04:10:23 +02:00
|
|
|
bind(TURNTABLE, KineticTileEntityRenderer::new);
|
2020-05-25 23:09:36 +02:00
|
|
|
bind(MOTOR, CreativeMotorRenderer::new);
|
|
|
|
bind(ENCASED_SHAFT, EncasedShaftRenderer::new);
|
|
|
|
bind(ADJUSTABLE_PULLEY, EncasedShaftRenderer::new);
|
|
|
|
bind(DRILL, DrillRenderer::new);
|
|
|
|
bind(SAW, SawRenderer::new);
|
|
|
|
bind(ENCASED_FAN, EncasedFanRenderer::new);
|
|
|
|
bind(GEARBOX, GearboxRenderer::new);
|
|
|
|
bind(GEARSHIFT, SplitShaftRenderer::new);
|
|
|
|
bind(CLUTCH, SplitShaftRenderer::new);
|
|
|
|
bind(SEQUENCED_GEARSHIFT, SplitShaftRenderer::new);
|
|
|
|
bind(BELT, BeltRenderer::new);
|
2020-03-29 04:10:23 +02:00
|
|
|
bind(WATER_WHEEL, KineticTileEntityRenderer::new);
|
2020-05-25 23:09:36 +02:00
|
|
|
bind(HAND_CRANK, HandCrankRenderer::new);
|
2020-03-29 04:10:23 +02:00
|
|
|
bind(CUCKOO_CLOCK, CuckooClockRenderer::new);
|
2020-05-25 23:09:36 +02:00
|
|
|
bind(ANALOG_LEVER, AnalogLeverRenderer::new);
|
2020-06-15 02:25:33 +02:00
|
|
|
|
|
|
|
bind(MECHANICAL_PUMP, PumpRenderer::new);
|
2020-03-29 04:10:23 +02:00
|
|
|
|
2020-05-25 23:09:36 +02:00
|
|
|
bind(MECHANICAL_PISTON, MechanicalPistonRenderer::new);
|
|
|
|
bind(MECHANICAL_BEARING, BearingRenderer::new);
|
|
|
|
bind(CLOCKWORK_BEARING, BearingRenderer::new);
|
2020-03-29 04:10:23 +02:00
|
|
|
bind(ROPE_PULLEY, PulleyRenderer::new);
|
2020-05-21 00:15:02 +02:00
|
|
|
bind(HARVESTER, HarvesterRenderer::new);
|
2020-03-29 04:10:23 +02:00
|
|
|
|
2020-03-29 04:28:49 +02:00
|
|
|
bind(MILLSTONE, MillstoneRenderer::new);
|
2020-03-29 04:10:23 +02:00
|
|
|
bind(CRUSHING_WHEEL, KineticTileEntityRenderer::new);
|
2020-05-25 23:09:36 +02:00
|
|
|
bind(MECHANICAL_PRESS, MechanicalPressRenderer::new);
|
|
|
|
bind(MECHANICAL_MIXER, MechanicalMixerRenderer::new);
|
|
|
|
bind(MECHANICAL_CRAFTER, MechanicalCrafterRenderer::new);
|
2020-06-04 21:02:29 +02:00
|
|
|
bind(SPEEDOMETER, GaugeRenderer::speed);
|
|
|
|
bind(STRESSOMETER, GaugeRenderer::stress);
|
2020-05-25 23:09:36 +02:00
|
|
|
bind(BASIN, BasinRenderer::new);
|
|
|
|
bind(DEPLOYER, DeployerRenderer::new);
|
2020-03-29 04:10:23 +02:00
|
|
|
bind(FLYWHEEL, FlywheelRenderer::new);
|
|
|
|
bind(FURNACE_ENGINE, EngineRenderer::new);
|
|
|
|
bind(ROTATION_SPEED_CONTROLLER, SpeedControllerRenderer::new);
|
|
|
|
|
2020-05-11 00:23:28 +02:00
|
|
|
bind(CREATIVE_CRATE, SmartTileEntityRenderer::new);
|
2020-05-22 20:02:07 +02:00
|
|
|
bind(REDSTONE_LINK, SmartTileEntityRenderer::new);
|
2020-06-05 23:26:22 +02:00
|
|
|
bind(NIXIE_TUBE, NixieTubeRenderer::new);
|
2020-03-29 04:10:23 +02:00
|
|
|
bind(EXTRACTOR, SmartTileEntityRenderer::new);
|
|
|
|
bind(LINKED_EXTRACTOR, SmartTileEntityRenderer::new);
|
|
|
|
bind(TRANSPOSER, SmartTileEntityRenderer::new);
|
|
|
|
bind(LINKED_TRANSPOSER, SmartTileEntityRenderer::new);
|
2020-05-22 20:02:07 +02:00
|
|
|
bind(FUNNEL, SmartTileEntityRenderer::new);
|
2020-05-25 23:09:36 +02:00
|
|
|
bind(BELT_TUNNEL, BeltTunnelRenderer::new);
|
|
|
|
bind(BELT_OBSERVER, BeltObserverRenderer::new);
|
2020-05-22 20:02:07 +02:00
|
|
|
bind(ADJUSTABLE_REPEATER, AdjustableRepeaterRenderer::new);
|
|
|
|
bind(ADJUSTABLE_PULSE_REPEATER, AdjustableRepeaterRenderer::new);
|
2019-07-11 19:55:11 +02:00
|
|
|
}
|
|
|
|
|
2019-07-15 12:10:57 +02:00
|
|
|
@OnlyIn(Dist.CLIENT)
|
2020-06-01 06:33:08 +02:00
|
|
|
private static <T extends TileEntity> void bind(TileEntityEntry<T> type,
|
|
|
|
Function<? super TileEntityRendererDispatcher, ? extends TileEntityRenderer<? super T>> renderer) {
|
|
|
|
ClientRegistry.bindTileEntityRenderer(type.get(), renderer);
|
2019-07-13 12:55:28 +02:00
|
|
|
}
|
2020-06-05 23:26:22 +02:00
|
|
|
|
2020-06-01 06:33:08 +02:00
|
|
|
public static void register() {}
|
2019-07-11 19:55:11 +02:00
|
|
|
}
|