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_CODECFields inherited from interface net.neoforged.neoforge.common.extensions.IAttributeExtension
FORMAT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLodestoneRangedAttribute(net.minecraft.resources.ResourceLocation id, double defaultValue, double min, double max, boolean isBase, boolean forcePercentage) -
Method Summary
Modifier and TypeMethodDescriptionstatic LodestoneAttributeBuildercreate(net.minecraft.resources.ResourceLocation id, double defaultValue, double min, double max) net.minecraft.resources.ResourceLocationnet.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.RangedAttribute
getMaxValue, getMinValue, sanitizeValueMethods inherited from class net.minecraft.world.entity.ai.attributes.Attribute
getDefaultValue, getDescriptionId, getMergedStyle, getStyle, isClientSyncable, 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
-
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)
-