Fix BlockToAvoid and TintWithAvoidedBlocks

This commit is contained in:
James Seibel
2023-06-11 21:24:34 -05:00
parent 5a33a4511b
commit f785e75622
7 changed files with 94 additions and 73 deletions
@@ -21,12 +21,7 @@ package com.seibel.lod.api.enums.config;
/**
* NONE, <br>
* NON_FULL, <br>
* NO_COLLISION, <br>
* BOTH, <br>
*
* @author Leonardo Amato
* @version 2022-7-1
* NON_COLLIDING, <br>
*/
public enum EBlocksToAvoid
{
@@ -34,20 +29,11 @@ public enum EBlocksToAvoid
// when adding items up the API minor version
// when removing items up the API major version
NONE(false, false),
NONE(false),
NON_COLLIDING(true);
NON_FULL(true, false),
NO_COLLISION(false, true),
BOTH(true, true);
public final boolean nonFull;
public final boolean noCollision;
EBlocksToAvoid(boolean nonFull, boolean noCollision)
{
this.nonFull = nonFull;
this.noCollision = noCollision;
}
EBlocksToAvoid(boolean noCollision) { this.noCollision = noCollision; }
}
@@ -6,10 +6,16 @@ import com.seibel.lod.api.interfaces.IDhApiUnsafeWrapper;
* A Minecraft version independent way of handling Blocks.
*
* @author James Seibel
* @version 2022-11-12
* @version 2023-6-11
*/
public interface IDhApiBlockStateWrapper extends IDhApiUnsafeWrapper
{
boolean isAir();
boolean isSolid();
boolean isLiquid();
// TODO:
// boolean hasNoCollision();
// boolean noFaceIsFullFace();
}