Create a new event and add a few fields to existing events
This commit is contained in:
parent
957b65ebb3
commit
ede19b0572
8 changed files with 61 additions and 11 deletions
|
@ -1,13 +1,19 @@
|
|||
package dev.zontreck.libzontreck.events;
|
||||
|
||||
import dev.zontreck.libzontreck.profiles.Profile;
|
||||
import net.minecraft.server.level.ServerLevel;
|
||||
import net.minecraft.server.level.ServerPlayer;
|
||||
import net.minecraftforge.eventbus.api.Event;
|
||||
|
||||
public class ProfileLoadedEvent extends Event
|
||||
{
|
||||
public Profile profile;
|
||||
public ProfileLoadedEvent(Profile prof)
|
||||
public ServerPlayer player;
|
||||
public ServerLevel level;
|
||||
public ProfileLoadedEvent(Profile prof, ServerPlayer player, ServerLevel level)
|
||||
{
|
||||
profile=prof;
|
||||
this.player=player;
|
||||
this.level=level;
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue