Class CStress

java.lang.Object
com.simibubi.create.foundation.config.ConfigBase
com.simibubi.create.foundation.config.CStress
All Implemented Interfaces:
BlockStressValues.IStressValueProvider

public class CStress extends ConfigBase implements BlockStressValues.IStressValueProvider
  • Constructor Details

    • CStress

      public CStress()
  • Method Details

    • registerAll

      protected void registerAll(net.minecraftforge.common.ForgeConfigSpec.Builder builder)
      Overrides:
      registerAll in class ConfigBase
    • getImpact

      public double getImpact(net.minecraft.world.level.block.Block block)
      Description copied from interface: BlockStressValues.IStressValueProvider
      Gets the stress impact of a block.
      Specified by:
      getImpact in interface BlockStressValues.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.IStressValueProvider
      Gets the stress capacity of a block.
      Specified by:
      getCapacity in interface BlockStressValues.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:
      hasImpact in interface BlockStressValues.IStressValueProvider
    • hasCapacity

      public boolean hasCapacity(net.minecraft.world.level.block.Block block)
      Specified by:
      hasCapacity in interface BlockStressValues.IStressValueProvider
    • redirectValues

      protected net.minecraft.world.level.block.Block redirectValues(net.minecraft.world.level.block.Block block)
    • getName

      public String getName()
      Specified by:
      getName in class ConfigBase
    • getImpacts

      public Map<net.minecraft.resources.ResourceLocation,net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double>> getImpacts()
    • getCapacities

      public Map<net.minecraft.resources.ResourceLocation,net.minecraftforge.common.ForgeConfigSpec.ConfigValue<Double>> getCapacities()