mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 11:05:40 +00:00
Reimplement ITeleporter Patches (#6886)
This commit is contained in:
1 parent
a567ddaa10
commit
91a2b02590
9 files changed
+151
-33
No files matched your search
@@ -66,7 +66,7 @@ public class CommandSetDimension
|
||||
// throw INVALID_DIMENSION.create(dim);
|
||||
|
||||
entities.stream().filter(e -> e.world == dim).forEach(e -> sender.sendFeedback(new TranslationTextComponent("commands.forge.setdim.invalid.nochange", e.getDisplayName().getString(), dim), true));
|
||||
entities.stream().filter(e -> e.world != dim).forEach(e -> e.func_241206_a_(dim/* TODO: Custom Teleporters , new ITeleporter()
|
||||
entities.stream().filter(e -> e.world != dim).forEach(e -> e.changeDimension(dim , new ITeleporter()
|
||||
{
|
||||
@Override
|
||||
public Entity placeEntity(Entity entity, ServerWorld currentWorld, ServerWorld destWorld, float yaw, Function<Boolean, Entity> repositionEntity)
|
||||
@@ -75,7 +75,7 @@ public class CommandSetDimension
|
||||
repositionedEntity.setPositionAndUpdate(pos.getX(), pos.getY(), pos.getZ());
|
||||
return repositionedEntity;
|
||||
}
|
||||
}*/));
|
||||
}));
|
||||
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in new issue
Block a user