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.
A player went from one dimension to another, by portal or teleport; they are already in the new one.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonChangeDimension(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)
-