RecordType
TODO: These tags need to be removed once we get rid of LegacyEnumShimTrait (PM6) These are retained for backwards compatibility only.
Cases
DISK_11
php
case DISK_11DISK_13
php
case DISK_13DISK_5
php
case DISK_5DISK_BLOCKS
php
case DISK_BLOCKSDISK_BOUNCE 5.46.0
php
case DISK_BOUNCEDISK_CAT
php
case DISK_CATDISK_CHIRP
php
case DISK_CHIRPDISK_CREATOR
php
case DISK_CREATORDISK_CREATOR_MUSIC_BOX
php
case DISK_CREATOR_MUSIC_BOXDISK_FAR
php
case DISK_FARDISK_LAVA_CHICKEN
php
case DISK_LAVA_CHICKENDISK_MALL
php
case DISK_MALLDISK_MELLOHI
php
case DISK_MELLOHIDISK_OTHERSIDE
php
case DISK_OTHERSIDEDISK_PIGSTEP
php
case DISK_PIGSTEPDISK_PRECIPICE
php
case DISK_PRECIPICEDISK_RELIC
php
case DISK_RELICDISK_STAL
php
case DISK_STALDISK_STRAD
php
case DISK_STRADDISK_TEARS 5.46.0
php
case DISK_TEARSDISK_WAIT
php
case DISK_WAITDISK_WARD
php
case DISK_WARDMethods
getComparatorSignal() 5.46.0
php
public function getComparatorSignal() : intReturns the signal strength (1-15) a comparator reading a jukebox with this disc outputs.
getDurationSeconds() 5.46.0
php
public function getDurationSeconds() : intReturns the length of the track in seconds (a playing jukebox emits redstone power for that long).
getSoundId()
php
public function getSoundId() : intDeprecated
Deprecated.
getSoundName()
php
public function getSoundName() : stringgetTranslatableName()
php
public function getTranslatableName() : \pocketmine\lang\Translatable