-
Notifications
You must be signed in to change notification settings - Fork 432
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master-MC1.7.10' of github.com:MightyPirates/OpenComput…
…ers into master-MC1.7.10
- Loading branch information
Showing
4 changed files
with
70 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package li.cil.oc.api.event; | ||
|
||
import cpw.mods.fml.common.eventhandler.Cancelable; | ||
import cpw.mods.fml.common.eventhandler.Event; | ||
import net.minecraft.tileentity.TileEntitySign; | ||
|
||
/** | ||
* A bit more specific sign change event that holds information about new text of the sign. Used in the sign upgrade. | ||
*/ | ||
public abstract class SignChangeEvent extends Event { | ||
public final TileEntitySign sign; | ||
public final String[] lines; | ||
|
||
private SignChangeEvent(TileEntitySign sign, String[] lines) { | ||
this.sign = sign; | ||
this.lines = lines; | ||
} | ||
|
||
@Cancelable | ||
public static class Pre extends SignChangeEvent { | ||
public Pre(TileEntitySign sign, String[] lines) { | ||
super(sign, lines); | ||
} | ||
} | ||
|
||
public static class Post extends SignChangeEvent { | ||
public Post(TileEntitySign sign, String[] lines) { | ||
super(sign, lines); | ||
} | ||
} | ||
} |
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