Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.jayhill.xlife.common.capability.time;
- public class DefaultTimeCapability implements ITimeCapability {
- /** Stores the time player has been alive. */
- private int time;
- public void setTime(int time) {
- this.time = time;
- }
- public int getTime() {
- return this.time;
- }
- public void onDeath(ITimeCapability respawn) {
- this.time = respawn.getTime();
- }
- }
Add Comment
Please, Sign In to add comment