net.minecraft.server.command

public class AttributeCommand

net.minecraft.server.commands.AttributeCommand
net.minecraft.class_5252
net.minecraft.server.command.AttributeCommand

Field summary

Modifier and TypeField
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ERROR_NOT_LIVING_ENTITY
field_24376
ENTITY_FAILED_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
ERROR_NO_SUCH_ATTRIBUTE
field_24377
NO_ATTRIBUTE_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType
ERROR_NO_SUCH_MODIFIER
field_24378
NO_MODIFIER_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType
ERROR_MODIFIER_ALREADY_PRESENT
field_24379
MODIFIER_ALREADY_PRESENT_EXCEPTION

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static void
register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context)
method_27735(com.mojang.brigadier.CommandDispatcher<class_2168> arg0, class_7157 arg1)
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, CommandRegistryAccess registryAccess)
private static EntityAttributeInstance
getAttributeInstance(Entity target, Holder<Attribute> attribute)
method_27734(class_1297 arg0, class_6880<class_1320> arg1)
getAttributeInstance(Entity entity, RegistryEntry<EntityAttribute> attribute)
private static LivingEntity
getLivingEntity(Entity target)
method_27733(class_1297 arg0)
getLivingEntity(Entity entity)
private static LivingEntity
getEntityWithAttribute(Entity target, Holder<Attribute> attribute)
method_27746(class_1297 arg0, class_6880<class_1320> arg1)
getLivingEntityWithAttribute(Entity entity, RegistryEntry<EntityAttribute> attribute)
private static int
getAttributeValue(CommandSourceStack source, Entity target, Holder<Attribute> attribute, double scale)
method_27739(class_2168 arg0, class_1297 arg1, class_6880<class_1320> arg2, double arg3)
executeValueGet(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, double multiplier)
private static int
getAttributeBase(CommandSourceStack source, Entity target, Holder<Attribute> attribute, double scale)
method_27748(class_2168 arg0, class_1297 arg1, class_6880<class_1320> arg2, double arg3)
executeBaseValueGet(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, double multiplier)
private static int
getAttributeModifier(CommandSourceStack source, Entity target, Holder<Attribute> attribute, Identifier id, double scale)
method_27741(class_2168 arg0, class_1297 arg1, class_6880<class_1320> arg2, class_2960 arg3, double arg4)
executeModifierValueGet(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, Identifier id, double multiplier)
private static Stream<Identifier>
getAttributeModifiers(Entity target, Holder<Attribute> attribute)
method_65093(class_1297 arg0, class_6880<class_1320> arg1)
streamModifiers(Entity target, RegistryEntry<EntityAttribute> attribute)
private static int
setAttributeBase(CommandSourceStack source, Entity target, Holder<Attribute> attribute, double value)
method_27751(class_2168 arg0, class_1297 arg1, class_6880<class_1320> arg2, double arg3)
executeBaseValueSet(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, double value)
private static int
resetAttributeBase(CommandSourceStack source, Entity target, Holder<Attribute> attribute)
method_65089(class_2168 arg0, class_1297 arg1, class_6880<class_1320> arg2)
executeResetToBaseValue(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute)
private static int
addModifier(CommandSourceStack source, Entity target, Holder<Attribute> attribute, Identifier id, double value, AttributeModifier$Operation operation)
method_27742(class_2168 arg0, class_1297 arg1, class_6880<class_1320> arg2, class_2960 arg3, double arg4, class_1322$class_1323 arg5)
executeModifierAdd(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, Identifier id, double value, EntityAttributeModifier$Operation operation)
private static int
removeModifier(CommandSourceStack source, Entity target, Holder<Attribute> attribute, Identifier id)
method_27740(class_2168 arg0, class_1297 arg1, class_6880<class_1320> arg2, class_2960 arg3)
executeModifierRemove(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, Identifier id)
private static Text
getAttributeDescription(Holder<Attribute> attribute)
method_45144(class_6880<class_1320> arg0)
getName(RegistryEntry<EntityAttribute> attribute)
private static Text
lambda$removeModifier$24(Identifier arg0, Holder arg1, Entity arg2)
method_51902(class_2960 arg0, class_6880 arg1, class_1297 arg2)
method_51902(Identifier arg0, RegistryEntry arg1, Entity arg2)
private static Text
lambda$addModifier$23(Identifier arg0, Holder arg1, Entity arg2)
method_51905(class_2960 arg0, class_6880 arg1, class_1297 arg2)
method_51905(Identifier arg0, RegistryEntry arg1, Entity arg2)
private static Text
lambda$resetAttributeBase$22(Holder arg0, Entity arg1, double arg2)
method_65090(class_6880 arg0, class_1297 arg1, double arg2)
method_65090(RegistryEntry arg0, Entity arg1, double arg2)
private static Text
lambda$setAttributeBase$21(Holder arg0, Entity arg1, double arg2)
method_51901(class_6880 arg0, class_1297 arg1, double arg2)
method_51901(RegistryEntry arg0, Entity arg1, double arg2)
private static Text
lambda$getAttributeModifier$20(Identifier arg0, Holder arg1, Entity arg2, double arg3)
method_51903(class_2960 arg0, class_6880 arg1, class_1297 arg2, double arg3)
method_51903(Identifier arg0, RegistryEntry arg1, Entity arg2, double arg3)
private static Text
lambda$getAttributeBase$19(Holder arg0, Entity arg1, double arg2)
method_51904(class_6880 arg0, class_1297 arg1, double arg2)
method_51904(RegistryEntry arg0, Entity arg1, double arg2)
private static Text
lambda$getAttributeValue$18(Holder arg0, Entity arg1, double arg2)
method_51906(class_6880 arg0, class_1297 arg1, double arg2)
method_51906(RegistryEntry arg0, Entity arg1, double arg2)
private static int
lambda$register$17(com.mojang.brigadier.context.CommandContext arg0)
method_27736(com.mojang.brigadier.context.CommandContext arg0)
method_27736(com.mojang.brigadier.context.CommandContext context)
private static int
lambda$register$16(com.mojang.brigadier.context.CommandContext arg0)
method_65091(com.mojang.brigadier.context.CommandContext arg0)
method_65091(com.mojang.brigadier.context.CommandContext context)
private static CompletableFuture
lambda$register$15(com.mojang.brigadier.context.CommandContext arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
method_65088(com.mojang.brigadier.context.CommandContext arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
method_65088(com.mojang.brigadier.context.CommandContext context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
private static int
lambda$register$14(com.mojang.brigadier.context.CommandContext arg0)
method_65094(com.mojang.brigadier.context.CommandContext arg0)
method_65094(com.mojang.brigadier.context.CommandContext context)
private static CompletableFuture
lambda$register$13(com.mojang.brigadier.context.CommandContext arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
method_65092(com.mojang.brigadier.context.CommandContext arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
method_65092(com.mojang.brigadier.context.CommandContext context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
private static int
lambda$register$12(com.mojang.brigadier.context.CommandContext arg0)
method_27752(com.mojang.brigadier.context.CommandContext arg0)
method_27752(com.mojang.brigadier.context.CommandContext context)
private static int
lambda$register$11(com.mojang.brigadier.context.CommandContext arg0)
method_27753(com.mojang.brigadier.context.CommandContext arg0)
method_27753(com.mojang.brigadier.context.CommandContext context)
private static int
lambda$register$10(com.mojang.brigadier.context.CommandContext arg0)
method_27754(com.mojang.brigadier.context.CommandContext arg0)
method_27754(com.mojang.brigadier.context.CommandContext context)
private static int
lambda$register$9(com.mojang.brigadier.context.CommandContext arg0)
method_65095(com.mojang.brigadier.context.CommandContext arg0)
method_65095(com.mojang.brigadier.context.CommandContext context)
private static int
lambda$register$8(com.mojang.brigadier.context.CommandContext arg0)
method_27755(com.mojang.brigadier.context.CommandContext arg0)
method_27755(com.mojang.brigadier.context.CommandContext context)
private static int
lambda$register$7(com.mojang.brigadier.context.CommandContext arg0)
method_27756(com.mojang.brigadier.context.CommandContext arg0)
method_27756(com.mojang.brigadier.context.CommandContext context)
private static int
lambda$register$6(com.mojang.brigadier.context.CommandContext arg0)
method_27757(com.mojang.brigadier.context.CommandContext arg0)
method_27757(com.mojang.brigadier.context.CommandContext context)
private static int
lambda$register$5(com.mojang.brigadier.context.CommandContext arg0)
method_27758(com.mojang.brigadier.context.CommandContext arg0)
method_27758(com.mojang.brigadier.context.CommandContext context)
private static int
lambda$register$4(com.mojang.brigadier.context.CommandContext arg0)
method_27759(com.mojang.brigadier.context.CommandContext arg0)
method_27759(com.mojang.brigadier.context.CommandContext context)
private static com.mojang.brigadier.Message
lambda$static$3(Object arg0, Object arg1, Object arg2)
method_27745(Object arg0, Object arg1, Object arg2)
method_27745(Object entityName, Object attributeName, Object uuid)
private static com.mojang.brigadier.Message
lambda$static$2(Object arg0, Object arg1, Object arg2)
method_27749(Object arg0, Object arg1, Object arg2)
method_27749(Object entityName, Object attributeName, Object uuid)
private static com.mojang.brigadier.Message
lambda$static$1(Object arg0, Object arg1)
method_27744(Object arg0, Object arg1)
method_27744(Object entityName, Object attributeName)
private static com.mojang.brigadier.Message
lambda$static$0(Object arg0)
method_27743(Object arg0)
method_27743(Object name)