Interface PlayerEvents.ChangeDimension

Enclosing class:
PlayerEvents
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface PlayerEvents.ChangeDimension
A player went from one dimension to another, by portal or teleport; they are already in the new one.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onChangeDimension(net.minecraft.server.level.ServerPlayer player, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> from, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> to)
     
  • Method Details

    • onChangeDimension

      void onChangeDimension(net.minecraft.server.level.ServerPlayer player, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> from, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> to)