net.minecraft.commands.functions

public class MacroFunction<T extends ExecutionCommandSource<T>>

implements CommandFunction<T>

in
net.minecraft.commands.functions.MacroFunction
net.minecraft.class_8641
net.minecraft.server.function.Macro
net.minecraft.commands.functions.MacroFunction

Field summary

Modifier and TypeField
private static final DecimalFormat
a
DECIMAL_FORMAT
field_46190
DECIMAL_FORMAT
private static final int
b
MAX_CACHE_ENTRIES
field_45150
CACHE_SIZE
private final List<String>
c
parameters
field_45149
varNames
private final it.unimi.dsi.fastutil.objects.Object2ObjectLinkedOpenHashMap<List<String>, InstantiatedFunction<T>>
d
cache
field_45151
cache
private final ResourceLocation
e
id
field_46758
id
private final List<MacroFunction$Entry<T>>
f
entries
field_46759
lines

Constructor summary

ModifierConstructor
public (ResourceLocation id, List<MacroFunction$Entry<T>> lines, List<String> varNames)

Method summary

Modifier and TypeMethod
public ResourceLocation
a()
id()
comp_1994()
id()
public InstantiatedFunction<T>
a(ux arg0, com.mojang.brigadier.CommandDispatcher<T> arg1)
instantiate(CompoundTag arg0, com.mojang.brigadier.CommandDispatcher<T> arg1)
method_52595(class_2487 arg0, com.mojang.brigadier.CommandDispatcher<T> arg1)
withMacroReplaced(NbtCompound arg0, com.mojang.brigadier.CommandDispatcher<T> arg1)
private static String
a(vu arg0)
stringify(Tag arg0)
method_53840(class_2520 arg0)
toString(NbtElement nbt)
private static void
a(List<String> arg0, it.unimi.dsi.fastutil.ints.IntList arg1, List<String> arg2)
lookupValues(List<String> arg0, it.unimi.dsi.fastutil.ints.IntList arg1, List<String> arg2)
method_54424(List<String> arg0, it.unimi.dsi.fastutil.ints.IntList arg1, List<String> arg2)
addArgumentsByIndices(List<String> arguments, it.unimi.dsi.fastutil.ints.IntList indices, List<String> out)
private InstantiatedFunction<T>
a(List<String> arg0, List<String> arg1, com.mojang.brigadier.CommandDispatcher<T> arg2)
substituteAndParse(List<String> arg0, List<String> arg1, com.mojang.brigadier.CommandDispatcher<T> arg2)
method_52597(List<String> arg0, List<String> arg1, com.mojang.brigadier.CommandDispatcher<T> arg2)
withMacroReplaced(List<String> varNames, List<String> arguments, com.mojang.brigadier.CommandDispatcher<T> dispatcher)