2020-02-04 14:48:21 +01:00
|
|
|
package com.simibubi.create;
|
|
|
|
|
2021-11-21 09:44:37 +01:00
|
|
|
import java.util.EnumMap;
|
2020-06-15 19:14:03 +02:00
|
|
|
import java.util.HashMap;
|
2020-02-04 14:48:21 +01:00
|
|
|
import java.util.Map;
|
|
|
|
|
2021-05-31 02:05:41 +02:00
|
|
|
import com.jozufozu.flywheel.core.PartialModel;
|
2021-04-29 23:03:52 +02:00
|
|
|
import com.simibubi.create.content.contraptions.fluids.FluidTransportBehaviour;
|
|
|
|
import com.simibubi.create.content.contraptions.processing.burner.BlazeBurnerBlock;
|
2020-06-15 19:14:03 +02:00
|
|
|
import com.simibubi.create.foundation.utility.Iterate;
|
2020-08-25 20:12:33 +02:00
|
|
|
import com.simibubi.create.foundation.utility.Lang;
|
2020-02-04 14:48:21 +01:00
|
|
|
|
2021-11-02 00:08:20 +01:00
|
|
|
import net.minecraft.core.Direction;
|
2021-11-02 06:18:30 +01:00
|
|
|
import net.minecraft.world.item.DyeColor;
|
2020-02-04 14:48:21 +01:00
|
|
|
|
2020-06-15 19:14:03 +02:00
|
|
|
public class AllBlockPartials {
|
|
|
|
|
2021-11-21 09:44:37 +01:00
|
|
|
public static final PartialModel
|
2020-06-15 19:14:03 +02:00
|
|
|
|
2022-02-01 01:14:21 +01:00
|
|
|
SCHEMATICANNON_CONNECTOR = block("schematicannon/connector"), SCHEMATICANNON_PIPE = block("schematicannon/pipe"),
|
2020-08-25 20:12:33 +02:00
|
|
|
|
2021-11-21 09:44:37 +01:00
|
|
|
SHAFTLESS_COGWHEEL = block("cogwheel_shaftless"), SHAFTLESS_LARGE_COGWHEEL = block("large_cogwheel_shaftless"),
|
|
|
|
COGWHEEL_SHAFT = block("cogwheel_shaft"), SHAFT_HALF = block("shaft_half"),
|
2020-06-15 19:14:03 +02:00
|
|
|
|
2021-11-21 09:44:37 +01:00
|
|
|
BELT_PULLEY = block("belt_pulley"), BELT_START = block("belt/start"), BELT_MIDDLE = block("belt/middle"),
|
|
|
|
BELT_END = block("belt/end"), BELT_START_BOTTOM = block("belt/start_bottom"),
|
|
|
|
BELT_MIDDLE_BOTTOM = block("belt/middle_bottom"), BELT_END_BOTTOM = block("belt/end_bottom"),
|
|
|
|
BELT_DIAGONAL_START = block("belt/diagonal_start"), BELT_DIAGONAL_MIDDLE = block("belt/diagonal_middle"),
|
|
|
|
BELT_DIAGONAL_END = block("belt/diagonal_end"),
|
2020-07-12 14:54:03 +02:00
|
|
|
|
2021-11-21 09:44:37 +01:00
|
|
|
ENCASED_FAN_INNER = block("encased_fan/propeller"), HAND_CRANK_HANDLE = block("hand_crank/handle"),
|
|
|
|
MECHANICAL_PRESS_HEAD = block("mechanical_press/head"), MECHANICAL_MIXER_POLE = block("mechanical_mixer/pole"),
|
2022-02-01 01:14:21 +01:00
|
|
|
MECHANICAL_MIXER_HEAD = block("mechanical_mixer/head"),
|
|
|
|
MECHANICAL_CRAFTER_LID = block("mechanical_crafter/lid"),
|
2021-11-21 09:44:37 +01:00
|
|
|
MECHANICAL_CRAFTER_ARROW = block("mechanical_crafter/arrow"),
|
|
|
|
MECHANICAL_CRAFTER_BELT_FRAME = block("mechanical_crafter/belt"),
|
|
|
|
MECHANICAL_CRAFTER_BELT = block("mechanical_crafter/belt_animated"),
|
|
|
|
SAW_BLADE_HORIZONTAL_ACTIVE = block("mechanical_saw/blade_horizontal_active"),
|
|
|
|
SAW_BLADE_HORIZONTAL_INACTIVE = block("mechanical_saw/blade_horizontal_inactive"),
|
|
|
|
SAW_BLADE_HORIZONTAL_REVERSED = block("mechanical_saw/blade_horizontal_reversed"),
|
|
|
|
SAW_BLADE_VERTICAL_ACTIVE = block("mechanical_saw/blade_vertical_active"),
|
|
|
|
SAW_BLADE_VERTICAL_INACTIVE = block("mechanical_saw/blade_vertical_inactive"),
|
|
|
|
SAW_BLADE_VERTICAL_REVERSED = block("mechanical_saw/blade_vertical_reversed"), GAUGE_DIAL = block("gauge/dial"),
|
|
|
|
GAUGE_INDICATOR = block("gauge/indicator"), GAUGE_HEAD_SPEED = block("gauge/speedometer/head"),
|
|
|
|
GAUGE_HEAD_STRESS = block("gauge/stressometer/head"), BEARING_TOP = block("bearing/top"),
|
|
|
|
BEARING_TOP_WOODEN = block("bearing/top_wooden"), DRILL_HEAD = block("mechanical_drill/head"),
|
|
|
|
HARVESTER_BLADE = block("mechanical_harvester/blade"), DEPLOYER_POLE = block("deployer/pole"),
|
2022-02-01 01:14:21 +01:00
|
|
|
DEPLOYER_HAND_POINTING = block("deployer/hand_pointing"),
|
|
|
|
DEPLOYER_HAND_PUNCHING = block("deployer/hand_punching"),
|
2021-11-21 09:44:37 +01:00
|
|
|
DEPLOYER_HAND_HOLDING = block("deployer/hand_holding"), ANALOG_LEVER_HANDLE = block("analog_lever/handle"),
|
|
|
|
ANALOG_LEVER_INDICATOR = block("analog_lever/indicator"), FUNNEL_FLAP = block("funnel/flap"),
|
|
|
|
BELT_FUNNEL_FLAP = block("belt_funnel/flap"), BELT_TUNNEL_FLAP = block("belt_tunnel/flap"),
|
|
|
|
FLEXPEATER_INDICATOR = block("diodes/indicator"), FLYWHEEL = block("flywheel/wheel"),
|
|
|
|
FLYWHEEL_UPPER_ROTATING = block("flywheel/upper_rotating_connector"),
|
2021-04-08 19:22:11 +02:00
|
|
|
|
2021-11-21 09:44:37 +01:00
|
|
|
FLYWHEEL_LOWER_ROTATING = block("flywheel/lower_rotating_connector"),
|
|
|
|
FLYWHEEL_UPPER_SLIDING = block("flywheel/upper_sliding_connector"),
|
|
|
|
FLYWHEEL_LOWER_SLIDING = block("flywheel/lower_sliding_connector"),
|
|
|
|
FURNACE_GENERATOR_FRAME = block("furnace_engine/frame"), CUCKOO_MINUTE_HAND = block("cuckoo_clock/minute_hand"),
|
|
|
|
CUCKOO_HOUR_HAND = block("cuckoo_clock/hour_hand"), CUCKOO_LEFT_DOOR = block("cuckoo_clock/left_door"),
|
|
|
|
CUCKOO_RIGHT_DOOR = block("cuckoo_clock/right_door"), CUCKOO_PIG = block("cuckoo_clock/pig"),
|
|
|
|
CUCKOO_CREEPER = block("cuckoo_clock/creeper"),
|
2021-04-08 19:22:11 +02:00
|
|
|
|
2021-11-21 09:44:37 +01:00
|
|
|
GANTRY_COGS = block("gantry_carriage/wheels"),
|
2021-04-08 19:22:11 +02:00
|
|
|
|
2021-11-21 09:44:37 +01:00
|
|
|
ROPE_COIL = block("rope_pulley/rope_coil"), ROPE_HALF = block("rope_pulley/rope_half"),
|
|
|
|
ROPE_HALF_MAGNET = block("rope_pulley/rope_half_magnet"),
|
2021-04-08 19:22:11 +02:00
|
|
|
|
2021-11-21 09:44:37 +01:00
|
|
|
HOSE_COIL = block("hose_pulley/rope_coil"), HOSE = block("hose_pulley/rope"),
|
|
|
|
HOSE_MAGNET = block("hose_pulley/pulley_magnet"), HOSE_HALF = block("hose_pulley/rope_half"),
|
|
|
|
HOSE_HALF_MAGNET = block("hose_pulley/rope_half_magnet"),
|
2020-07-12 13:13:43 +02:00
|
|
|
|
2021-11-21 09:44:37 +01:00
|
|
|
MILLSTONE_COG = block("millstone/inner"),
|
2021-04-08 19:22:11 +02:00
|
|
|
|
2021-11-21 09:44:37 +01:00
|
|
|
SYMMETRY_PLANE = block("symmetry_effect/plane"), SYMMETRY_CROSSPLANE = block("symmetry_effect/crossplane"),
|
|
|
|
SYMMETRY_TRIPLEPLANE = block("symmetry_effect/tripleplane"),
|
2020-06-15 19:14:03 +02:00
|
|
|
|
2021-11-21 09:44:37 +01:00
|
|
|
STICKER_HEAD = block("sticker/head"),
|
2021-04-08 19:22:11 +02:00
|
|
|
|
2021-11-21 09:44:37 +01:00
|
|
|
PORTABLE_STORAGE_INTERFACE_MIDDLE = block("portable_storage_interface/block_middle"),
|
|
|
|
PORTABLE_STORAGE_INTERFACE_MIDDLE_POWERED = block("portable_storage_interface/block_middle_powered"),
|
|
|
|
PORTABLE_STORAGE_INTERFACE_TOP = block("portable_storage_interface/block_top"),
|
2020-06-15 19:14:03 +02:00
|
|
|
|
2021-11-21 09:44:37 +01:00
|
|
|
PORTABLE_FLUID_INTERFACE_MIDDLE = block("portable_fluid_interface/block_middle"),
|
|
|
|
PORTABLE_FLUID_INTERFACE_MIDDLE_POWERED = block("portable_fluid_interface/block_middle_powered"),
|
|
|
|
PORTABLE_FLUID_INTERFACE_TOP = block("portable_fluid_interface/block_top"),
|
2020-07-12 13:13:43 +02:00
|
|
|
|
2021-11-21 09:44:37 +01:00
|
|
|
ARM_COG = block("mechanical_arm/cog"), ARM_BASE = block("mechanical_arm/base"),
|
|
|
|
ARM_LOWER_BODY = block("mechanical_arm/lower_body"), ARM_UPPER_BODY = block("mechanical_arm/upper_body"),
|
|
|
|
ARM_HEAD = block("mechanical_arm/head"), ARM_CLAW_BASE = block("mechanical_arm/claw_base"),
|
|
|
|
ARM_CLAW_GRIP = block("mechanical_arm/claw_grip"),
|
2020-07-12 13:13:43 +02:00
|
|
|
|
2021-11-21 09:44:37 +01:00
|
|
|
FLAG_SHORT_IN = block("mechanical_arm/flag/short_in"), FLAG_SHORT_OUT = block("mechanical_arm/flag/short_out"),
|
|
|
|
FLAG_LONG_IN = block("mechanical_arm/flag/long_in"), FLAG_LONG_OUT = block("mechanical_arm/flag/long_out"),
|
2020-09-14 21:10:38 +02:00
|
|
|
|
2021-11-21 09:44:37 +01:00
|
|
|
MECHANICAL_PUMP_ARROW = block("mechanical_pump/arrow"), MECHANICAL_PUMP_COG = block("mechanical_pump/cog"),
|
|
|
|
FLUID_PIPE_CASING = block("fluid_pipe/casing"), FLUID_VALVE_POINTER = block("fluid_valve/pointer"),
|
2020-08-25 20:12:33 +02:00
|
|
|
|
2021-11-21 09:44:37 +01:00
|
|
|
SPOUT_TOP = block("spout/top"), SPOUT_MIDDLE = block("spout/middle"), SPOUT_BOTTOM = block("spout/bottom"),
|
2021-06-27 17:46:56 +02:00
|
|
|
|
2021-11-21 09:44:37 +01:00
|
|
|
PECULIAR_BELL = block("peculiar_bell"), HAUNTED_BELL = block("haunted_bell"),
|
2021-04-08 19:22:11 +02:00
|
|
|
|
2021-11-21 09:44:37 +01:00
|
|
|
TOOLBOX_DRAWER = block("toolbox/drawer"),
|
2021-04-08 19:22:11 +02:00
|
|
|
|
2021-11-21 09:44:37 +01:00
|
|
|
SPEED_CONTROLLER_BRACKET = block("rotation_speed_controller/bracket"),
|
2021-05-31 02:05:41 +02:00
|
|
|
|
2021-11-21 09:44:37 +01:00
|
|
|
GOGGLES = block("goggles"),
|
2021-04-08 19:22:11 +02:00
|
|
|
|
2021-11-21 09:44:37 +01:00
|
|
|
EJECTOR_TOP = block("weighted_ejector/top"),
|
2020-06-15 19:14:03 +02:00
|
|
|
|
2021-11-21 09:44:37 +01:00
|
|
|
COPPER_BACKTANK_SHAFT = block("copper_backtank/block_shaft_input"),
|
|
|
|
COPPER_BACKTANK_COGS = block("copper_backtank/block_cogs"),
|
2022-02-01 01:14:21 +01:00
|
|
|
|
|
|
|
TRACK_SEGMENT_LEFT = block("track/segment_left"),
|
|
|
|
TRACK_SEGMENT_RIGHT = block("track/segment_right"),
|
|
|
|
TRACK_TIE = block("track/tie"),
|
2022-02-08 01:49:35 +01:00
|
|
|
GIRDER_SEGMENT = block("metal_girder/segment"),
|
|
|
|
GIRDER_SEGMENT_2 = block("metal_girder/segment2"),
|
2022-02-01 01:14:21 +01:00
|
|
|
|
|
|
|
TRACK_STATION_OVERLAY = block("track/station_overlay"),
|
|
|
|
TRACK_STATION_OVERLAY_DIAGONAL = block("track/station_overlay_diagonal"),
|
|
|
|
TRACK_STATION_OVERLAY_ASCENDING = block("track/station_overlay_ascending"),
|
|
|
|
TRACK_ASSEMBLY_OVERLAY = block("track/assembly_overlay"),
|
|
|
|
|
|
|
|
BOGEY_FRAME = block("track/bogey/bogey_frame"),
|
|
|
|
SMALL_BOGEY_WHEELS = block("track/bogey/bogey_wheel"),
|
|
|
|
BOGEY_PIN = block("track/bogey/bogey_drive_wheel_pin"),
|
|
|
|
BOGEY_PISTON = block("track/bogey/bogey_drive_piston"),
|
|
|
|
BOGEY_DRIVE = block("track/bogey/bogey_drive"),
|
|
|
|
LARGE_BOGEY_WHEELS = block("track/bogey/bogey_drive_wheel"),
|
|
|
|
|
|
|
|
TRAIN_COUPLING_HEAD = block("track/bogey/coupling_head"),
|
|
|
|
TRAIN_COUPLING_CABLE = block("track/bogey/coupling_cable"),
|
|
|
|
|
|
|
|
TRAIN_CONTROLS_COVER = block("controls/train/cover"),
|
|
|
|
TRAIN_CONTROLS_LEVER = block("controls/train/lever"),
|
2020-08-25 20:12:33 +02:00
|
|
|
|
2021-11-21 09:44:37 +01:00
|
|
|
CRAFTING_BLUEPRINT_1x1 = entity("crafting_blueprint_small"),
|
|
|
|
CRAFTING_BLUEPRINT_2x2 = entity("crafting_blueprint_medium"),
|
|
|
|
CRAFTING_BLUEPRINT_3x3 = entity("crafting_blueprint_large"),
|
2022-02-01 01:14:21 +01:00
|
|
|
|
|
|
|
COUPLING_ATTACHMENT = entity("minecart_coupling/attachment"), COUPLING_RING = entity("minecart_coupling/ring"),
|
2021-11-21 09:44:37 +01:00
|
|
|
COUPLING_CONNECTOR = entity("minecart_coupling/connector")
|
|
|
|
|
|
|
|
;
|
2021-09-16 04:10:34 +02:00
|
|
|
|
|
|
|
public static final Map<FluidTransportBehaviour.AttachmentTypes, Map<Direction, PartialModel>> PIPE_ATTACHMENTS =
|
2021-11-21 09:44:37 +01:00
|
|
|
new EnumMap<>(FluidTransportBehaviour.AttachmentTypes.class);
|
2022-02-01 01:14:21 +01:00
|
|
|
|
|
|
|
public static final Map<BlazeBurnerBlock.HeatLevel, PartialModel> BLAZES =
|
|
|
|
new EnumMap<>(BlazeBurnerBlock.HeatLevel.class);
|
2021-11-21 09:44:37 +01:00
|
|
|
public static final Map<DyeColor, PartialModel> TOOLBOX_LIDS = new EnumMap<>(DyeColor.class);
|
2020-06-15 19:14:03 +02:00
|
|
|
|
|
|
|
static {
|
2021-04-29 23:03:52 +02:00
|
|
|
for (FluidTransportBehaviour.AttachmentTypes type : FluidTransportBehaviour.AttachmentTypes.values()) {
|
2020-08-25 20:12:33 +02:00
|
|
|
if (!type.hasModel())
|
|
|
|
continue;
|
2021-04-29 23:03:52 +02:00
|
|
|
Map<Direction, PartialModel> map = new HashMap<>();
|
2020-08-25 20:12:33 +02:00
|
|
|
for (Direction d : Iterate.directions) {
|
|
|
|
String asId = Lang.asId(type.name());
|
2021-11-21 09:44:37 +01:00
|
|
|
map.put(d, block("fluid_pipe/" + asId + "/" + Lang.asId(d.getSerializedName())));
|
2020-08-25 20:12:33 +02:00
|
|
|
}
|
|
|
|
PIPE_ATTACHMENTS.put(type, map);
|
|
|
|
}
|
2021-04-29 23:03:52 +02:00
|
|
|
for (BlazeBurnerBlock.HeatLevel heat : BlazeBurnerBlock.HeatLevel.values()) {
|
|
|
|
if (heat == BlazeBurnerBlock.HeatLevel.NONE)
|
2020-07-23 17:41:15 +02:00
|
|
|
continue;
|
2021-11-21 09:44:37 +01:00
|
|
|
BLAZES.put(heat, block("blaze_burner/blaze/" + heat.getSerializedName()));
|
2020-06-15 19:14:03 +02:00
|
|
|
}
|
2021-10-07 16:16:24 +02:00
|
|
|
for (DyeColor color : DyeColor.values())
|
2021-11-21 09:44:37 +01:00
|
|
|
TOOLBOX_LIDS.put(color, block("toolbox/lid/" + Lang.asId(color.name())));
|
2020-06-15 19:14:03 +02:00
|
|
|
}
|
|
|
|
|
2021-11-21 09:44:37 +01:00
|
|
|
private static PartialModel block(String path) {
|
|
|
|
return new PartialModel(Create.asResource("block/" + path));
|
2020-02-04 14:48:21 +01:00
|
|
|
}
|
|
|
|
|
2021-11-21 09:44:37 +01:00
|
|
|
private static PartialModel entity(String path) {
|
|
|
|
return new PartialModel(Create.asResource("entity/" + path));
|
2020-02-04 14:48:21 +01:00
|
|
|
}
|
|
|
|
|
2021-10-16 10:46:49 +02:00
|
|
|
public static void init() {
|
2021-04-29 23:03:52 +02:00
|
|
|
// init static fields
|
2020-02-04 14:48:21 +01:00
|
|
|
}
|
2021-10-16 10:46:49 +02:00
|
|
|
|
2020-02-04 14:48:21 +01:00
|
|
|
}
|