mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-21 12:32:29 +00:00
- Finished the RegisterZenClassesTask and applied it to the API & Mod support projects - Started work on the events API - Added a mod.info file - Added mods detection API
45 lines
985 B
Java
45 lines
985 B
Java
/*
|
|
* To change this license header, choose License Headers in Project Properties.
|
|
* To change this template file, choose Tools | Templates
|
|
* and open the template in the editor.
|
|
*/
|
|
|
|
package minetweaker.api.event;
|
|
|
|
import minetweaker.api.player.IPlayer;
|
|
import minetweaker.api.world.IDimension;
|
|
import stanhebben.zenscript.annotations.ZenClass;
|
|
import stanhebben.zenscript.annotations.ZenGetter;
|
|
|
|
/**
|
|
*
|
|
* @author Stan
|
|
*/
|
|
@ZenClass("minetweaker.event.PlayerChangedDimensionEvent")
|
|
public class PlayerChangedDimensionEvent {
|
|
private final IPlayer player;
|
|
private final IDimension from;
|
|
private final IDimension to;
|
|
|
|
public PlayerChangedDimensionEvent(IPlayer player, IDimension from, IDimension to) {
|
|
this.player = player;
|
|
this.from = from;
|
|
this.to = to;
|
|
}
|
|
|
|
@ZenGetter("player")
|
|
public IPlayer getPlayer() {
|
|
return player;
|
|
}
|
|
|
|
@ZenGetter("from")
|
|
public IDimension getFrom() {
|
|
return from;
|
|
}
|
|
|
|
@ZenGetter("to")
|
|
public IDimension getTo() {
|
|
return to;
|
|
}
|
|
}
|