mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-06-29 07:58:20 +02:00
30 lines
757 B
Java
30 lines
757 B
Java
|
/*
|
||
|
* This file ("PageYoutubeButton.java") is part of the Actually Additions mod for Minecraft.
|
||
|
* It is created and owned by Ellpeck and distributed
|
||
|
* under the Actually Additions License to be found at
|
||
|
* http://ellpeck.de/actaddlicense
|
||
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
||
|
*
|
||
|
* © 2015-2016 Ellpeck
|
||
|
*/
|
||
|
|
||
|
package de.ellpeck.actuallyadditions.mod.booklet.page;
|
||
|
|
||
|
import de.ellpeck.actuallyadditions.mod.booklet.BookletUtils;
|
||
|
|
||
|
public class PageLinkButton extends PageButton{
|
||
|
|
||
|
private String link;
|
||
|
|
||
|
public PageLinkButton(int id, String link){
|
||
|
super(id);
|
||
|
this.link = link;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public boolean onAction(){
|
||
|
BookletUtils.openBrowser(this.link);
|
||
|
return true;
|
||
|
}
|
||
|
}
|