Stained clinker added. CTRL-SHIFT tooltips opt-out config added. Recipe conditions updated due to detailed opt-out possibilities.
This commit is contained in:
parent
bb5b525f66
commit
46c2747a87
87 changed files with 309 additions and 61 deletions
|
@ -354,9 +354,17 @@ public class ModBlocks
|
|||
|
||||
private static final Object content[] = {
|
||||
TREATED_WOOD_CRAFTING_TABLE, TREATED_WOOD_CRAFTING_TABLE_TEI,
|
||||
SMALL_LAB_FURNACE, SMALL_LAB_FURNACE_TEI,
|
||||
SMALL_ELECTRICAL_FURNACE, SMALL_ELECTRICAL_FURNACE_TEI,
|
||||
FACTORY_DROPPER, FACTORY_DROPPER_TEI,
|
||||
SMALL_WASTE_INCINERATOR, WASTE_INCINERATOR_TEI,
|
||||
STRAIGHT_CHECK_VALVE, STRAIGHT_REDSTONE_VALVE, STRAIGHT_REDSTONE_ANALOG_VALVE, STRAIGHT_PIPE_VALVE_TEI,
|
||||
PASSIVE_FLUID_ACCUMULATOR, PASSIVE_FLUID_ACCUMULATOR_TEI,
|
||||
CLINKER_BRICK_BLOCK,
|
||||
CLINKER_BRICK_STAIRS,
|
||||
CLINKER_BRICK_WALL,
|
||||
CLINKER_BRICK_STAINED_BLOCK,
|
||||
CLINKER_BRICK_STAINED_STAIRS,
|
||||
SLAG_BRICK_BLOCK,
|
||||
SLAG_BRICK_STAIRS,
|
||||
SLAG_BRICK_WALL,
|
||||
|
@ -385,19 +393,10 @@ public class ModBlocks
|
|||
THICK_STEEL_POLE_HEAD,
|
||||
STEEL_DOUBLE_T_SUPPORT,
|
||||
SIGN_HOTWIRE, SIGN_DANGER, SIGN_DEFENSE, SIGN_FACTORY_AREA, SIGN_MODLOGO,
|
||||
SMALL_LAB_FURNACE, SMALL_LAB_FURNACE_TEI,
|
||||
SMALL_ELECTRICAL_FURNACE, SMALL_ELECTRICAL_FURNACE_TEI,
|
||||
FACTORY_DROPPER, FACTORY_DROPPER_TEI,
|
||||
SMALL_WASTE_INCINERATOR, WASTE_INCINERATOR_TEI,
|
||||
STRAIGHT_CHECK_VALVE, STRAIGHT_REDSTONE_VALVE, STRAIGHT_REDSTONE_ANALOG_VALVE, STRAIGHT_PIPE_VALVE_TEI,
|
||||
PASSIVE_FLUID_ACCUMULATOR, PASSIVE_FLUID_ACCUMULATOR_TEI,
|
||||
};
|
||||
|
||||
private static final Object dev_content[] = {
|
||||
SIGN_MINDSTEP,
|
||||
// design not sure yet ...
|
||||
CLINKER_BRICK_STAINED_BLOCK,
|
||||
CLINKER_BRICK_STAINED_STAIRS,
|
||||
// handling not sure yet ...
|
||||
HALFSLAB_REBARCONCRETE,
|
||||
HALFSLAB_CONCRETE,
|
||||
|
|
|
@ -85,6 +85,7 @@ public class ModAuxiliaries
|
|||
{
|
||||
// Note: intentionally not using keybinding here, this must be `control` or `shift`. MC uses lwjgl Keyboard,
|
||||
// so using this also here should be ok.
|
||||
if(ModConfig.noToolTips()) return false;
|
||||
final boolean help_available = (helpTranslationKey != null) && ModAuxiliaries.hasTranslation(helpTranslationKey + ".help");
|
||||
final boolean tip_available = (advancedTooltipTranslationKey != null) && ModAuxiliaries.hasTranslation(helpTranslationKey + ".tip");
|
||||
if((!help_available) && (!tip_available)) return false;
|
||||
|
|
|
@ -176,6 +176,10 @@ public class ModConfig
|
|||
@Config.Name("Without h. supports")
|
||||
@Config.RequiresMcRestart
|
||||
public boolean without_hsupports = false;
|
||||
|
||||
@Config.Comment({"Disable CTRL-SHIFT item tooltip display."})
|
||||
@Config.Name("Without tooltips")
|
||||
public boolean without_tooltips = false;
|
||||
}
|
||||
|
||||
@Config.Comment({
|
||||
|
@ -337,6 +341,9 @@ public class ModConfig
|
|||
public static final boolean isWithoutRecipes()
|
||||
{ return (zmisc==null) || (zmisc.without_recipes); }
|
||||
|
||||
public static boolean noToolTips()
|
||||
{ return optout.without_tooltips; }
|
||||
|
||||
public static final boolean isOptedOut(final @Nullable Block block)
|
||||
{ return isOptedOut(block, false); }
|
||||
|
||||
|
@ -382,7 +389,7 @@ public class ModConfig
|
|||
if(optout.without_walls && (block instanceof BlockDecorWall)) return true;
|
||||
if(optout.without_poles && (block instanceof BlockDecorStraightPole)) return true;
|
||||
// String matching based evaluation
|
||||
if(optout.without_clinker_bricks && (rn.startsWith("clinker_brick_")) || (rn.startsWith("clinker_brick_stained_"))) return true;
|
||||
if(optout.without_clinker_bricks && (rn.startsWith("clinker_brick_"))) return true;
|
||||
if(optout.without_slag_bricks && rn.startsWith("slag_brick_")) return true;
|
||||
if(optout.without_rebar_concrete && rn.startsWith("rebar_concrete")) return true;
|
||||
if(optout.without_ie_concrete_wall && rn.startsWith("concrete_wall")) return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue