Class CStress
java.lang.Object
com.simibubi.create.foundation.config.ConfigBase
com.simibubi.create.foundation.config.CStress
- All Implemented Interfaces:
BlockStressValues.IStressValueProvider
-
Nested Class Summary
Nested classes/interfaces inherited from class com.simibubi.create.foundation.config.ConfigBase
ConfigBase.ConfigBool, ConfigBase.ConfigEnum<T extends Enum<T>>, ConfigBase.ConfigFloat, ConfigBase.ConfigGroup, ConfigBase.ConfigInt, ConfigBase.CValue<V,T extends net.minecraftforge.common.ForgeConfigSpec.ConfigValue<V>>, ConfigBase.IValueProvider<V, T extends net.minecraftforge.common.ForgeConfigSpec.ConfigValue<V>> -
Field Summary
Fields inherited from class com.simibubi.create.foundation.config.ConfigBase
allValues, children, depth, specification -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMap<net.minecraft.resources.ResourceLocation,net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double>> doublegetCapacity(net.minecraft.world.level.block.Block block) Gets the stress capacity of a block.doublegetImpact(net.minecraft.world.level.block.Block block) Gets the stress impact of a block.Map<net.minecraft.resources.ResourceLocation,net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double>> getName()booleanhasCapacity(net.minecraft.world.level.block.Block block) booleanhasImpact(net.minecraft.world.level.block.Block block) protected net.minecraft.world.level.block.BlockredirectValues(net.minecraft.world.level.block.Block block) protected voidregisterAll(net.minecraftforge.common.ForgeConfigSpec.Builder builder)
-
Constructor Details
-
CStress
public CStress()
-
-
Method Details
-
registerAll
protected void registerAll(net.minecraftforge.common.ForgeConfigSpec.Builder builder) - Overrides:
registerAllin classConfigBase
-
getImpact
public double getImpact(net.minecraft.world.level.block.Block block) Description copied from interface:BlockStressValues.IStressValueProviderGets the stress impact of a block.- Specified by:
getImpactin interfaceBlockStressValues.IStressValueProvider- Parameters:
block- The block.- Returns:
- the stress impact value of the block, or 0 if it does not have one.
-
getCapacity
public double getCapacity(net.minecraft.world.level.block.Block block) Description copied from interface:BlockStressValues.IStressValueProviderGets the stress capacity of a block.- Specified by:
getCapacityin interfaceBlockStressValues.IStressValueProvider- Parameters:
block- The block.- Returns:
- the stress capacity value of the block, or 0 if it does not have one.
-
hasImpact
public boolean hasImpact(net.minecraft.world.level.block.Block block) - Specified by:
hasImpactin interfaceBlockStressValues.IStressValueProvider
-
hasCapacity
public boolean hasCapacity(net.minecraft.world.level.block.Block block) - Specified by:
hasCapacityin interfaceBlockStressValues.IStressValueProvider
-
redirectValues
protected net.minecraft.world.level.block.Block redirectValues(net.minecraft.world.level.block.Block block) -
getName
- Specified by:
getNamein classConfigBase
-
getImpacts
-
getCapacities
-