All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.sanctum.labyrinth.event.RegionTraverseEvent Maven / Gradle / Ivy

There is a newer version: 1.9.0
Show newest version
package com.github.sanctum.labyrinth.event;

import com.github.sanctum.labyrinth.data.Region;
import com.github.sanctum.labyrinth.event.custom.Vent;

public class RegionTraverseEvent extends Vent {

	private final Region.Resident resident;

	public RegionTraverseEvent(Region.Resident resident) {
		this.resident = resident;
	}

	public Region.Resident getResident() {
		return resident;
	}

	public Region getRegion() {
		return resident.getRegion().get(); // TODO: Try to throw explicitly or call #orElse(null) + update method nullity
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy