Class SkullMock
java.lang.Object
be.seeseemelk.mockbukkit.block.state.BlockStateMock
be.seeseemelk.mockbukkit.block.state.TileStateMock
be.seeseemelk.mockbukkit.block.state.SkullMock
- All Implemented Interfaces:
org.bukkit.block.BlockState,org.bukkit.block.Skull,org.bukkit.block.TileState,org.bukkit.metadata.Metadatable,org.bukkit.persistence.PersistentDataHolder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable StringgetOwner()@Nullable org.bukkit.profile.PlayerProfile@Nullable org.bukkit.OfflinePlayer@Nullable com.destroystokyo.paper.profile.PlayerProfile@NotNull org.bukkit.block.BlockFace@NotNull org.bukkit.SkullType@NotNull org.bukkit.block.BlockStateThis returns a copy of thisBlockStateMock.booleanhasOwner()booleanvoidsetOwnerProfile(@Nullable org.bukkit.profile.PlayerProfile profile) voidsetOwningPlayer(@NotNull org.bukkit.OfflinePlayer player) voidsetPlayerProfile(@NotNull com.destroystokyo.paper.profile.PlayerProfile profile) voidsetRotation(@NotNull org.bukkit.block.BlockFace rotation) voidsetSkullType(org.bukkit.SkullType skullType) 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
-
SkullMock
public SkullMock(@NotNull @NotNull org.bukkit.Material material) -
SkullMock
protected SkullMock(@NotNull @NotNull org.bukkit.block.Block block) -
SkullMock
-
-
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.
-
hasOwner
public boolean hasOwner()- Specified by:
hasOwnerin interfaceorg.bukkit.block.Skull
-
getOwner
- Specified by:
getOwnerin interfaceorg.bukkit.block.Skull
-
setOwner
- Specified by:
setOwnerin interfaceorg.bukkit.block.Skull
-
getOwningPlayer
@Nullable public @Nullable org.bukkit.OfflinePlayer getOwningPlayer()- Specified by:
getOwningPlayerin interfaceorg.bukkit.block.Skull
-
setOwningPlayer
public void setOwningPlayer(@NotNull @NotNull org.bukkit.OfflinePlayer player) - Specified by:
setOwningPlayerin interfaceorg.bukkit.block.Skull
-
setPlayerProfile
public void setPlayerProfile(@NotNull @NotNull com.destroystokyo.paper.profile.PlayerProfile profile) - Specified by:
setPlayerProfilein interfaceorg.bukkit.block.Skull
-
getPlayerProfile
@Nullable public @Nullable com.destroystokyo.paper.profile.PlayerProfile getPlayerProfile()- Specified by:
getPlayerProfilein interfaceorg.bukkit.block.Skull
-
getOwnerProfile
public @Nullable org.bukkit.profile.PlayerProfile getOwnerProfile()- Specified by:
getOwnerProfilein interfaceorg.bukkit.block.Skull
-
setOwnerProfile
public void setOwnerProfile(@Nullable org.bukkit.profile.PlayerProfile profile) - Specified by:
setOwnerProfilein interfaceorg.bukkit.block.Skull
-
getRotation
@NotNull public @NotNull org.bukkit.block.BlockFace getRotation()- Specified by:
getRotationin interfaceorg.bukkit.block.Skull
-
setRotation
public void setRotation(@NotNull @NotNull org.bukkit.block.BlockFace rotation) - Specified by:
setRotationin interfaceorg.bukkit.block.Skull
-
getSkullType
@NotNull public @NotNull org.bukkit.SkullType getSkullType()- Specified by:
getSkullTypein interfaceorg.bukkit.block.Skull
-
setSkullType
public void setSkullType(org.bukkit.SkullType skullType) - Specified by:
setSkullTypein interfaceorg.bukkit.block.Skull
-