Class LodestoneAttribute

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

public class LodestoneAttribute extends net.minecraft.world.entity.ai.attributes.Attribute
  • 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
    LodestoneAttribute(net.minecraft.resources.ResourceLocation id, double defaultValue, boolean isBase, boolean forcePercentage)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    create(net.minecraft.resources.ResourceLocation id, double defaultValue)
     
    @Nullable 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.Attribute

    getDefaultValue, getDescriptionId, getMergedStyle, getStyle, isClientSyncable, sanitizeValue, 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

    • LodestoneAttribute

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

    • create

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

      @Nullable public @Nullable 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)