9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-19 15:09:15 +00:00

更新readme

This commit is contained in:
XiaoMoMi
2025-04-07 04:20:44 +08:00
parent e6a0430d65
commit 4b0effd188
6 changed files with 6 additions and 14 deletions

View File

@@ -135,7 +135,7 @@ repositories {
```
```kotlin
dependencies {
compileOnly("net.momirealms:craft-engine-core:0.0.42")
compileOnly("net.momirealms:craft-engine-bukkit:0.0.42")
compileOnly("net.momirealms:craft-engine-core:0.0.45")
compileOnly("net.momirealms:craft-engine-bukkit:0.0.45")
}
```

View File

@@ -32,7 +32,6 @@ import javax.annotation.Nullable;
import java.nio.file.Path;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.TimeUnit;
public class BukkitFurnitureManager extends AbstractFurnitureManager {
public static final NamespacedKey FURNITURE_KEY = Objects.requireNonNull(NamespacedKey.fromString("craftengine:furniture_id"));
@@ -59,9 +58,6 @@ public class BukkitFurnitureManager extends AbstractFurnitureManager {
this.furnitureParser = new FurnitureParser();
this.furnitureEventListener = new FurnitureEventListener(this);
this.dismountListener = VersionHelper.isVersionNewerThan1_20_3() ? new DismountListener1_20_3(this) : new DismountListener1_20(this::handleDismount);
plugin.scheduler().asyncRepeating(() -> {
System.out.println("数量" + furnitureByRealEntityId.size());
}, 3, 3, TimeUnit.SECONDS);
}
@Override

View File

@@ -29,10 +29,7 @@ public class TestCommand extends BukkitCommandFeature<CommandSender> {
try {
Collection<Entity> entities = player.getLocation().getNearbyEntities(2,2,2);
for (Entity entity : entities) {
System.out.println(entity.getType());
if (FastNMS.INSTANCE.method$CraftEntity$getHandle(entity) instanceof CollisionEntity) {
System.out.println(entity.getEntityId());
System.out.println(entity.getUniqueId());
}
}
} catch (Exception e) {

View File

@@ -56,7 +56,6 @@ public abstract class AbstractFontManager implements FontManager {
@Override
public Map<String, String> matchTags(String json) {
if (this.trie == null) {
System.out.println(1);
return Collections.emptyMap();
}
Map<String, String> tags = new HashMap<>();

View File

@@ -126,7 +126,7 @@ repositories {
```
```kotlin
dependencies {
compileOnly("net.momirealms:craft-engine-core:0.0.42")
compileOnly("net.momirealms:craft-engine-bukkit:0.0.42")
compileOnly("net.momirealms:craft-engine-core:0.0.45")
compileOnly("net.momirealms:craft-engine-bukkit:0.0.45")
}
```

View File

@@ -126,7 +126,7 @@ repositories {
```
```kotlin
dependencies {
compileOnly("net.momirealms:craft-engine-core:0.0.42")
compileOnly("net.momirealms:craft-engine-bukkit:0.0.42")
compileOnly("net.momirealms:craft-engine-core:0.0.45")
compileOnly("net.momirealms:craft-engine-bukkit:0.0.45")
}
```