Package net.pdevita.creeperheal2.core
Class MultiParentExplodedBlock
-
- All Implemented Interfaces:
public final class MultiParentExplodedBlock extends ExplodedBlock
-
-
Field Summary
Fields Modifier and Type Field Description private final HashSet<ExplodedBlock>parentsprivate ArrayList<ExplodedBlock>dependenciesprivate final BlockStatestate
-
Constructor Summary
Constructors Constructor Description MultiParentExplodedBlock(Explosion explosion, BlockState state)
-
Method Summary
Modifier and Type Method Description final HashSet<ExplodedBlock>getParents()final List<Location>getDependentBlocksLocation()final List<Location>getParentBlocksLocation()BooleandependsOn(Location location)UnitaddToParents()BooleanparentInExplosion(Boolean checkGravity)UnitparentWasPlaced(ExplodedBlock parent)BooleancanBePlaced()-
Methods inherited from class net.pdevita.creeperheal2.core.ExplodedBlock
findDependentBlocks, getDependencies, getParentBlockLocation, getState, placeBlock, relinkExplosion, setDependencies -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
MultiParentExplodedBlock
MultiParentExplodedBlock(Explosion explosion, BlockState state)
-
-
Method Detail
-
getParents
final HashSet<ExplodedBlock> getParents()
-
getDependentBlocksLocation
final List<Location> getDependentBlocksLocation()
-
getParentBlocksLocation
final List<Location> getParentBlocksLocation()
-
addToParents
Unit addToParents()
-
parentInExplosion
Boolean parentInExplosion(Boolean checkGravity)
-
parentWasPlaced
Unit parentWasPlaced(ExplodedBlock parent)
-
canBePlaced
Boolean canBePlaced()
-
-
-
-