mod-dev-talk Monday 30 August 2021

24 messages3 people

  1. gudenau

    I'll probably clean up my weather code a bit and throw it into a branch.
  2. gudenau

        /**
         * Gets the instance of the Aether Server world.
         *
         * @param context The command context
         * @return A bi-type world instance
         */
        @SuppressWarnings("unchecked")
        private static <T extends ServerWorld & ServerWorldDuck> T getAetherWorld(CommandContext<ServerCommandSource> context){
            return (T)context.getSource().getServer().getWorld(AetherDimension.AETHER_WORLD_KEY);
        }
    @cr24 @Azzyypaaras
  3. AzzyypaarasTeam

    o
  4. gudenau

    The returned type is ServerWorld and ServerWorldDuck at the same time.
  5. AzzyypaarasTeam

    @CDAGaming @Jack Papel help this is beyond the level of comprehension my ass has
  6. reoseah

    if you know that Aether world always implements your interface, just cast directly to it
  7. gudenau

    var is great because it bypasses a lot of that annoying stuff.
  8. gudenau

    @Azzyypaaras :irritater:
  9. gudenau

    Neat.
  10. AzzyypaarasTeam

    :concernedtater:
  11. gudenau

    I was this close to deleting all of my weather code by accident.
  12. AzzyypaarasTeam

    oof