forked from CloudburstMC/Nukkit
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bf5a252
commit 687b0bd
Showing
31 changed files
with
428 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package cn.nukkit.item; | ||
|
||
import cn.nukkit.network.protocol.LevelSoundEventPacket; | ||
|
||
public class ItemRecordCreator extends ItemRecord { | ||
public ItemRecordCreator() { | ||
this(0, 1); | ||
} | ||
|
||
public ItemRecordCreator(Integer meta) { | ||
this(meta, 1); | ||
} | ||
|
||
public ItemRecordCreator(Integer meta, int count) { | ||
super(Item.MUSIC_DISC_CREATOR, meta, count); | ||
} | ||
|
||
@Override | ||
public int getSoundEvent() { | ||
return LevelSoundEventPacket.SOUND_RECORD_CREATOR; | ||
} | ||
|
||
@Override | ||
public int getDuration() { | ||
return 176 * 20; | ||
} | ||
|
||
@Override | ||
public int getComparatorSignal() { | ||
return 12; | ||
} | ||
|
||
@Override | ||
public String getTranslationIdentifier() { | ||
return "record_creator"; | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
src/main/java/cn/nukkit/item/ItemRecordCreatorMusicBox.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package cn.nukkit.item; | ||
|
||
import cn.nukkit.network.protocol.LevelSoundEventPacket; | ||
|
||
public class ItemRecordCreatorMusicBox extends ItemRecord { | ||
public ItemRecordCreatorMusicBox() { | ||
this(0, 1); | ||
} | ||
|
||
public ItemRecordCreatorMusicBox(Integer meta) { | ||
this(meta, 1); | ||
} | ||
|
||
public ItemRecordCreatorMusicBox(Integer meta, int count) { | ||
super(Item.MUSIC_DISC_CREATOR_MUSIC_BOX, meta, count); | ||
} | ||
|
||
@Override | ||
public int getSoundEvent() { | ||
return LevelSoundEventPacket.SOUND_RECORD_CREATOR_MUSIC_BOX; | ||
} | ||
|
||
@Override | ||
public int getDuration() { | ||
return 73 * 20; | ||
} | ||
|
||
@Override | ||
public int getComparatorSignal() { | ||
return 11; | ||
} | ||
|
||
@Override | ||
public String getTranslationIdentifier() { | ||
return "record_creator_music_box"; | ||
} | ||
} |
Oops, something went wrong.