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>
parents
private ArrayList<ExplodedBlock>
dependencies
private final BlockState
state
-
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()
Boolean
dependsOn(Location location)
Unit
addToParents()
Boolean
parentInExplosion(Boolean checkGravity)
Unit
parentWasPlaced(ExplodedBlock parent)
Boolean
canBePlaced()
-
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()
-
-
-
-