Refactor, remove unused class, add API docs

This commit is contained in:
James Seibel
2023-07-04 15:41:08 -05:00
parent 2fc74914b4
commit f07973a1ce
20 changed files with 43 additions and 101 deletions
@@ -272,7 +272,7 @@ public class ClientApi
}
short commandLength = byteBuf.readShort();
if (commandLength > 32)
if (commandLength > 32) // TODO 32 should be put into a constant somewhere
{
LOGGER.error("Server sent command > 32");
ClientApi.INSTANCE.serverIsMalformed = true;
@@ -295,7 +295,7 @@ public class ClientApi
case "WorldChanged":
short worldKeyLength = byteBuf.readShort();
if (worldKeyLength > 128)
if (worldKeyLength > 128) // TODO 128 should be put into a constant somewhere
{
LOGGER.error("Server sent worldKey > 128");
this.serverIsMalformed = true;
@@ -28,11 +28,13 @@ import com.seibel.distanthorizons.coreapi.interfaces.dependencyInjection.IBindab
*/
public interface IDimensionTypeWrapper extends IDhApiDimensionTypeWrapper, IBindable
{
@Override
String getDimensionName();
@Override
boolean hasCeiling();
@Override
boolean hasSkyLight();
}