Package net.minecraft.server.command
Class AttributeCommand
java.lang.Object
net.minecraft.server.command.AttributeCommand
public class AttributeCommand extends Object
- Mappings:
Namespace Name official wwintermediary net/minecraft/class_5252named net/minecraft/server/command/AttributeCommand
-
Field Summary
Fields Modifier and Type Field Description private static com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeENTITY_FAILED_EXCEPTIONprivate static com.mojang.brigadier.exceptions.Dynamic3CommandExceptionTypeMODIFIER_ALREADY_PRESENT_EXCEPTIONprivate static com.mojang.brigadier.exceptions.Dynamic2CommandExceptionTypeNO_ATTRIBUTE_EXCEPTIONprivate static com.mojang.brigadier.exceptions.Dynamic3CommandExceptionTypeNO_MODIFIER_EXCEPTIONprivate static com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>SUGGESTION_PROVIDER -
Constructor Summary
Constructors Constructor Description AttributeCommand() -
Method Summary
Modifier and Type Method Description private static intexecuteBaseValueGet(ServerCommandSource source, Entity target, EntityAttribute attribute, double multiplier)private static intexecuteBaseValueSet(ServerCommandSource source, Entity target, EntityAttribute attribute, double value)private static intexecuteModifierAdd(ServerCommandSource source, Entity target, EntityAttribute attribute, UUID uuid, String name, double value, EntityAttributeModifier.Operation operation)private static intexecuteModifierRemove(ServerCommandSource source, Entity target, EntityAttribute attribute, UUID uuid)private static intexecuteModifierValueGet(ServerCommandSource source, Entity target, EntityAttribute attribute, UUID uuid, double multiplier)private static intexecuteValueGet(ServerCommandSource source, Entity target, EntityAttribute attribute, double multiplier)private static EntityAttributeInstancegetAttributeInstance(Entity entity, EntityAttribute attribute)private static LivingEntitygetLivingEntity(Entity entity)private static LivingEntitygetLivingEntityWithAttribute(Entity entity, EntityAttribute attribute)static voidregister(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
-
Field Details
-
SUGGESTION_PROVIDER
private static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource> SUGGESTION_PROVIDER- Mappings:
Namespace Name Mixin selector official aLww;a:Lcom/mojang/brigadier/suggestion/SuggestionProvider;intermediary field_24375Lnet/minecraft/class_5252;field_24375:Lcom/mojang/brigadier/suggestion/SuggestionProvider;named SUGGESTION_PROVIDERLnet/minecraft/server/command/AttributeCommand;SUGGESTION_PROVIDER:Lcom/mojang/brigadier/suggestion/SuggestionProvider;
-
ENTITY_FAILED_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ENTITY_FAILED_EXCEPTION- Mappings:
Namespace Name Mixin selector official bLww;b:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;intermediary field_24376Lnet/minecraft/class_5252;field_24376:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;named ENTITY_FAILED_EXCEPTIONLnet/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 cLww;c:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;intermediary field_24377Lnet/minecraft/class_5252;field_24377:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;named NO_ATTRIBUTE_EXCEPTIONLnet/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 dLww;d:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;intermediary field_24378Lnet/minecraft/class_5252;field_24378:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;named NO_MODIFIER_EXCEPTIONLnet/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 eLww;e:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;intermediary field_24379Lnet/minecraft/class_5252;field_24379:Lcom/mojang/brigadier/exceptions/Dynamic3CommandExceptionType;named MODIFIER_ALREADY_PRESENT_EXCEPTIONLnet/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)- Mappings:
Namespace Name Mixin selector official aLww;a(Lcom/mojang/brigadier/CommandDispatcher;)Vintermediary method_27735Lnet/minecraft/class_5252;method_27735(Lcom/mojang/brigadier/CommandDispatcher;)Vnamed registerLnet/minecraft/server/command/AttributeCommand;register(Lcom/mojang/brigadier/CommandDispatcher;)V
-
getAttributeInstance
private static EntityAttributeInstance getAttributeInstance(Entity entity, EntityAttribute attribute) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLww;a(Laqv;Lasd;)Lase;intermediary method_27734Lnet/minecraft/class_5252;method_27734(Lnet/minecraft/class_1297;Lnet/minecraft/class_1320;)Lnet/minecraft/class_1324;named getAttributeInstanceLnet/minecraft/server/command/AttributeCommand;getAttributeInstance(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/attribute/EntityAttribute;)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 aLww;a(Laqv;)Lari;intermediary method_27733Lnet/minecraft/class_5252;method_27733(Lnet/minecraft/class_1297;)Lnet/minecraft/class_1309;named getLivingEntityLnet/minecraft/server/command/AttributeCommand;getLivingEntity(Lnet/minecraft/entity/Entity;)Lnet/minecraft/entity/LivingEntity;
-
getLivingEntityWithAttribute
private static LivingEntity getLivingEntityWithAttribute(Entity entity, EntityAttribute attribute) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official bLww;b(Laqv;Lasd;)Lari;intermediary method_27746Lnet/minecraft/class_5252;method_27746(Lnet/minecraft/class_1297;Lnet/minecraft/class_1320;)Lnet/minecraft/class_1309;named getLivingEntityWithAttributeLnet/minecraft/server/command/AttributeCommand;getLivingEntityWithAttribute(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/attribute/EntityAttribute;)Lnet/minecraft/entity/LivingEntity;
-
executeValueGet
private static int executeValueGet(ServerCommandSource source, Entity target, EntityAttribute attribute, double multiplier) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLww;a(Ldb;Laqv;Lasd;D)Iintermediary method_27739Lnet/minecraft/class_5252;method_27739(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;Lnet/minecraft/class_1320;D)Inamed executeValueGetLnet/minecraft/server/command/AttributeCommand;executeValueGet(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/attribute/EntityAttribute;D)I
-
executeBaseValueGet
private static int executeBaseValueGet(ServerCommandSource source, Entity target, EntityAttribute attribute, double multiplier) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official bLww;b(Ldb;Laqv;Lasd;D)Iintermediary method_27748Lnet/minecraft/class_5252;method_27748(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;Lnet/minecraft/class_1320;D)Inamed executeBaseValueGetLnet/minecraft/server/command/AttributeCommand;executeBaseValueGet(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/attribute/EntityAttribute;D)I
-
executeModifierValueGet
private static int executeModifierValueGet(ServerCommandSource source, Entity target, EntityAttribute attribute, UUID uuid, double multiplier) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLww;a(Ldb;Laqv;Lasd;Ljava/util/UUID;D)Iintermediary method_27741Lnet/minecraft/class_5252;method_27741(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;Lnet/minecraft/class_1320;Ljava/util/UUID;D)Inamed executeModifierValueGetLnet/minecraft/server/command/AttributeCommand;executeModifierValueGet(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/attribute/EntityAttribute;Ljava/util/UUID;D)I
-
executeBaseValueSet
private static int executeBaseValueSet(ServerCommandSource source, Entity target, EntityAttribute attribute, double value) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official cLww;c(Ldb;Laqv;Lasd;D)Iintermediary method_27751Lnet/minecraft/class_5252;method_27751(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;Lnet/minecraft/class_1320;D)Inamed executeBaseValueSetLnet/minecraft/server/command/AttributeCommand;executeBaseValueSet(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/attribute/EntityAttribute;D)I
-
executeModifierAdd
private static int executeModifierAdd(ServerCommandSource source, Entity target, 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 aLww;a(Ldb;Laqv;Lasd;Ljava/util/UUID;Ljava/lang/String;DLasg$a;)Iintermediary method_27742Lnet/minecraft/class_5252;method_27742(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;Lnet/minecraft/class_1320;Ljava/util/UUID;Ljava/lang/String;DLnet/minecraft/class_1322$class_1323;)Inamed executeModifierAddLnet/minecraft/server/command/AttributeCommand;executeModifierAdd(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/attribute/EntityAttribute;Ljava/util/UUID;Ljava/lang/String;DLnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;)I
-
executeModifierRemove
private static int executeModifierRemove(ServerCommandSource source, Entity target, EntityAttribute attribute, UUID uuid) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLww;a(Ldb;Laqv;Lasd;Ljava/util/UUID;)Iintermediary method_27740Lnet/minecraft/class_5252;method_27740(Lnet/minecraft/class_2168;Lnet/minecraft/class_1297;Lnet/minecraft/class_1320;Ljava/util/UUID;)Inamed executeModifierRemoveLnet/minecraft/server/command/AttributeCommand;executeModifierRemove(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/attribute/EntityAttribute;Ljava/util/UUID;)I
-