16 lines
		
	
	
	
		
			697 B
		
	
	
	
		
			Java
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			697 B
		
	
	
	
		
			Java
		
	
	
	
	
	
| package net.minecraft.commands.functions;
 | |
| 
 | |
| import com.mojang.brigadier.CommandDispatcher;
 | |
| import java.util.List;
 | |
| import net.minecraft.commands.FunctionInstantiationException;
 | |
| import net.minecraft.commands.execution.UnboundEntryAction;
 | |
| import net.minecraft.nbt.CompoundTag;
 | |
| import net.minecraft.resources.ResourceLocation;
 | |
| import org.jetbrains.annotations.Nullable;
 | |
| 
 | |
| public record PlainTextFunction<T>(ResourceLocation id, List<UnboundEntryAction<T>> entries) implements CommandFunction<T>, InstantiatedFunction<T> {
 | |
| 	@Override
 | |
| 	public InstantiatedFunction<T> instantiate(@Nullable CompoundTag arguments, CommandDispatcher<T> dispatcher) throws FunctionInstantiationException {
 | |
| 		return this;
 | |
| 	}
 | |
| }
 |