Archived
0
This repository has been archived on 2022-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
Files
mc-server/simple_world/README.MD

40 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Simple world
Простая реализация мира
## Spring bean
```xml
<bean id="simpleWorld" class="mc.world.simple.SimpleWorld">
<property name="spawn">
<bean class="mc.core.EntityLocation">
<constructor-arg index="0" type="double" value="8"/>
<constructor-arg index="1" type="double" value="6"/>
<constructor-arg index="2" type="double" value="8"/>
<constructor-arg index="3" type="float" value="0"/>
<constructor-arg index="4" type="float" value="0"/>
<constructor-arg index="5" type="mc.core.world.World">
<null/>
</constructor-arg>
</bean>
</property>
<property name="layersBlock">
<list value-type="java.lang.String">
<value>1;BEDROCK</value>
<value>2;DIRT</value>
<value>1;GRASS</value>
</list>
</property>
</bean>
```
`spawn` - точка спавна.
При указании точки спавна, указывать шестой параметр `World` не имеет смысла,
т.к. `SimpleWorld` всё равно перезапишет этот параметр.
`layersBlock` - слои блоков.
В качестве значения указывается спиток строк, каждая из которых описывает слой блоков.
Формат строк такой: `кол-во_слоёв;тип_блока`. Порядок строк такой: сверху нижние слои, а снизу - верхние.