обновление README
This commit is contained in:
5
anvil-loader/README.MD
Normal file
5
anvil-loader/README.MD
Normal file
@@ -0,0 +1,5 @@
|
||||
# Anvil loader
|
||||
|
||||
Загрузчик "ванильных" (vanilla, ["Anvil"](https://minecraft.gamepedia.com/Anvil_file_format)) карт Minecraft.
|
||||
|
||||
Пример настройки можно посмотреть в файле `sample-config.xml`
|
||||
28
anvil-loader/sample-config.xml
Normal file
28
anvil-loader/sample-config.xml
Normal file
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:context="http://www.springframework.org/schema/context"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
||||
http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
|
||||
http://www.springframework.org/schema/context
|
||||
http://www.springframework.org/schema/context/spring-context.xsd">
|
||||
<context:annotation-config />
|
||||
|
||||
<bean id="spawnLocation" class="mc.core.EntityLocation">
|
||||
<constructor-arg index="0" type="double" value="8"/>
|
||||
<constructor-arg index="1" type="double" value="64"/>
|
||||
<constructor-arg index="2" type="double" value="8"/>
|
||||
<constructor-arg index="3" type="float" value="0"/>
|
||||
<constructor-arg index="4" type="float" value="0"/>
|
||||
</bean>
|
||||
|
||||
<!-- В качестве хранилища, используется модуль Simple world -->
|
||||
<bean id="simpleWorld" class="mc.world.simple.SimpleWorld">
|
||||
<property name="spawn" ref="spawnLocation"/>
|
||||
<property name="chunkProvider">
|
||||
<bean class="mc.world.anvil.AnvilChunkProvider">
|
||||
<constructor-arg index="0" type="java.lang.String" value="path/to/minecraft/maps/New world"/>
|
||||
</bean>
|
||||
</property>
|
||||
</bean>
|
||||
</beans>
|
||||
Reference in New Issue
Block a user