2020-02-04 14:48:21 +01:00
|
|
|
package com.simibubi.create;
|
|
|
|
|
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-04-29 23:03:52 +02:00
|
|
|
public static final PartialModel SCHEMATICANNON_CONNECTOR = get("schematicannon/connector"),
|
2020-06-15 19:14:03 +02:00
|
|
|
SCHEMATICANNON_PIPE = get("schematicannon/pipe"),
|
|
|
|
|
2021-11-10 02:41:49 +01:00
|
|
|
SHAFTLESS_COGWHEEL = get("cogwheel_shaftless"), SHAFTLESS_LARGE_COGWHEEL = get("large_cogwheel_shaftless"),
|
|
|
|
SHAFT_HALF = get("shaft_half"),
|
2020-08-25 20:12:33 +02:00
|
|
|
|
|
|
|
BELT_PULLEY = get("belt_pulley"), BELT_START = get("belt/start"), BELT_MIDDLE = get("belt/middle"),
|
|
|
|
BELT_END = get("belt/end"), BELT_START_BOTTOM = get("belt/start_bottom"),
|
|
|
|
BELT_MIDDLE_BOTTOM = get("belt/middle_bottom"), BELT_END_BOTTOM = get("belt/end_bottom"),
|
|
|
|
BELT_DIAGONAL_START = get("belt/diagonal_start"), BELT_DIAGONAL_MIDDLE = get("belt/diagonal_middle"),
|
2020-07-12 02:05:29 +02:00
|
|
|
BELT_DIAGONAL_END = get("belt/diagonal_end"),
|
2020-06-15 19:14:03 +02:00
|
|
|
|
2020-07-12 13:13:43 +02:00
|
|
|
ENCASED_FAN_INNER = get("encased_fan/propeller"), HAND_CRANK_HANDLE = get("hand_crank/handle"),
|
|
|
|
MECHANICAL_PRESS_HEAD = get("mechanical_press/head"), MECHANICAL_MIXER_POLE = get("mechanical_mixer/pole"),
|
2020-08-25 20:12:33 +02:00
|
|
|
MECHANICAL_MIXER_HEAD = get("mechanical_mixer/head"), MECHANICAL_CRAFTER_LID = get("mechanical_crafter/lid"),
|
2020-06-15 19:14:03 +02:00
|
|
|
MECHANICAL_CRAFTER_ARROW = get("mechanical_crafter/arrow"),
|
|
|
|
MECHANICAL_CRAFTER_BELT_FRAME = get("mechanical_crafter/belt"),
|
2020-09-12 05:50:34 +02:00
|
|
|
MECHANICAL_CRAFTER_BELT = get("mechanical_crafter/belt_animated"),
|
|
|
|
SAW_BLADE_HORIZONTAL_ACTIVE = get("mechanical_saw/blade_horizontal_active"),
|
|
|
|
SAW_BLADE_HORIZONTAL_INACTIVE = get("mechanical_saw/blade_horizontal_inactive"),
|
|
|
|
SAW_BLADE_HORIZONTAL_REVERSED = get("mechanical_saw/blade_horizontal_reversed"),
|
|
|
|
SAW_BLADE_VERTICAL_ACTIVE = get("mechanical_saw/blade_vertical_active"),
|
|
|
|
SAW_BLADE_VERTICAL_INACTIVE = get("mechanical_saw/blade_vertical_inactive"),
|
2020-10-22 00:50:17 +02:00
|
|
|
SAW_BLADE_VERTICAL_REVERSED = get("mechanical_saw/blade_vertical_reversed"), GAUGE_DIAL = get("gauge/dial"),
|
2020-08-25 20:12:33 +02:00
|
|
|
GAUGE_INDICATOR = get("gauge/indicator"), GAUGE_HEAD_SPEED = get("gauge/speedometer/head"),
|
|
|
|
GAUGE_HEAD_STRESS = get("gauge/stressometer/head"), BEARING_TOP = get("bearing/top"),
|
2020-10-22 00:50:17 +02:00
|
|
|
BEARING_TOP_WOODEN = get("bearing/top_wooden"), DRILL_HEAD = get("mechanical_drill/head"),
|
|
|
|
HARVESTER_BLADE = get("mechanical_harvester/blade"), DEPLOYER_POLE = get("deployer/pole"),
|
|
|
|
DEPLOYER_HAND_POINTING = get("deployer/hand_pointing"), DEPLOYER_HAND_PUNCHING = get("deployer/hand_punching"),
|
|
|
|
DEPLOYER_HAND_HOLDING = get("deployer/hand_holding"), ANALOG_LEVER_HANDLE = get("analog_lever/handle"),
|
2021-04-08 19:22:11 +02:00
|
|
|
ANALOG_LEVER_INDICATOR = get("analog_lever/indicator"), FUNNEL_FLAP = get("funnel/flap"),
|
|
|
|
BELT_FUNNEL_FLAP = get("belt_funnel/flap"), BELT_TUNNEL_FLAP = get("belt_tunnel/flap"),
|
|
|
|
FLEXPEATER_INDICATOR = get("diodes/indicator"), FLYWHEEL = get("flywheel/wheel"),
|
|
|
|
FLYWHEEL_UPPER_ROTATING = get("flywheel/upper_rotating_connector"),
|
2020-07-12 14:54:03 +02:00
|
|
|
|
2020-06-15 19:14:03 +02:00
|
|
|
FLYWHEEL_LOWER_ROTATING = get("flywheel/lower_rotating_connector"),
|
|
|
|
FLYWHEEL_UPPER_SLIDING = get("flywheel/upper_sliding_connector"),
|
|
|
|
FLYWHEEL_LOWER_SLIDING = get("flywheel/lower_sliding_connector"),
|
2020-07-12 13:13:43 +02:00
|
|
|
FURNACE_GENERATOR_FRAME = get("furnace_engine/frame"), CUCKOO_MINUTE_HAND = get("cuckoo_clock/minute_hand"),
|
|
|
|
CUCKOO_HOUR_HAND = get("cuckoo_clock/hour_hand"), CUCKOO_LEFT_DOOR = get("cuckoo_clock/left_door"),
|
|
|
|
CUCKOO_RIGHT_DOOR = get("cuckoo_clock/right_door"), CUCKOO_PIG = get("cuckoo_clock/pig"),
|
2021-04-08 19:22:11 +02:00
|
|
|
CUCKOO_CREEPER = get("cuckoo_clock/creeper"),
|
|
|
|
|
2021-03-02 05:53:43 +01:00
|
|
|
GANTRY_COGS = get("gantry_carriage/wheels"),
|
2021-04-08 19:22:11 +02:00
|
|
|
|
|
|
|
ROPE_COIL = get("rope_pulley/rope_coil"), ROPE_HALF = get("rope_pulley/rope_half"),
|
2020-10-30 02:16:08 +01:00
|
|
|
ROPE_HALF_MAGNET = get("rope_pulley/rope_half_magnet"),
|
2021-04-08 19:22:11 +02:00
|
|
|
|
|
|
|
HOSE_COIL = get("hose_pulley/rope_coil"), HOSE = get("hose_pulley/rope"),
|
|
|
|
HOSE_MAGNET = get("hose_pulley/pulley_magnet"), HOSE_HALF = get("hose_pulley/rope_half"),
|
2020-10-30 02:16:08 +01:00
|
|
|
HOSE_HALF_MAGNET = get("hose_pulley/rope_half_magnet"),
|
2021-04-08 19:22:11 +02:00
|
|
|
|
2020-09-14 21:10:38 +02:00
|
|
|
MILLSTONE_COG = get("millstone/inner"),
|
2020-07-12 13:13:43 +02:00
|
|
|
|
|
|
|
SYMMETRY_PLANE = get("symmetry_effect/plane"), SYMMETRY_CROSSPLANE = get("symmetry_effect/crossplane"),
|
2020-06-15 19:14:03 +02:00
|
|
|
SYMMETRY_TRIPLEPLANE = get("symmetry_effect/tripleplane"),
|
2021-04-08 19:22:11 +02:00
|
|
|
|
2021-03-03 05:21:58 +01:00
|
|
|
STICKER_HEAD = get("sticker/head"),
|
2020-06-15 19:14:03 +02:00
|
|
|
|
2020-09-24 13:39:12 +02:00
|
|
|
PORTABLE_STORAGE_INTERFACE_MIDDLE = get("portable_storage_interface/block_middle"),
|
|
|
|
PORTABLE_STORAGE_INTERFACE_MIDDLE_POWERED = get("portable_storage_interface/block_middle_powered"),
|
|
|
|
PORTABLE_STORAGE_INTERFACE_TOP = get("portable_storage_interface/block_top"),
|
2021-04-08 19:22:11 +02:00
|
|
|
|
2020-11-25 18:54:59 +01:00
|
|
|
PORTABLE_FLUID_INTERFACE_MIDDLE = get("portable_fluid_interface/block_middle"),
|
|
|
|
PORTABLE_FLUID_INTERFACE_MIDDLE_POWERED = get("portable_fluid_interface/block_middle_powered"),
|
|
|
|
PORTABLE_FLUID_INTERFACE_TOP = get("portable_fluid_interface/block_top"),
|
2020-06-15 19:14:03 +02:00
|
|
|
|
2020-07-12 13:13:43 +02:00
|
|
|
ARM_COG = get("mechanical_arm/cog"), ARM_BASE = get("mechanical_arm/base"),
|
|
|
|
ARM_LOWER_BODY = get("mechanical_arm/lower_body"), ARM_UPPER_BODY = get("mechanical_arm/upper_body"),
|
|
|
|
ARM_HEAD = get("mechanical_arm/head"), ARM_CLAW_BASE = get("mechanical_arm/claw_base"),
|
|
|
|
ARM_CLAW_GRIP = get("mechanical_arm/claw_grip"),
|
|
|
|
|
|
|
|
FLAG_SHORT_IN = get("mechanical_arm/flag/short_in"), FLAG_SHORT_OUT = get("mechanical_arm/flag/short_out"),
|
|
|
|
FLAG_LONG_IN = get("mechanical_arm/flag/long_in"), FLAG_LONG_OUT = get("mechanical_arm/flag/long_out"),
|
|
|
|
|
|
|
|
MECHANICAL_PUMP_ARROW = get("mechanical_pump/arrow"), MECHANICAL_PUMP_COG = get("mechanical_pump/cog"),
|
2020-09-25 17:22:16 +02:00
|
|
|
FLUID_PIPE_CASING = get("fluid_pipe/casing"), FLUID_VALVE_POINTER = get("fluid_valve/pointer"),
|
2020-09-14 21:10:38 +02:00
|
|
|
|
|
|
|
SPOUT_TOP = get("spout/top"), SPOUT_MIDDLE = get("spout/middle"), SPOUT_BOTTOM = get("spout/bottom"),
|
2020-08-25 20:12:33 +02:00
|
|
|
|
2021-09-16 04:10:34 +02:00
|
|
|
PECULIAR_BELL = get("peculiar_bell"), HAUNTED_BELL = get("haunted_bell"),
|
2021-06-27 17:46:56 +02:00
|
|
|
|
2021-10-07 16:16:24 +02:00
|
|
|
TOOLBOX_DRAWER = get("toolbox/drawer"),
|
2021-04-08 19:22:11 +02:00
|
|
|
|
2021-09-16 04:10:34 +02:00
|
|
|
SPEED_CONTROLLER_BRACKET = get("rotation_speed_controller/bracket"),
|
2021-04-08 19:22:11 +02:00
|
|
|
|
2021-09-16 04:10:34 +02:00
|
|
|
GOGGLES = get("goggles"),
|
2021-05-31 02:05:41 +02:00
|
|
|
|
2021-09-16 04:10:34 +02:00
|
|
|
EJECTOR_TOP = get("weighted_ejector/top"),
|
2021-04-08 19:22:11 +02:00
|
|
|
|
2021-09-16 04:10:34 +02:00
|
|
|
COPPER_BACKTANK_SHAFT = get("copper_backtank/block_shaft_input"),
|
|
|
|
COPPER_BACKTANK_COGS = get("copper_backtank/block_cogs"),
|
2020-06-15 19:14:03 +02:00
|
|
|
|
2021-09-16 04:10:34 +02:00
|
|
|
CRAFTING_BLUEPRINT_1x1 = getEntity("crafting_blueprint_small"),
|
|
|
|
CRAFTING_BLUEPRINT_2x2 = getEntity("crafting_blueprint_medium"),
|
|
|
|
CRAFTING_BLUEPRINT_3x3 = getEntity("crafting_blueprint_large"),
|
2020-08-25 20:12:33 +02:00
|
|
|
|
2021-09-16 04:10:34 +02:00
|
|
|
COUPLING_ATTACHMENT = getEntity("minecart_coupling/attachment"),
|
|
|
|
COUPLING_RING = getEntity("minecart_coupling/ring"),
|
|
|
|
COUPLING_CONNECTOR = getEntity("minecart_coupling/connector");
|
|
|
|
|
|
|
|
public static final Map<FluidTransportBehaviour.AttachmentTypes, Map<Direction, PartialModel>> PIPE_ATTACHMENTS =
|
|
|
|
new HashMap<>();
|
2021-10-07 16:16:24 +02:00
|
|
|
public static final Map<DyeColor, PartialModel> TOOLBOX_LIDS = new HashMap<>();
|
2021-04-29 23:03:52 +02:00
|
|
|
public static final Map<BlazeBurnerBlock.HeatLevel, PartialModel> BLAZES = new HashMap<>();
|
2020-06-15 19:14:03 +02:00
|
|
|
|
|
|
|
static {
|
|
|
|
populateMaps();
|
|
|
|
}
|
2020-05-25 23:09:36 +02:00
|
|
|
|
2021-04-29 23:03:52 +02:00
|
|
|
static void populateMaps() {
|
|
|
|
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-07-15 11:32:03 +02:00
|
|
|
map.put(d, get("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-07-15 11:32:03 +02:00
|
|
|
BLAZES.put(heat, get("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())
|
|
|
|
TOOLBOX_LIDS.put(color, get("toolbox/lid/" + Lang.asId(color.name())));
|
2020-06-15 19:14:03 +02:00
|
|
|
}
|
|
|
|
|
2021-04-29 23:03:52 +02:00
|
|
|
private static PartialModel getEntity(String path) {
|
2021-10-16 10:46:49 +02:00
|
|
|
return new PartialModel(Create.asResource("entity/" + path));
|
2020-02-04 14:48:21 +01:00
|
|
|
}
|
|
|
|
|
2021-04-29 23:03:52 +02:00
|
|
|
private static PartialModel get(String path) {
|
2021-10-16 10:46:49 +02:00
|
|
|
return new PartialModel(Create.asResource("block/" + 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
|
|
|
}
|