jayhillx

DefaultTimeCapability

Sep 1st, 2021 (edited)
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1. package com.jayhill.xlife.common.capability.time;
  2.  
  3. public class DefaultTimeCapability implements ITimeCapability {
  4.  
  5.     /** Stores the time player has been alive. */
  6.     private int time;
  7.  
  8.     public void setTime(int time) {
  9.         this.time = time;
  10.     }
  11.  
  12.     public int getTime() {
  13.         return this.time;
  14.     }
  15.  
  16.     public void onDeath(ITimeCapability respawn) {
  17.         this.time = respawn.getTime();
  18.     }
  19.  
  20. }
Add Comment
Please, Sign In to add comment