Package dev.latvian.mods.kubejs.entity
Class AttributeBuilder
java.lang.Object
dev.latvian.mods.kubejs.registry.BuilderBase<net.minecraft.world.entity.ai.attributes.Attribute>
dev.latvian.mods.kubejs.entity.AttributeBuilder
- All Implemented Interfaces:
Supplier<net.minecraft.world.entity.ai.attributes.Attribute>
@ReturnsSelf
public class AttributeBuilder
extends BuilderBase<net.minecraft.world.entity.ai.attributes.Attribute>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptioncom.mojang.datafixers.util.Either<AttributeBuilder.Range, Boolean> net.minecraft.world.entity.ai.attributes.Attribute.SentimentbooleanFields inherited from class dev.latvian.mods.kubejs.registry.BuilderBase
defaultTags, displayName, dummyBuilder, formattedDisplayName, id, object, registryKey, sourceLine, translationKey -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattachToCategory(net.minecraft.world.entity.MobCategory category) bool(boolean defaultValue) net.minecraft.world.entity.ai.attributes.Attributerange(double defaultValue, double min, double max) sentiment(net.minecraft.world.entity.ai.attributes.Attribute.Sentiment sentiment) syncable(boolean watch) net.minecraft.world.entity.ai.attributes.AttributetransformObject(net.minecraft.world.entity.ai.attributes.Attribute attribute) Methods inherited from class dev.latvian.mods.kubejs.registry.BuilderBase
createAdditionalObjects, createTransformedObject, displayName, formattedDisplayName, formattedDisplayName, generateAssets, generateData, generateLang, get, getBuilderTranslationKey, getTranslationKeyGroup, newID, tag, toString, translationKey
-
Field Details
-
predicateList
-
defaultValue
-
syncable
public boolean syncable -
sentiment
public net.minecraft.world.entity.ai.attributes.Attribute.Sentiment sentiment
-
-
Constructor Details
-
AttributeBuilder
public AttributeBuilder(net.minecraft.resources.ResourceLocation id)
-
-
Method Details
-
bool
-
range
-
syncable
-
sentiment
public AttributeBuilder sentiment(net.minecraft.world.entity.ai.attributes.Attribute.Sentiment sentiment) -
negativeSentiment
-
neutralSentiment
-
attachTo
-
attachToPlayers
-
attachToMonsters
-
attachToCategory
-
getPredicateList
-
createObject
public net.minecraft.world.entity.ai.attributes.Attribute createObject()- Specified by:
createObjectin classBuilderBase<net.minecraft.world.entity.ai.attributes.Attribute>
-
transformObject
public net.minecraft.world.entity.ai.attributes.Attribute transformObject(net.minecraft.world.entity.ai.attributes.Attribute attribute) - Overrides:
transformObjectin classBuilderBase<net.minecraft.world.entity.ai.attributes.Attribute>
-