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
Mock implementation of a
Skull.- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructs a newSkullMockby cloning the data from an existing one.SkullMock(@NotNull org.bukkit.Material material) Constructs a newSkullMockfor the providedMaterial.protectedSkullMock(@NotNull org.bukkit.block.Block block) Constructs a newSkullMockfor the providedBlock. -
Method Summary
Modifier and TypeMethodDescription@Nullable org.bukkit.NamespacedKey@Nullable StringgetOwner()@Nullable org.bukkit.profile.PlayerProfileDeprecated.@Nullable org.bukkit.OfflinePlayer@Nullable com.destroystokyo.paper.profile.PlayerProfile@NotNull org.bukkit.block.BlockFace@NotNull org.bukkit.SkullTypeDeprecated.@NotNull org.bukkit.block.BlockStateThis returns a copy of thisBlockStateMock.booleanhasOwner()voidsetNoteBlockSound(@Nullable org.bukkit.NamespacedKey noteBlockSound) booleanvoidsetOwnerProfile(@Nullable org.bukkit.profile.PlayerProfile profile) Deprecated.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) Deprecated.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
-
SkullMock
public SkullMock(@NotNull @NotNull org.bukkit.Material material) Constructs a newSkullMockfor the providedMaterial. Only supports materials inMaterialTags.SKULLS- Parameters:
material- The material this state is for.
-
SkullMock
protected SkullMock(@NotNull @NotNull org.bukkit.block.Block block) - Parameters:
block- The block this state is for.
-
SkullMock
Constructs a newSkullMockby 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.
-
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
Deprecated.- Specified by:
getOwnerProfilein interfaceorg.bukkit.block.Skull
-
setOwnerProfile
@Deprecated(since="1.18") public void setOwnerProfile(@Nullable org.bukkit.profile.PlayerProfile profile) Deprecated.- Specified by:
setOwnerProfilein interfaceorg.bukkit.block.Skull
-
getNoteBlockSound
@Nullable public @Nullable org.bukkit.NamespacedKey getNoteBlockSound()- Specified by:
getNoteBlockSoundin interfaceorg.bukkit.block.Skull
-
setNoteBlockSound
public void setNoteBlockSound(@Nullable @Nullable org.bukkit.NamespacedKey noteBlockSound) - Specified by:
setNoteBlockSoundin 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
Deprecated.- Specified by:
getSkullTypein interfaceorg.bukkit.block.Skull
-
setSkullType
Deprecated.- Specified by:
setSkullTypein interfaceorg.bukkit.block.Skull
-