Class HazardTypeBase

java.lang.Object
com.hbm_m.hazard.type.HazardTypeBase
Direct Known Subclasses:
HazardTypeAsbestos, HazardTypeBlinding, HazardTypeCoal, HazardTypeDigamma, HazardTypeExplosive, HazardTypeHot, HazardTypeHydroactive, HazardTypeRadiation

public abstract class HazardTypeBase extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected static void
    addBracketedTrait(List<net.minecraft.network.chat.Component> list, String traitKey, net.minecraft.ChatFormatting color)
    [trait key] — как в оригинале HBM 1.7.10.
    abstract void
    addHazardInformation(net.minecraft.world.entity.player.Player player, List<net.minecraft.network.chat.Component> list, float level, net.minecraft.world.item.ItemStack stack, List<HazardModifier> modifiers)
     
    protected static float
    floorDigammaDisplay(float level)
     
    protected static float
    floorThousandths(float level)
     
    abstract void
    onUpdate(net.minecraft.world.entity.LivingEntity target, float level, net.minecraft.world.item.ItemStack stack)
     
    abstract void
    updateEntity(net.minecraft.world.entity.item.ItemEntity item, float level)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HazardTypeBase

      public HazardTypeBase()
  • Method Details

    • onUpdate

      public abstract void onUpdate(net.minecraft.world.entity.LivingEntity target, float level, net.minecraft.world.item.ItemStack stack)
    • updateEntity

      public abstract void updateEntity(net.minecraft.world.entity.item.ItemEntity item, float level)
    • addHazardInformation

      public abstract void addHazardInformation(net.minecraft.world.entity.player.Player player, List<net.minecraft.network.chat.Component> list, float level, net.minecraft.world.item.ItemStack stack, List<HazardModifier> modifiers)
    • addBracketedTrait

      protected static void addBracketedTrait(List<net.minecraft.network.chat.Component> list, String traitKey, net.minecraft.ChatFormatting color)
      [trait key] — как в оригинале HBM 1.7.10.
    • floorThousandths

      protected static float floorThousandths(float level)
    • floorDigammaDisplay

      protected static float floorDigammaDisplay(float level)