Package net.minecraft.command.impl
Class AttributeCommand
- java.lang.Object
-
- net.minecraft.command.impl.AttributeCommand
-
public class AttributeCommand extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource>
AVAILABLE_ATTRIBUTES
private static com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType
ERROR_MODIFIER_ALREADY_PRESENT
private static com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
ERROR_NO_SUCH_ATTRIBUTE
private static com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType
ERROR_NO_SUCH_MODIFIER
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ERROR_NOT_LIVING_ENTITY
-
Constructor Summary
Constructors Constructor Description AttributeCommand()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static int
addModifier(CommandSource p_241010_0_, Entity p_241010_1_, Attribute p_241010_2_, java.util.UUID p_241010_3_, java.lang.String p_241010_4_, double p_241010_5_, AttributeModifier.Operation p_241010_7_)
private static int
getAttributeBase(CommandSource p_241016_0_, Entity p_241016_1_, Attribute p_241016_2_, double p_241016_3_)
private static ModifiableAttributeInstance
getAttributeInstance(Entity p_241002_0_, Attribute p_241002_1_)
private static int
getAttributeModifier(CommandSource p_241009_0_, Entity p_241009_1_, Attribute p_241009_2_, java.util.UUID p_241009_3_, double p_241009_4_)
private static int
getAttributeValue(CommandSource p_241007_0_, Entity p_241007_1_, Attribute p_241007_2_, double p_241007_3_)
private static LivingEntity
getEntityWithAttribute(Entity p_241014_0_, Attribute p_241014_1_)
private static LivingEntity
getLivingEntity(Entity p_241001_0_)
static void
register(com.mojang.brigadier.CommandDispatcher<CommandSource> p_241003_0_)
private static int
removeModifier(CommandSource p_241008_0_, Entity p_241008_1_, Attribute p_241008_2_, java.util.UUID p_241008_3_)
private static int
setAttributeBase(CommandSource p_241019_0_, Entity p_241019_1_, Attribute p_241019_2_, double p_241019_3_)
-
-
-
Field Detail
-
AVAILABLE_ATTRIBUTES
private static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource> AVAILABLE_ATTRIBUTES
-
ERROR_NOT_LIVING_ENTITY
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_NOT_LIVING_ENTITY
-
ERROR_NO_SUCH_ATTRIBUTE
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_NO_SUCH_ATTRIBUTE
-
ERROR_NO_SUCH_MODIFIER
private static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType ERROR_NO_SUCH_MODIFIER
-
ERROR_MODIFIER_ALREADY_PRESENT
private static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType ERROR_MODIFIER_ALREADY_PRESENT
-
-
Method Detail
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSource> p_241003_0_)
-
getAttributeInstance
private static ModifiableAttributeInstance getAttributeInstance(Entity p_241002_0_, Attribute p_241002_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getLivingEntity
private static LivingEntity getLivingEntity(Entity p_241001_0_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getEntityWithAttribute
private static LivingEntity getEntityWithAttribute(Entity p_241014_0_, Attribute p_241014_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getAttributeValue
private static int getAttributeValue(CommandSource p_241007_0_, Entity p_241007_1_, Attribute p_241007_2_, double p_241007_3_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getAttributeBase
private static int getAttributeBase(CommandSource p_241016_0_, Entity p_241016_1_, Attribute p_241016_2_, double p_241016_3_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getAttributeModifier
private static int getAttributeModifier(CommandSource p_241009_0_, Entity p_241009_1_, Attribute p_241009_2_, java.util.UUID p_241009_3_, double p_241009_4_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setAttributeBase
private static int setAttributeBase(CommandSource p_241019_0_, Entity p_241019_1_, Attribute p_241019_2_, double p_241019_3_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
addModifier
private static int addModifier(CommandSource p_241010_0_, Entity p_241010_1_, Attribute p_241010_2_, java.util.UUID p_241010_3_, java.lang.String p_241010_4_, double p_241010_5_, AttributeModifier.Operation p_241010_7_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
removeModifier
private static int removeModifier(CommandSource p_241008_0_, Entity p_241008_1_, Attribute p_241008_2_, java.util.UUID p_241008_3_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
-