Class PFBlockDescription
java.lang.Object
net.minestom.server.entity.pathfinding.PFBlockDescription
- All Implemented Interfaces:
com.extollit.gaming.ai.path.model.IBlockDescription
public class PFBlockDescription
extends java.lang.Object
implements com.extollit.gaming.ai.path.model.IBlockDescription
-
Constructor Summary
Constructors Constructor Description PFBlockDescription(Block block)
-
Method Summary
Modifier and Type Method Description static PFBlockDescription
getBlockDescription(short blockStateId)
Gets thePFBlockDescription
linked to the block state id.boolean
isClimbable()
boolean
isDoor()
boolean
isFenceLike()
boolean
isFullyBounded()
boolean
isImpeding()
boolean
isIncinerating()
boolean
isLiquid()
-
Constructor Details
-
Method Details
-
getBlockDescription
Gets thePFBlockDescription
linked to the block state id.Cache the result if it is not already.
- Parameters:
blockStateId
- the block state id- Returns:
- the
PFBlockDescription
linked toblockStateId
-
isFenceLike
public boolean isFenceLike()- Specified by:
isFenceLike
in interfacecom.extollit.gaming.ai.path.model.IBlockDescription
-
isClimbable
public boolean isClimbable()- Specified by:
isClimbable
in interfacecom.extollit.gaming.ai.path.model.IBlockDescription
-
isDoor
public boolean isDoor()- Specified by:
isDoor
in interfacecom.extollit.gaming.ai.path.model.IBlockDescription
-
isImpeding
public boolean isImpeding()- Specified by:
isImpeding
in interfacecom.extollit.gaming.ai.path.model.IBlockDescription
-
isFullyBounded
public boolean isFullyBounded()- Specified by:
isFullyBounded
in interfacecom.extollit.gaming.ai.path.model.IBlockDescription
-
isLiquid
public boolean isLiquid()- Specified by:
isLiquid
in interfacecom.extollit.gaming.ai.path.model.IBlockDescription
-
isIncinerating
public boolean isIncinerating()- Specified by:
isIncinerating
in interfacecom.extollit.gaming.ai.path.model.IBlockDescription
-