Class LodestoneAttribute
java.lang.Object
net.minecraft.world.entity.ai.attributes.Attribute
team.lodestar.lodestone.modules.core.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_CODECFields inherited from interface net.neoforged.neoforge.common.extensions.IAttributeExtension
FORMAT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLodestoneAttribute(net.minecraft.resources.ResourceLocation id, net.minecraft.resources.ResourceLocation baseId, double defaultValue, boolean forcePercentage) -
Method Summary
Modifier and TypeMethodDescriptionstatic LodestoneAttributeBuildercreate(net.minecraft.resources.ResourceLocation id, double defaultValue) @Nullable net.minecraft.resources.ResourceLocation@NotNull net.minecraft.network.chat.MutableComponenttoValueComponent(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, setSyncableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.common.extensions.IAttributeExtension
getDebugInfo, toBaseComponent, toComponent
-
Constructor Details
-
LodestoneAttribute
protected LodestoneAttribute(net.minecraft.resources.ResourceLocation id, net.minecraft.resources.ResourceLocation baseId, double defaultValue, 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
@NotNull public @NotNull net.minecraft.network.chat.MutableComponent toValueComponent(@Nullable net.minecraft.world.entity.ai.attributes.AttributeModifier.Operation op, double value, net.minecraft.world.item.TooltipFlag flag)
-