Package net.minecraft.server.command
Class AttributeCommand
java.lang.Object
net.minecraft.server.command.AttributeCommand
- Mappings:
- Namespace - Name - named - net/minecraft/server/command/AttributeCommand- intermediary - net/minecraft/class_5252- official - ana
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate static intexecuteBaseValueGet(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, double multiplier) private static intexecuteBaseValueSet(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, double value) private static intexecuteModifierAdd(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, Identifier id, double value, EntityAttributeModifier.Operation operation) private static intexecuteModifierRemove(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, Identifier id) private static intexecuteModifierValueGet(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, Identifier id, double multiplier) private static intexecuteResetToBaseValue(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute) private static intexecuteValueGet(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, double multiplier) private static EntityAttributeInstancegetAttributeInstance(Entity entity, RegistryEntry<EntityAttribute> attribute) private static LivingEntitygetLivingEntity(Entity entity) private static LivingEntitygetLivingEntityWithAttribute(Entity entity, RegistryEntry<EntityAttribute> attribute) private static TextgetName(RegistryEntry<EntityAttribute> attribute) static voidregister(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, CommandRegistryAccess registryAccess) private static Stream<Identifier> streamModifiers(Entity target, RegistryEntry<EntityAttribute> attribute) 
- 
Field Details- 
ENTITY_FAILED_EXCEPTIONprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ENTITY_FAILED_EXCEPTION- Mappings:
- Namespace - Name - Mixin selector - named - ENTITY_FAILED_EXCEPTION- Lnet/minecraft/server/command/AttributeCommand;ENTITY_FAILED_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;- intermediary - field_24376- Lnet/minecraft/class_5252;field_24376:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;- official - a- Lana;a:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
 
- 
NO_ATTRIBUTE_EXCEPTIONprivate static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType NO_ATTRIBUTE_EXCEPTION- Mappings:
- Namespace - Name - Mixin selector - named - NO_ATTRIBUTE_EXCEPTION- Lnet/minecraft/server/command/AttributeCommand;NO_ATTRIBUTE_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;- intermediary - field_24377- Lnet/minecraft/class_5252;field_24377:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;- official - b- Lana;b:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
 
- 
NO_MODIFIER_EXCEPTIONprivate static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType NO_MODIFIER_EXCEPTION- Mappings:
- Namespace - Name - Mixin selector - named - NO_MODIFIER_EXCEPTION- Lnet/minecraft/server/command/AttributeCommand;NO_MODIFIER_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;- intermediary - field_24378- Lnet/minecraft/class_5252;field_24378:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;- official - c- Lana;c:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;
 
- 
MODIFIER_ALREADY_PRESENT_EXCEPTIONprivate static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType MODIFIER_ALREADY_PRESENT_EXCEPTION- Mappings:
- Namespace - Name - Mixin selector - named - MODIFIER_ALREADY_PRESENT_EXCEPTION- Lnet/minecraft/server/command/AttributeCommand;MODIFIER_ALREADY_PRESENT_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;- intermediary - field_24379- Lnet/minecraft/class_5252;field_24379:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;- official - d- Lana;d:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;
 
 
- 
- 
Constructor Details- 
AttributeCommandpublic AttributeCommand()
 
- 
- 
Method Details- 
registerpublic static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, CommandRegistryAccess registryAccess) - Mappings:
- Namespace - Name - Mixin selector - named - register- Lnet/minecraft/server/command/AttributeCommand;register(Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/command/CommandRegistryAccess;)V- intermediary - method_27735- Lnet/minecraft/class_5252;method_27735(Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/class_7157;)V- official - a- Lana;a(Lcom/mojang/brigadier/CommandDispatcher;Leg;)V
 
- 
getAttributeInstanceprivate static EntityAttributeInstance getAttributeInstance(Entity entity, RegistryEntry<EntityAttribute> attribute) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - getAttributeInstance- Lnet/minecraft/server/command/AttributeCommand;getAttributeInstance(Lnet/minecraft/entity/Entity;Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/entity/attribute/EntityAttributeInstance;- intermediary - method_27734- Lnet/minecraft/class_5252;method_27734(Lnet/minecraft/class_1297;Lnet/minecraft/class_6880;)Lnet/minecraft/class_1324;- official - a- Lana;a(Lbxe;Ljg;)Lbzh;
 
- 
getLivingEntityprivate static LivingEntity getLivingEntity(Entity entity) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - getLivingEntity- Lnet/minecraft/server/command/AttributeCommand;getLivingEntity(Lnet/minecraft/entity/Entity;)Lnet/minecraft/entity/LivingEntity;- intermediary - method_27733- Lnet/minecraft/class_5252;method_27733(Lnet/minecraft/class_1297;)Lnet/minecraft/class_1309;- official - a- Lana;a(Lbxe;)Lbyf;
 
- 
getLivingEntityWithAttributeprivate static LivingEntity getLivingEntityWithAttribute(Entity entity, RegistryEntry<EntityAttribute> attribute) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - getLivingEntityWithAttribute- Lnet/minecraft/server/command/AttributeCommand;getLivingEntityWithAttribute(Lnet/minecraft/entity/Entity;Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/entity/LivingEntity;- intermediary - method_27746- Lnet/minecraft/class_5252;method_27746(Lnet/minecraft/class_1297;Lnet/minecraft/class_6880;)Lnet/minecraft/class_1309;- official - b- Lana;b(Lbxe;Ljg;)Lbyf;
 
- 
executeValueGetprivate static int executeValueGet(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, double multiplier) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - executeValueGet- Lnet/minecraft/server/command/AttributeCommand;executeValueGet(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;Lnet/minecraft/registry/entry/RegistryEntry;D)I- intermediary - method_27739- Lnet/minecraft/class_5252;method_27739(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;Lnet/minecraft/class_6880;D)I- official - a- Lana;a(Lek;Lbxe;Ljg;D)I
 
- 
executeBaseValueGetprivate static int executeBaseValueGet(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, double multiplier) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - executeBaseValueGet- Lnet/minecraft/server/command/AttributeCommand;executeBaseValueGet(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;Lnet/minecraft/registry/entry/RegistryEntry;D)I- intermediary - method_27748- Lnet/minecraft/class_5252;method_27748(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;Lnet/minecraft/class_6880;D)I- official - b- Lana;b(Lek;Lbxe;Ljg;D)I
 
- 
executeModifierValueGetprivate static int executeModifierValueGet(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, Identifier id, double multiplier) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - executeModifierValueGet- Lnet/minecraft/server/command/AttributeCommand;executeModifierValueGet(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/util/Identifier;D)I- intermediary - method_27741- Lnet/minecraft/class_5252;method_27741(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;Lnet/minecraft/class_6880;Lnet/minecraft/class_2960;D)I- official - a- Lana;a(Lek;Lbxe;Ljg;Lalr;D)I
 
- 
streamModifiersprivate static Stream<Identifier> streamModifiers(Entity target, RegistryEntry<EntityAttribute> attribute) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - streamModifiers- Lnet/minecraft/server/command/AttributeCommand;streamModifiers(Lnet/minecraft/entity/Entity;Lnet/minecraft/registry/entry/RegistryEntry;)Ljava/util/stream/Stream;- intermediary - method_65093- Lnet/minecraft/class_5252;method_65093(Lnet/minecraft/class_1297;Lnet/minecraft/class_6880;)Ljava/util/stream/Stream;- official - c- Lana;c(Lbxe;Ljg;)Ljava/util/stream/Stream;
 
- 
executeBaseValueSetprivate static int executeBaseValueSet(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, double value) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - executeBaseValueSet- Lnet/minecraft/server/command/AttributeCommand;executeBaseValueSet(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;Lnet/minecraft/registry/entry/RegistryEntry;D)I- intermediary - method_27751- Lnet/minecraft/class_5252;method_27751(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;Lnet/minecraft/class_6880;D)I- official - c- Lana;c(Lek;Lbxe;Ljg;D)I
 
- 
executeResetToBaseValueprivate static int executeResetToBaseValue(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - executeResetToBaseValue- Lnet/minecraft/server/command/AttributeCommand;executeResetToBaseValue(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;Lnet/minecraft/registry/entry/RegistryEntry;)I- intermediary - method_65089- Lnet/minecraft/class_5252;method_65089(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;Lnet/minecraft/class_6880;)I- official - a- Lana;a(Lek;Lbxe;Ljg;)I
 
- 
executeModifierAddprivate static int executeModifierAdd(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, Identifier id, double value, EntityAttributeModifier.Operation operation) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - executeModifierAdd- Lnet/minecraft/server/command/AttributeCommand;executeModifierAdd(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/util/Identifier;DLnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;)I- intermediary - method_27742- Lnet/minecraft/class_5252;method_27742(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;Lnet/minecraft/class_6880;Lnet/minecraft/class_2960;DLnet/minecraft/class_1322$class_1323;)I- official - a- Lana;a(Lek;Lbxe;Ljg;Lalr;DLbzj$a;)I
 
- 
executeModifierRemoveprivate static int executeModifierRemove(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, Identifier id) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - executeModifierRemove- Lnet/minecraft/server/command/AttributeCommand;executeModifierRemove(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/util/Identifier;)I- intermediary - method_27740- Lnet/minecraft/class_5252;method_27740(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;Lnet/minecraft/class_6880;Lnet/minecraft/class_2960;)I- official - a- Lana;a(Lek;Lbxe;Ljg;Lalr;)I
 
- 
getName- Mappings:
- Namespace - Name - Mixin selector - named - getName- Lnet/minecraft/server/command/AttributeCommand;getName(Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/text/Text;- intermediary - method_45144- Lnet/minecraft/class_5252;method_45144(Lnet/minecraft/class_6880;)Lnet/minecraft/class_2561;- official - a- Lana;a(Ljg;)Lxg;
 
 
-