public class AttributeCommand extends Object
Modifier and Type | Field and Description |
---|---|
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
ENTITY_FAILED_EXCEPTION |
private static com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType |
MODIFIER_ALREADY_PRESENT_EXCEPTION |
private static com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType |
NO_ATTRIBUTE_EXCEPTION |
private static com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType |
NO_MODIFIER_EXCEPTION |
private static com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource> |
SUGGESTION_PROVIDER |
Constructor and Description |
---|
AttributeCommand() |
Modifier and Type | Method and Description |
---|---|
private static int |
executeBaseValueGet(ServerCommandSource source,
Entity target,
EntityAttribute attribute,
double multiplier) |
private static int |
executeBaseValueSet(ServerCommandSource source,
Entity target,
EntityAttribute attribute,
double value) |
private static int |
executeModifierAdd(ServerCommandSource source,
Entity target,
EntityAttribute attribute,
UUID uuid,
String name,
double value,
EntityAttributeModifier.Operation operation) |
private static int |
executeModifierRemove(ServerCommandSource source,
Entity target,
EntityAttribute attribute,
UUID uuid) |
private static int |
executeModifierValueGet(ServerCommandSource source,
Entity target,
EntityAttribute attribute,
UUID uuid,
double multiplier) |
private static int |
executeValueGet(ServerCommandSource source,
Entity target,
EntityAttribute attribute,
double multiplier) |
private static EntityAttributeInstance |
getAttributeInstance(Entity entity,
EntityAttribute attribute) |
private static LivingEntity |
getLivingEntity(Entity entity) |
private static LivingEntity |
getLivingEntityWithAttribute(Entity entity,
EntityAttribute attribute) |
static void |
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) |
private static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource> SUGGESTION_PROVIDER
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ENTITY_FAILED_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType NO_ATTRIBUTE_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType NO_MODIFIER_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType MODIFIER_ALREADY_PRESENT_EXCEPTION
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
private static EntityAttributeInstance getAttributeInstance(Entity entity, EntityAttribute attribute) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static LivingEntity getLivingEntity(Entity entity) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static LivingEntity getLivingEntityWithAttribute(Entity entity, EntityAttribute attribute) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int executeValueGet(ServerCommandSource source, Entity target, EntityAttribute attribute, double multiplier) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int executeBaseValueGet(ServerCommandSource source, Entity target, EntityAttribute attribute, double multiplier) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int executeModifierValueGet(ServerCommandSource source, Entity target, EntityAttribute attribute, UUID uuid, double multiplier) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int executeBaseValueSet(ServerCommandSource source, Entity target, EntityAttribute attribute, double value) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
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
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int executeModifierRemove(ServerCommandSource source, Entity target, EntityAttribute attribute, UUID uuid) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException