Class StructureMock
java.lang.Object
be.seeseemelk.mockbukkit.block.state.BlockStateMock
be.seeseemelk.mockbukkit.block.state.TileStateMock
be.seeseemelk.mockbukkit.block.state.StructureMock
- All Implemented Interfaces:
org.bukkit.block.BlockState,org.bukkit.block.Structure,org.bukkit.block.TileState,org.bukkit.metadata.Metadatable,org.bukkit.persistence.PersistentDataHolder
Mock implementation of a
Structure.- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStructureMock(@NotNull StructureMock state) Constructs a newStructureMockby cloning the data from an existing one.StructureMock(@NotNull org.bukkit.Material material) Constructs a newStructureMockfor the providedMaterial.protectedStructureMock(@NotNull org.bukkit.block.Block block) Constructs a newStructureMockfor the providedBlock. -
Method Summary
Modifier and TypeMethodDescription@NotNull Stringfloat@NotNull String@NotNull org.bukkit.block.structure.Mirror@NotNull org.bukkit.util.BlockVector@NotNull org.bukkit.block.structure.StructureRotationlonggetSeed()@NotNull org.bukkit.block.BlockStateThis returns a copy of thisBlockStateMock.@NotNull String@NotNull org.bukkit.util.BlockVector@NotNull org.bukkit.block.structure.UsageModebooleanbooleanbooleanvoidvoidsetAuthor(@NotNull org.bukkit.entity.LivingEntity livingEntity) voidsetBoundingBoxVisible(boolean showBoundingBox) voidsetIgnoreEntities(boolean ignoreEntities) voidsetIntegrity(float integrity) voidsetMetadata(@NotNull String metadata) voidsetMirror(@NotNull org.bukkit.block.structure.Mirror mirror) voidsetRelativePosition(@NotNull org.bukkit.util.BlockVector vector) voidsetRotation(@NotNull org.bukkit.block.structure.StructureRotation rotation) voidsetSeed(long seed) voidsetShowAir(boolean showAir) voidsetStructureName(@NotNull String name) voidsetStructureSize(@NotNull org.bukkit.util.BlockVector vector) voidsetUsageMode(@NotNull org.bukkit.block.structure.UsageMode mode) 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, copy, copy, equals, getBlock, getBlockData, getChunk, getData, getDrops, getDrops, getDrops, 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
copy, copy, getBlock, getBlockData, getChunk, getData, getDrops, getDrops, getDrops, 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
-
StructureMock
public StructureMock(@NotNull @NotNull org.bukkit.Material material) - Parameters:
material- The material this state is for.
-
StructureMock
protected StructureMock(@NotNull @NotNull org.bukkit.block.Block block) - Parameters:
block- The block this state is for.
-
StructureMock
Constructs a newStructureMockby cloning the data from an existing one.- Parameters:
state- The state to clone.
-
-
Method Details
-
getSnapshot
@NotNull public @NotNull org.bukkit.block.BlockState 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.
-
getStructureName
- Specified by:
getStructureNamein interfaceorg.bukkit.block.Structure
-
setStructureName
- Specified by:
setStructureNamein interfaceorg.bukkit.block.Structure
-
getAuthor
- Specified by:
getAuthorin interfaceorg.bukkit.block.Structure
-
setAuthor
- Specified by:
setAuthorin interfaceorg.bukkit.block.Structure
-
setAuthor
public void setAuthor(@NotNull @NotNull org.bukkit.entity.LivingEntity livingEntity) - Specified by:
setAuthorin interfaceorg.bukkit.block.Structure
-
getRelativePosition
@NotNull public @NotNull org.bukkit.util.BlockVector getRelativePosition()- Specified by:
getRelativePositionin interfaceorg.bukkit.block.Structure
-
setRelativePosition
public void setRelativePosition(@NotNull @NotNull org.bukkit.util.BlockVector vector) - Specified by:
setRelativePositionin interfaceorg.bukkit.block.Structure
-
getStructureSize
@NotNull public @NotNull org.bukkit.util.BlockVector getStructureSize()- Specified by:
getStructureSizein interfaceorg.bukkit.block.Structure
-
setStructureSize
public void setStructureSize(@NotNull @NotNull org.bukkit.util.BlockVector vector) - Specified by:
setStructureSizein interfaceorg.bukkit.block.Structure
-
setMirror
public void setMirror(@NotNull @NotNull org.bukkit.block.structure.Mirror mirror) - Specified by:
setMirrorin interfaceorg.bukkit.block.Structure
-
getMirror
@NotNull public @NotNull org.bukkit.block.structure.Mirror getMirror()- Specified by:
getMirrorin interfaceorg.bukkit.block.Structure
-
setRotation
public void setRotation(@NotNull @NotNull org.bukkit.block.structure.StructureRotation rotation) - Specified by:
setRotationin interfaceorg.bukkit.block.Structure
-
getRotation
@NotNull public @NotNull org.bukkit.block.structure.StructureRotation getRotation()- Specified by:
getRotationin interfaceorg.bukkit.block.Structure
-
setUsageMode
public void setUsageMode(@NotNull @NotNull org.bukkit.block.structure.UsageMode mode) - Specified by:
setUsageModein interfaceorg.bukkit.block.Structure
-
getUsageMode
@NotNull public @NotNull org.bukkit.block.structure.UsageMode getUsageMode()- Specified by:
getUsageModein interfaceorg.bukkit.block.Structure
-
setIgnoreEntities
public void setIgnoreEntities(boolean ignoreEntities) - Specified by:
setIgnoreEntitiesin interfaceorg.bukkit.block.Structure
-
isIgnoreEntities
public boolean isIgnoreEntities()- Specified by:
isIgnoreEntitiesin interfaceorg.bukkit.block.Structure
-
setShowAir
public void setShowAir(boolean showAir) - Specified by:
setShowAirin interfaceorg.bukkit.block.Structure
-
isShowAir
public boolean isShowAir()- Specified by:
isShowAirin interfaceorg.bukkit.block.Structure
-
setBoundingBoxVisible
public void setBoundingBoxVisible(boolean showBoundingBox) - Specified by:
setBoundingBoxVisiblein interfaceorg.bukkit.block.Structure
-
isBoundingBoxVisible
public boolean isBoundingBoxVisible()- Specified by:
isBoundingBoxVisiblein interfaceorg.bukkit.block.Structure
-
setIntegrity
public void setIntegrity(float integrity) - Specified by:
setIntegrityin interfaceorg.bukkit.block.Structure
-
getIntegrity
public float getIntegrity()- Specified by:
getIntegrityin interfaceorg.bukkit.block.Structure
-
setSeed
public void setSeed(long seed) - Specified by:
setSeedin interfaceorg.bukkit.block.Structure
-
getSeed
public long getSeed()- Specified by:
getSeedin interfaceorg.bukkit.block.Structure
-
setMetadata
- Specified by:
setMetadatain interfaceorg.bukkit.block.Structure
-
getMetadata
- Specified by:
getMetadatain interfaceorg.bukkit.block.Structure
-