net.minecraft.server.commands

public class AttributeCommand

adu
net.minecraft.server.commands.AttributeCommand
net.minecraft.class_5252
net.minecraft.server.command.AttributeCommand
net.minecraft.src.C_5297_
net.minecraft.server.commands.CommandAttribute

Field summary

Modifier and TypeField
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
a
ERROR_NOT_LIVING_ENTITY
field_24376
ENTITY_FAILED_EXCEPTION
f_136434_
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
b
ERROR_NO_SUCH_ATTRIBUTE
field_24377
NO_ATTRIBUTE_EXCEPTION
f_136435_
private static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType
c
ERROR_NO_SUCH_MODIFIER
field_24378
NO_MODIFIER_EXCEPTION
f_136436_
private static final com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType
d
ERROR_MODIFIER_ALREADY_PRESENT
field_24379
MODIFIER_ALREADY_PRESENT_EXCEPTION
f_136437_

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static void
a(com.mojang.brigadier.CommandDispatcher<ds> arg0, dm arg1)
register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> arg0, CommandBuildContext arg1)
method_27735(com.mojang.brigadier.CommandDispatcher<class_2168> arg0, class_7157 arg1)
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, CommandRegistryAccess registryAccess)
m_245835_(com.mojang.brigadier.CommandDispatcher<C_2969_> p_251026_, C_213173_ p_250936_)
private static AttributeInstance
a(bfj arg0, he<bhb> arg1)
getAttributeInstance(Entity arg0, Holder<Attribute> arg1)
method_27734(class_1297 arg0, class_6880<class_1320> arg1)
getAttributeInstance(Entity entity, RegistryEntry<EntityAttribute> attribute)
m_246653_(C_507_ p_252177_, C_203228_<C_552_> p_249942_)
private static LivingEntity
a(bfj arg0)
getLivingEntity(Entity arg0)
method_27733(class_1297 arg0)
getLivingEntity(Entity entity)
m_136439_(C_507_ p_136440_)
private static LivingEntity
b(bfj arg0, he<bhb> arg1)
getEntityWithAttribute(Entity arg0, Holder<Attribute> arg1)
method_27746(class_1297 arg0, class_6880<class_1320> arg1)
getLivingEntityWithAttribute(Entity entity, RegistryEntry<EntityAttribute> attribute)
m_245112_(C_507_ p_252105_, C_203228_<C_552_> p_248921_)
private static int
a(ds arg0, bfj arg1, he<bhb> arg2, double arg3)
getAttributeValue(CommandSourceStack arg0, Entity arg1, Holder<Attribute> arg2, double arg3)
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)
m_247645_(C_2969_ p_251776_, C_507_ p_249647_, C_203228_<C_552_> p_250986_, double p_251395_)
private static int
b(ds arg0, bfj arg1, he<bhb> arg2, double arg3)
getAttributeBase(CommandSourceStack arg0, Entity arg1, Holder<Attribute> arg2, double arg3)
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)
m_246137_(C_2969_ p_248780_, C_507_ p_251083_, C_203228_<C_552_> p_250388_, double p_250194_)
private static int
a(ds arg0, bfj arg1, he<bhb> arg2, UUID arg3, double arg4)
getAttributeModifier(CommandSourceStack arg0, Entity arg1, Holder<Attribute> arg2, UUID arg3, double arg4)
method_27741(class_2168 arg0, class_1297 arg1, class_6880<class_1320> arg2, UUID arg3, double arg4)
executeModifierValueGet(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, UUID uuid, double multiplier)
m_136463_(C_2969_ p_136464_, C_507_ p_136465_, C_203228_<C_552_> p_250680_, UUID p_136467_, double p_136468_)
private static int
c(ds arg0, bfj arg1, he<bhb> arg2, double arg3)
setAttributeBase(CommandSourceStack arg0, Entity arg1, Holder<Attribute> arg2, double arg3)
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)
m_245136_(C_2969_ p_248556_, C_507_ p_248620_, C_203228_<C_552_> p_249456_, double p_252212_)
private static int
a(ds arg0, bfj arg1, he<bhb> arg2, UUID arg3, String arg4, double arg5, bhe$a arg6)
addModifier(CommandSourceStack arg0, Entity arg1, Holder<Attribute> arg2, UUID arg3, String arg4, double arg5, AttributeModifier$Operation arg6)
method_27742(class_2168 arg0, class_1297 arg1, class_6880<class_1320> arg2, UUID arg3, String arg4, double arg5, class_1322$class_1323 arg6)
executeModifierAdd(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, UUID uuid, String name, double value, EntityAttributeModifier$Operation operation)
m_136469_(C_2969_ p_136470_, C_507_ p_136471_, C_203228_<C_552_> p_251636_, UUID p_136473_, String p_136474_, double p_136475_, C_555_$C_556_ arg6)
private static int
a(ds arg0, bfj arg1, he<bhb> arg2, UUID arg3)
removeModifier(CommandSourceStack arg0, Entity arg1, Holder<Attribute> arg2, UUID arg3)
method_27740(class_2168 arg0, class_1297 arg1, class_6880<class_1320> arg2, UUID arg3)
executeModifierRemove(ServerCommandSource source, Entity target, RegistryEntry<EntityAttribute> attribute, UUID uuid)
m_136458_(C_2969_ p_136459_, C_507_ p_136460_, C_203228_<C_552_> p_250830_, UUID p_136462_)
private static Component
a(he<bhb> arg0)
getAttributeDescription(Holder<Attribute> arg0)
method_45144(class_6880<class_1320> arg0)
getName(RegistryEntry<EntityAttribute> attribute)
m_247618_(C_203228_<C_552_> p_250602_)