Class AttributeCommand

java.lang.Object
net.minecraft.server.command.AttributeCommand

public class AttributeCommand extends Object
Mappings:
Namespace Name
official adu
intermediary net/minecraft/class_5252
named net/minecraft/server/command/AttributeCommand
  • Field Details

    • ENTITY_FAILED_EXCEPTION

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ENTITY_FAILED_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official a Ladu;a:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_24376 Lnet/minecraft/class_5252;field_24376:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      named ENTITY_FAILED_EXCEPTION Lnet/minecraft/server/command/AttributeCommand;ENTITY_FAILED_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
    • NO_ATTRIBUTE_EXCEPTION

      private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType NO_ATTRIBUTE_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official b Ladu;b:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
      intermediary field_24377 Lnet/minecraft/class_5252;field_24377:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
      named NO_ATTRIBUTE_EXCEPTION Lnet/minecraft/server/command/AttributeCommand;NO_ATTRIBUTE_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
    • NO_MODIFIER_EXCEPTION

      private static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType NO_MODIFIER_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official c Ladu;c:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;
      intermediary field_24378 Lnet/minecraft/class_5252;field_24378:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;
      named NO_MODIFIER_EXCEPTION Lnet/minecraft/server/command/AttributeCommand;NO_MODIFIER_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;
    • MODIFIER_ALREADY_PRESENT_EXCEPTION

      private static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType MODIFIER_ALREADY_PRESENT_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official d Ladu;d:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;
      intermediary field_24379 Lnet/minecraft/class_5252;field_24379:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;
      named MODIFIER_ALREADY_PRESENT_EXCEPTION Lnet/minecraft/server/command/AttributeCommand;MODIFIER_ALREADY_PRESENT_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;
  • Constructor Details

    • AttributeCommand

      public AttributeCommand()
  • Method Details

    • register

      public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, CommandRegistryAccess registryAccess)
      Mappings:
      Namespace Name Mixin selector
      official a Ladu;a(Lcom/mojang/brigadier/CommandDispatcher;Ldm;)V
      intermediary method_27735 Lnet/minecraft/class_5252;method_27735(Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/class_7157;)V
      named register Lnet/minecraft/server/command/AttributeCommand;register(Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/command/CommandRegistryAccess;)V
    • getAttributeInstance

      private 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
      official a Ladu;a(Lbfd;Lhe;)Lbgw;
      intermediary method_27734 Lnet/minecraft/class_5252;method_27734(Lnet/minecraft/class_1297;Lnet/minecraft/class_6880;)Lnet/minecraft/class_1324;
      named getAttributeInstance Lnet/minecraft/server/command/AttributeCommand;getAttributeInstance(Lnet/minecraft/entity/Entity;Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/entity/attribute/EntityAttributeInstance;
    • getLivingEntity

      private static LivingEntity getLivingEntity(Entity entity) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Ladu;a(Lbfd;)Lbft;
      intermediary method_27733 Lnet/minecraft/class_5252;method_27733(Lnet/minecraft/class_1297;)Lnet/minecraft/class_1309;
      named getLivingEntity Lnet/minecraft/server/command/AttributeCommand;getLivingEntity(Lnet/minecraft/entity/Entity;)Lnet/minecraft/entity/LivingEntity;
    • getLivingEntityWithAttribute

      private 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
      official b Ladu;b(Lbfd;Lhe;)Lbft;
      intermediary method_27746 Lnet/minecraft/class_5252;method_27746(Lnet/minecraft/class_1297;Lnet/minecraft/class_6880;)Lnet/minecraft/class_1309;
      named getLivingEntityWithAttribute Lnet/minecraft/server/command/AttributeCommand;getLivingEntityWithAttribute(Lnet/minecraft/entity/Entity;Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/entity/LivingEntity;
    • executeValueGet

      private 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
      official a Ladu;a(Lds;Lbfd;Lhe;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
      named executeValueGet Lnet/minecraft/server/command/AttributeCommand;executeValueGet(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;Lnet/minecraft/registry/entry/RegistryEntry;D)I
    • executeBaseValueGet

      private 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
      official b Ladu;b(Lds;Lbfd;Lhe;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
      named executeBaseValueGet Lnet/minecraft/server/command/AttributeCommand;executeBaseValueGet(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;Lnet/minecraft/registry/entry/RegistryEntry;D)I
    • executeModifierValueGet

      private static int executeModifierValueGet(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, UUID uuid, double multiplier) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Ladu;a(Lds;Lbfd;Lhe;Ljava/util/UUID;D)I
      intermediary method_27741 Lnet/minecraft/class_5252;method_27741(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;Lnet/minecraft/class_6880;Ljava/util/UUID;D)I
      named executeModifierValueGet Lnet/minecraft/server/command/AttributeCommand;executeModifierValueGet(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;Lnet/minecraft/registry/entry/RegistryEntry;Ljava/util/UUID;D)I
    • executeBaseValueSet

      private 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
      official c Ladu;c(Lds;Lbfd;Lhe;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
      named executeBaseValueSet Lnet/minecraft/server/command/AttributeCommand;executeBaseValueSet(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;Lnet/minecraft/registry/entry/RegistryEntry;D)I
    • executeModifierAdd

      private static int executeModifierAdd(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, UUID uuid, String name, double value, EntityAttributeModifier.Operation operation) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Ladu;a(Lds;Lbfd;Lhe;Ljava/util/UUID;Ljava/lang/String;DLbgy$a;)I
      intermediary method_27742 Lnet/minecraft/class_5252;method_27742(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;Lnet/minecraft/class_6880;Ljava/util/UUID;Ljava/lang/String;DLnet/minecraft/class_1322$class_1323;)I
      named executeModifierAdd Lnet/minecraft/server/command/AttributeCommand;executeModifierAdd(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;Lnet/minecraft/registry/entry/RegistryEntry;Ljava/util/UUID;Ljava/lang/String;DLnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;)I
    • executeModifierRemove

      private static int executeModifierRemove(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, UUID uuid) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Ladu;a(Lds;Lbfd;Lhe;Ljava/util/UUID;)I
      intermediary method_27740 Lnet/minecraft/class_5252;method_27740(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;Lnet/minecraft/class_6880;Ljava/util/UUID;)I
      named executeModifierRemove Lnet/minecraft/server/command/AttributeCommand;executeModifierRemove(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;Lnet/minecraft/registry/entry/RegistryEntry;Ljava/util/UUID;)I
    • getName

      private static Text getName(RegistryEntry<EntityAttribute> attribute)
      Mappings:
      Namespace Name Mixin selector
      official a Ladu;a(Lhe;)Lsw;
      intermediary method_45144 Lnet/minecraft/class_5252;method_45144(Lnet/minecraft/class_6880;)Lnet/minecraft/class_2561;
      named getName Lnet/minecraft/server/command/AttributeCommand;getName(Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/text/Text;