Class LodestoneRangedAttribute

java.lang.Object
net.minecraft.world.entity.ai.attributes.Attribute
net.minecraft.world.entity.ai.attributes.RangedAttribute
team.lodestar.lodestone.systems.attribute.LodestoneRangedAttribute
All Implemented Interfaces:
net.neoforged.neoforge.common.extensions.IAttributeExtension

public class LodestoneRangedAttribute extends net.minecraft.world.entity.ai.attributes.RangedAttribute
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.attributes.Attribute

    net.minecraft.world.entity.ai.attributes.Attribute.Sentiment
  • Field Summary

    Fields inherited from class net.minecraft.world.entity.ai.attributes.Attribute

    CODEC, MERGED_BLUE, MERGED_GRAY, MERGED_RED, STREAM_CODEC

    Fields inherited from interface net.neoforged.neoforge.common.extensions.IAttributeExtension

    FORMAT
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    LodestoneRangedAttribute(net.minecraft.resources.ResourceLocation id, double defaultValue, double min, double max, boolean isBase, boolean forcePercentage)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    create(net.minecraft.resources.ResourceLocation id, double defaultValue, double min, double max)
     
    net.minecraft.resources.ResourceLocation
     
    net.minecraft.network.chat.MutableComponent
    toValueComponent(net.minecraft.world.entity.ai.attributes.AttributeModifier.Operation op, double value, net.minecraft.world.item.TooltipFlag flag)
     

    Methods inherited from class net.minecraft.world.entity.ai.attributes.RangedAttribute

    getMaxValue, getMinValue, sanitizeValue

    Methods inherited from class net.minecraft.world.entity.ai.attributes.Attribute

    getDefaultValue, getDescriptionId, getMergedStyle, getStyle, isClientSyncable, setSentiment, setSyncable

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.neoforged.neoforge.common.extensions.IAttributeExtension

    getDebugInfo, toBaseComponent, toComponent
  • Constructor Details

    • LodestoneRangedAttribute

      protected LodestoneRangedAttribute(net.minecraft.resources.ResourceLocation id, double defaultValue, double min, double max, boolean isBase, boolean forcePercentage)
  • Method Details

    • create

      public static LodestoneAttributeBuilder create(net.minecraft.resources.ResourceLocation id, double defaultValue, double min, double max)
    • getBaseId

      @Nullable public net.minecraft.resources.ResourceLocation getBaseId()
    • toValueComponent

      public net.minecraft.network.chat.MutableComponent toValueComponent(@Nullable net.minecraft.world.entity.ai.attributes.AttributeModifier.Operation op, double value, net.minecraft.world.item.TooltipFlag flag)