Class LodestoneAttributeBuilder
java.lang.Object
team.lodestar.lodestone.modules.core.attribute.LodestoneAttributeBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionnet.minecraft.resources.ResourceLocationfinal doublebooleanfinal net.minecraft.resources.ResourceLocationfinal doublefinal doublenet.minecraft.world.entity.ai.attributes.Attribute.Sentimentboolean -
Constructor Summary
ConstructorsConstructorDescriptionLodestoneAttributeBuilder(net.minecraft.resources.ResourceLocation id, double defaultValue) LodestoneAttributeBuilder(net.minecraft.resources.ResourceLocation id, double defaultValue, double minValue, double maxValue) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.entity.ai.attributes.Attributebuild()setAsBaseAttribute(net.minecraft.resources.ResourceLocation baseId) setSentiment(net.minecraft.world.entity.ai.attributes.Attribute.Sentiment sentiment) setSyncable(boolean syncable)
-
Field Details
-
id
public final net.minecraft.resources.ResourceLocation id -
defaultValue
public final double defaultValue -
minValue
public final double minValue -
maxValue
public final double maxValue -
baseId
public net.minecraft.resources.ResourceLocation baseId -
forcePercentage
public boolean forcePercentage -
syncable
public boolean syncable -
sentiment
public net.minecraft.world.entity.ai.attributes.Attribute.Sentiment sentiment
-
-
Constructor Details
-
LodestoneAttributeBuilder
public LodestoneAttributeBuilder(net.minecraft.resources.ResourceLocation id, double defaultValue) -
LodestoneAttributeBuilder
public LodestoneAttributeBuilder(net.minecraft.resources.ResourceLocation id, double defaultValue, double minValue, double maxValue)
-
-
Method Details
-
setAsBaseAttribute
-
setAsBaseAttribute
public LodestoneAttributeBuilder setAsBaseAttribute(net.minecraft.resources.ResourceLocation baseId) -
forcePercentageDisplay
-
setSyncable
-
setSentiment
public LodestoneAttributeBuilder setSentiment(net.minecraft.world.entity.ai.attributes.Attribute.Sentiment sentiment) -
build
public net.minecraft.world.entity.ai.attributes.Attribute build()
-