This is an automated email from the ASF dual-hosted git repository.
aradzinski pushed a commit to branch NLPCRAFT-315
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-315 by this push:
new 6b17c56 WIP.
6b17c56 is described below
commit 6b17c564973585f57b17e3597530cd8712aa75d2
Author: unknown <[email protected]>
AuthorDate: Mon May 3 16:24:11 2021 -0700
WIP.
---
nlpcraft-examples/minecraft/README.md | 13 ++-----------
.../example/minecraft/MinecraftFIllMatchProcessor.kt | 3 +--
.../org/apache/nlpcraft/example/minecraft/MinecraftModel.kt | 4 +---
.../nlpcraft/example/minecraft/MinecraftValueLoader.kt | 2 --
4 files changed, 4 insertions(+), 18 deletions(-)
diff --git a/nlpcraft-examples/minecraft/README.md
b/nlpcraft-examples/minecraft/README.md
index afaa433..1eac288 100644
--- a/nlpcraft-examples/minecraft/README.md
+++ b/nlpcraft-examples/minecraft/README.md
@@ -52,17 +52,8 @@ Second part (**../minecraft-mod**) provides mod for
Minecraft server sending req
1. Play!
### Usage
-After starting Minecraft server with mod, you can use natural language to
invoke certain commands. It's not required to
-use modded client, so vanilla client could be used. Commands could be either
invoked on server side (e.g. `make it sunny`) or
-on client side, prefixed with slash (`/make it sunny`)
-
-### Supported commands
-| Command | Example of usage | Commentary
-| :---: |:---:|:---|
-`/weather` | Make it rain | |
-`/time` | Set current time to evening | |
-`/give` | Give me iron sword | You can specify quanity |
-`/fill` | Make a cube of gold near me | Can specify length (size of 10, length
10), position (10 meters in front of me/other player) |
+Natural language commands could be entered either on Forge Server (e.g. `make
it sunny`) or on the Minecraft client side,
+prefixed with slash (`/make it sunny`). See file `MinecraftModel.kt` file for
examples of possible commands.
### Copyright
Copyright (C) 2020 Apache Software Foundation
diff --git
a/nlpcraft-examples/minecraft/src/main/kotlin/org/apache/nlpcraft/example/minecraft/MinecraftFIllMatchProcessor.kt
b/nlpcraft-examples/minecraft/src/main/kotlin/org/apache/nlpcraft/example/minecraft/MinecraftFIllMatchProcessor.kt
index c1a4f27..195e6d9 100644
---
a/nlpcraft-examples/minecraft/src/main/kotlin/org/apache/nlpcraft/example/minecraft/MinecraftFIllMatchProcessor.kt
+++
b/nlpcraft-examples/minecraft/src/main/kotlin/org/apache/nlpcraft/example/minecraft/MinecraftFIllMatchProcessor.kt
@@ -23,8 +23,7 @@ import org.apache.nlpcraft.model.*
import java.util.*
/**
- * Special processor for support 'fillIntent' intent processing.
- * Is is designed as separated class to simplify main model class.
+ * Special processor to support 'fillIntent' intent processing.
*/
class MinecraftFIllMatchProcessor {
internal data class Coordinate(val x: Int = 0, val y: Int = 0, val z: Int
= 0) {
diff --git
a/nlpcraft-examples/minecraft/src/main/kotlin/org/apache/nlpcraft/example/minecraft/MinecraftModel.kt
b/nlpcraft-examples/minecraft/src/main/kotlin/org/apache/nlpcraft/example/minecraft/MinecraftModel.kt
index 6e2ffe9..16cf149 100644
---
a/nlpcraft-examples/minecraft/src/main/kotlin/org/apache/nlpcraft/example/minecraft/MinecraftModel.kt
+++
b/nlpcraft-examples/minecraft/src/main/kotlin/org/apache/nlpcraft/example/minecraft/MinecraftModel.kt
@@ -25,9 +25,7 @@ import java.util.*
/**
* Minecraft example data model.
- * TODO:
- * <p>
- * See 'README.md' file in the same folder for running and testing
instructions.
+ * See 'README.md' file for installation, running and testing instructions.
*/
class MinecraftModel : NCModelFileAdapter("minecraft.yaml") {
private fun checkAmbiguous(ctx: NCIntentMatch) {
diff --git
a/nlpcraft-examples/minecraft/src/main/kotlin/org/apache/nlpcraft/example/minecraft/MinecraftValueLoader.kt
b/nlpcraft-examples/minecraft/src/main/kotlin/org/apache/nlpcraft/example/minecraft/MinecraftValueLoader.kt
index 665a575..429adcf 100644
---
a/nlpcraft-examples/minecraft/src/main/kotlin/org/apache/nlpcraft/example/minecraft/MinecraftValueLoader.kt
+++
b/nlpcraft-examples/minecraft/src/main/kotlin/org/apache/nlpcraft/example/minecraft/MinecraftValueLoader.kt
@@ -28,8 +28,6 @@ import org.apache.nlpcraft.model.NCValueLoader
/**
* Data loader from JSON data files.
- * These files which prepared via 'minectaft-mod' module
org.apache.nplcraft.example.minecraft.utils.GameFilesDump
- * for this supported `minecraft` server version.
*/
class MinecraftValueLoader : NCValueLoader {
private data class Dump(val version: String, val data: Map<String, String>)