-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
660 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/main/java/dev/hilligans/ourcraft/Engine/EngineImplementationException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package dev.hilligans.ourcraft.Engine; | ||
|
||
public class EngineImplementationException extends RuntimeException { | ||
|
||
public EngineImplementationException(String message) { | ||
super(message); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/main/java/dev/hilligans/ourcraft/Network/Packet/NewSystem/Client/SSendChunk.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package dev.hilligans.ourcraft.Network.Packet.NewSystem.Client; | ||
|
||
import dev.hilligans.ourcraft.Network.PacketBase; | ||
import dev.hilligans.ourcraft.Network.PacketData; | ||
|
||
public class SSendChunk extends PacketBase { | ||
|
||
|
||
@Override | ||
public void encode(PacketData packetData) { | ||
|
||
} | ||
|
||
@Override | ||
public void decode(PacketData packetData) { | ||
} | ||
|
||
@Override | ||
public void handle() { | ||
|
||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...n/java/dev/hilligans/ourcraft/Network/Packet/NewSystem/Client/SSendWorldSystemFormat.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package dev.hilligans.ourcraft.Network.Packet.NewSystem.Client; | ||
|
||
import dev.hilligans.ourcraft.Network.PacketBase; | ||
import dev.hilligans.ourcraft.Network.PacketData; | ||
|
||
public class SSendWorldSystemFormat extends PacketBase { | ||
|
||
|
||
|
||
@Override | ||
public void encode(PacketData packetData) { | ||
|
||
} | ||
|
||
@Override | ||
public void decode(PacketData packetData) { | ||
|
||
} | ||
|
||
@Override | ||
public void handle() { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
src/main/java/dev/hilligans/ourcraft/Server/Concurrent/ITickableTask.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,6 @@ public void run() { | |
} | ||
} | ||
} | ||
|
||
} | ||
|
||
|
||
|
28 changes: 0 additions & 28 deletions
28
src/main/java/dev/hilligans/ourcraft/Server/Tasks/ChunkTask.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
src/main/java/dev/hilligans/ourcraft/World/Modifications/IWorldModification.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package dev.hilligans.ourcraft.World.Modifications; | ||
|
||
import dev.hilligans.ourcraft.Data.Other.BlockPos; | ||
import dev.hilligans.ourcraft.Server.Concurrent.Lock; | ||
import dev.hilligans.ourcraft.World.NewWorldSystem.IChunk; | ||
|
||
public interface IWorldModification { | ||
|
||
void apply(Lock lock, IChunk chunk); | ||
|
||
BlockPos getMin(); | ||
BlockPos getMax(); | ||
|
||
default long getMinX() { | ||
return getMin().x; | ||
} | ||
default long getMinY() { | ||
return getMin().y; | ||
} | ||
default long getMinZ() { | ||
return getMin().z; | ||
} | ||
default long getMaxX() { | ||
return getMax().x; | ||
} | ||
default long getMaxY() { | ||
return getMax().y; | ||
} | ||
default long getMaxZ() { | ||
return getMax().z; | ||
} | ||
|
||
default public boolean isWholeInside(IChunk chunk) { | ||
return (getMinX() <= chunk.getBlockX() && getMinY() <= chunk.getBlockY() && getMinZ() <= chunk.getBlockZ()) && | ||
(getMaxX() >= chunk.getBlockMaxX() && getMaxY() >= chunk.getBlockMaxY() && getMaxZ() >= chunk.getBlockMaxZ()); | ||
} | ||
} |
Oops, something went wrong.