Skip to content

Commit 06f6cf3

Browse files
committed
Fix a lot of errors
1 parent 60849e8 commit 06f6cf3

File tree

12 files changed

+165
-4
lines changed

12 files changed

+165
-4
lines changed

license-definitions.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<additionalHeaders>
33
<javadoc_style>
44
<firstLine>/*</firstLine>
5-
<beforeEachLine>*</beforeEachLine>
6-
<endLine>*/</endLine>
5+
<beforeEachLine> * </beforeEachLine>
6+
<endLine> */</endLine>
77
<!--<afterEachLine></afterEachLine>-->
88
<!--skipLine></skipLine-->
99
<firstLineDetectionPattern>(\s|\t)*/\*.*$</firstLineDetectionPattern>

src/main/java/org/blockserver/core/message/block/MessageOutBlockChange.java

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* This file is part of BlockServer.
3+
*
4+
* BlockServer is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU Lesser General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* BlockServer is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU Lesser General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU Lesser General Public License
15+
* along with BlockServer. If not, see <http://www.gnu.org/licenses/>.
16+
*/
117
package org.blockserver.core.message.block;
218

319
import org.blockserver.core.message.player.MessagePlayer;

src/main/java/org/blockserver/core/modules/network/BinaryBuffer.java

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* This file is part of BlockServer.
3+
*
4+
* BlockServer is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU Lesser General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* BlockServer is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU Lesser General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU Lesser General Public License
15+
* along with BlockServer. If not, see <http://www.gnu.org/licenses/>.
16+
*/
117
package org.blockserver.core.modules.network;
218

319
/*

src/main/java/org/blockserver/core/modules/player/Player.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
import lombok.Getter;
2020
import org.blockserver.core.Server;
21+
import org.blockserver.core.message.Message;
22+
import org.blockserver.core.modules.logging.LoggingModule;
2123

2224
import java.net.InetSocketAddress;
2325

@@ -32,7 +34,6 @@ public class Player extends InetSocketAddress {
3234
public Player(Server server, InetSocketAddress address) {
3335
super(address.getAddress(), address.getPort());
3436
this.server = server;
35-
this.address = address;
3637
}
3738

3839
public void sendMessage(Message message) {

src/main/java/org/blockserver/core/modules/world/Block.java

+17-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* This file is part of BlockServer.
3+
*
4+
* BlockServer is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU Lesser General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* BlockServer is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU Lesser General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU Lesser General Public License
15+
* along with BlockServer. If not, see <http://www.gnu.org/licenses/>.
16+
*/
117
package org.blockserver.core.modules.world;
218

319
import lombok.Getter;
@@ -21,7 +37,7 @@ public void setLightLevel(byte lightLevel) {
2137
public void setMaterial(Material material) {
2238
this.material = material;
2339
for (Player player : world.getPlayers()) {
24-
player.sendMessage(new MessageOutBlockChange(player.getAddress())); //TODO: Material
40+
player.sendMessage(new MessageOutBlockChange(player, this)); //TODO: Material
2541
}
2642
}
2743
}

src/main/java/org/blockserver/core/modules/world/Chunk.java

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* This file is part of BlockServer.
3+
*
4+
* BlockServer is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU Lesser General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* BlockServer is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU Lesser General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU Lesser General Public License
15+
* along with BlockServer. If not, see <http://www.gnu.org/licenses/>.
16+
*/
117
package org.blockserver.core.modules.world;
218

319
/**

src/main/java/org/blockserver/core/modules/world/ChunkProvider.java

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* This file is part of BlockServer.
3+
*
4+
* BlockServer is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU Lesser General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* BlockServer is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU Lesser General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU Lesser General Public License
15+
* along with BlockServer. If not, see <http://www.gnu.org/licenses/>.
16+
*/
117
package org.blockserver.core.modules.world;
218

319
/**

src/main/java/org/blockserver/core/modules/world/Material.java

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* This file is part of BlockServer.
3+
*
4+
* BlockServer is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU Lesser General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* BlockServer is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU Lesser General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU Lesser General Public License
15+
* along with BlockServer. If not, see <http://www.gnu.org/licenses/>.
16+
*/
117
package org.blockserver.core.modules.world;
218

319
/**

src/main/java/org/blockserver/core/modules/world/World.java

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* This file is part of BlockServer.
3+
*
4+
* BlockServer is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU Lesser General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* BlockServer is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU Lesser General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU Lesser General Public License
15+
* along with BlockServer. If not, see <http://www.gnu.org/licenses/>.
16+
*/
117
package org.blockserver.core.modules.world;
218

319
import lombok.Getter;

src/main/java/org/blockserver/core/modules/world/WorldModule.java

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* This file is part of BlockServer.
3+
*
4+
* BlockServer is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU Lesser General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* BlockServer is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU Lesser General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU Lesser General Public License
15+
* along with BlockServer. If not, see <http://www.gnu.org/licenses/>.
16+
*/
117
package org.blockserver.core.modules.world;
218

319
import org.blockserver.core.Server;

src/main/java/org/blockserver/core/modules/world/positions/Location.java

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* This file is part of BlockServer.
3+
*
4+
* BlockServer is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU Lesser General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* BlockServer is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU Lesser General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU Lesser General Public License
15+
* along with BlockServer. If not, see <http://www.gnu.org/licenses/>.
16+
*/
117
package org.blockserver.core.modules.world.positions;
218

319
import lombok.Getter;

src/main/java/org/blockserver/core/modules/world/positions/Vector.java

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* This file is part of BlockServer.
3+
*
4+
* BlockServer is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU Lesser General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* BlockServer is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU Lesser General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU Lesser General Public License
15+
* along with BlockServer. If not, see <http://www.gnu.org/licenses/>.
16+
*/
117
package org.blockserver.core.modules.world.positions;
218

319
import lombok.Getter;

0 commit comments

Comments
 (0)