net.minecraft.server.commands

public class AttributeCommand

alz
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<et> arg0, ep 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(bsr arg0, jm<bur> 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(bsr arg0)
getLivingEntity(Entity arg0)
method_27733(class_1297 arg0)
getLivingEntity(Entity entity)
m_136439_(C_507_ p_136440_)
private static LivingEntity
b(bsr arg0, jm<bur> 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(et arg0, bsr arg1, jm<bur> 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(et arg0, bsr arg1, jm<bur> 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(et arg0, bsr arg1, jm<bur> arg2, akr arg3, double arg4)
getAttributeModifier(CommandSourceStack arg0, Entity arg1, Holder<Attribute> arg2, ResourceLocation arg3, double arg4)
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)
m_136463_(C_2969_ p_136464_, C_507_ p_136465_, C_203228_<C_552_> p_250680_, C_5265_ p_342802_, double p_136468_)
private static int
c(et arg0, bsr arg1, jm<bur> 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(et arg0, bsr arg1, jm<bur> arg2, akr arg3, double arg4, buu$a arg5)
addModifier(CommandSourceStack arg0, Entity arg1, Holder<Attribute> arg2, ResourceLocation arg3, double arg4, AttributeModifier$Operation arg5)
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)
m_136469_(C_2969_ p_136470_, C_507_ p_136471_, C_203228_<C_552_> p_251636_, C_5265_ p_342914_, double p_136475_, C_555_$C_556_ arg5)
private static int
a(et arg0, bsr arg1, jm<bur> arg2, akr arg3)
removeModifier(CommandSourceStack arg0, Entity arg1, Holder<Attribute> arg2, ResourceLocation arg3)
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)
m_136458_(C_2969_ p_136459_, C_507_ p_136460_, C_203228_<C_552_> p_250830_, C_5265_ p_344364_)
private static Component
a(jm<bur> arg0)
getAttributeDescription(Holder<Attribute> arg0)
method_45144(class_6880<class_1320> arg0)
getName(RegistryEntry<EntityAttribute> attribute)
m_247618_(C_203228_<C_552_> p_250602_)