Config for spectral block visible-ness
true = Invisible (default) false = Visible from the outside
This commit is contained in:
parent
9253d6a410
commit
3f28a9e268
|
@ -137,6 +137,7 @@ public class ConfigHandler
|
||||||
|
|
||||||
// Client
|
// Client
|
||||||
public static boolean alwaysRenderRoutingLines;
|
public static boolean alwaysRenderRoutingLines;
|
||||||
|
public static boolean invisibleSpectralBlocks;
|
||||||
|
|
||||||
// Compat
|
// Compat
|
||||||
public static int wailaAltarDisplayMode;
|
public static int wailaAltarDisplayMode;
|
||||||
|
@ -284,6 +285,7 @@ public class ConfigHandler
|
||||||
category = "Client";
|
category = "Client";
|
||||||
config.addCustomCategoryComment(category, "Client only settings");
|
config.addCustomCategoryComment(category, "Client only settings");
|
||||||
alwaysRenderRoutingLines = config.getBoolean("alwaysRenderRoutingLines", category, false, "Always renders the beams between routing nodes. If false, only renders while a Node Router is being held.");
|
alwaysRenderRoutingLines = config.getBoolean("alwaysRenderRoutingLines", category, false, "Always renders the beams between routing nodes. If false, only renders while a Node Router is being held.");
|
||||||
|
invisibleSpectralBlocks = config.get(category, "invisibleSpectralBlocks", true, "Spectral Blocks (Used by the Suppression Sigil to store fluids) will not render at all. If false, a see through texture will render. [default: true]").setRequiresMcRestart(true).getBoolean();
|
||||||
|
|
||||||
category = "Compatibility";
|
category = "Compatibility";
|
||||||
config.addCustomCategoryComment(category, "Compatibility settings");
|
config.addCustomCategoryComment(category, "Compatibility settings");
|
||||||
|
|
|
@ -4,6 +4,7 @@ import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
|
import WayofTime.bloodmagic.ConfigHandler;
|
||||||
import net.minecraft.block.BlockContainer;
|
import net.minecraft.block.BlockContainer;
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.block.state.IBlockState;
|
import net.minecraft.block.state.IBlockState;
|
||||||
|
@ -77,7 +78,7 @@ public class BlockSpectral extends BlockContainer implements IVariantProvider
|
||||||
@Override
|
@Override
|
||||||
public EnumBlockRenderType getRenderType(IBlockState state)
|
public EnumBlockRenderType getRenderType(IBlockState state)
|
||||||
{
|
{
|
||||||
return EnumBlockRenderType.MODEL;
|
return ConfigHandler.invisibleSpectralBlocks ? EnumBlockRenderType.INVISIBLE : EnumBlockRenderType.MODEL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue