Class CreatureSpawnerMock
java.lang.Object
be.seeseemelk.mockbukkit.block.state.BlockStateMock
be.seeseemelk.mockbukkit.block.state.TileStateMock
be.seeseemelk.mockbukkit.block.state.CreatureSpawnerMock
- All Implemented Interfaces:
BlockState,CreatureSpawner,TileState,Metadatable,PersistentDataHolder
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreatureSpawnerMock(@NotNull CreatureSpawnerMock state) protectedCreatureSpawnerMock(@NotNull Block block) CreatureSpawnerMock(@NotNull Material material) -
Method Summary
Modifier and TypeMethodDescription@NotNull StringintgetDelay()intintintint@NotNull CreatureSpawnerMockThis returns a copy of thisBlockStateMock.int@NotNull EntityTypeintbooleanvoidvoidsetCreatureTypeByName(@NotNull String creatureType) voidsetDelay(int delay) voidsetMaxNearbyEntities(int maxNearbyEntities) voidsetMaxSpawnDelay(int delay) voidsetMinSpawnDelay(int delay) voidsetRequiredPlayerRange(int requiredPlayerRange) voidsetSpawnCount(int spawnCount) voidsetSpawnedItem(@NotNull ItemStack itemStack) voidsetSpawnedType(@NotNull EntityType creatureType) voidsetSpawnRange(int spawnRange) Methods inherited from class be.seeseemelk.mockbukkit.block.state.TileStateMock
getPersistentDataContainer, isSnapshotMethods inherited from class be.seeseemelk.mockbukkit.block.state.BlockStateMock
checkType, checkType, checkType, checkType, equals, getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getMetadata, getRawData, getType, getWorld, getX, getY, getZ, hashCode, hasMetadata, isCollidable, isPlaced, mockState, removeMetadata, setBlockData, setData, setMetadata, setRawData, setType, update, update, updateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.block.BlockState
getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isCollidable, isPlaced, setBlockData, setData, setRawData, setType, update, update, updateMethods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.block.TileState
getPersistentDataContainer, isSnapshot
-
Constructor Details
-
CreatureSpawnerMock
-
CreatureSpawnerMock
-
CreatureSpawnerMock
-
-
Method Details
-
getSnapshot
Description copied from class:BlockStateMockThis returns a copy of thisBlockStateMock. Inheritents of this class should override this method!- Specified by:
getSnapshotin classTileStateMock- Returns:
- A snapshot of this
BlockStateMock.
-
getSpawnedType
- Specified by:
getSpawnedTypein interfaceCreatureSpawner
-
setSpawnedType
- Specified by:
setSpawnedTypein interfaceCreatureSpawner
-
setCreatureTypeByName
- Specified by:
setCreatureTypeByNamein interfaceCreatureSpawner
-
getCreatureTypeName
- Specified by:
getCreatureTypeNamein interfaceCreatureSpawner
-
getDelay
public int getDelay()- Specified by:
getDelayin interfaceCreatureSpawner
-
setDelay
public void setDelay(int delay) - Specified by:
setDelayin interfaceCreatureSpawner
-
getMinSpawnDelay
public int getMinSpawnDelay()- Specified by:
getMinSpawnDelayin interfaceCreatureSpawner
-
setMinSpawnDelay
public void setMinSpawnDelay(int delay) - Specified by:
setMinSpawnDelayin interfaceCreatureSpawner
-
getMaxSpawnDelay
public int getMaxSpawnDelay()- Specified by:
getMaxSpawnDelayin interfaceCreatureSpawner
-
setMaxSpawnDelay
public void setMaxSpawnDelay(int delay) - Specified by:
setMaxSpawnDelayin interfaceCreatureSpawner
-
getSpawnCount
public int getSpawnCount()- Specified by:
getSpawnCountin interfaceCreatureSpawner
-
setSpawnCount
public void setSpawnCount(int spawnCount) - Specified by:
setSpawnCountin interfaceCreatureSpawner
-
getMaxNearbyEntities
public int getMaxNearbyEntities()- Specified by:
getMaxNearbyEntitiesin interfaceCreatureSpawner
-
setMaxNearbyEntities
public void setMaxNearbyEntities(int maxNearbyEntities) - Specified by:
setMaxNearbyEntitiesin interfaceCreatureSpawner
-
getRequiredPlayerRange
public int getRequiredPlayerRange()- Specified by:
getRequiredPlayerRangein interfaceCreatureSpawner
-
setRequiredPlayerRange
public void setRequiredPlayerRange(int requiredPlayerRange) - Specified by:
setRequiredPlayerRangein interfaceCreatureSpawner
-
getSpawnRange
public int getSpawnRange()- Specified by:
getSpawnRangein interfaceCreatureSpawner
-
setSpawnRange
public void setSpawnRange(int spawnRange) - Specified by:
setSpawnRangein interfaceCreatureSpawner
-
isActivated
public boolean isActivated()- Specified by:
isActivatedin interfaceCreatureSpawner
-
resetTimer
public void resetTimer()- Specified by:
resetTimerin interfaceCreatureSpawner
-
setSpawnedItem
- Specified by:
setSpawnedItemin interfaceCreatureSpawner
-