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:
@@ -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")
|
||||
}
|
||||
```
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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<>();
|
||||
|
||||
@@ -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")
|
||||
}
|
||||
```
|
||||
|
||||
@@ -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")
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user