Class RadarServerStorage

java.lang.Object
net.nullved.pmweatherapi.radar.RadarStorage
net.nullved.pmweatherapi.radar.RadarServerStorage

public class RadarServerStorage extends RadarStorage
A Radar Storage for the server side. There is a RadarServerStorage for each dimension of a save
You should not create a RadarServerStorage, instead, use PMWStorages.getRadar(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level>).
Since:
0.14.15.3
  • Constructor Details

  • Method Details

    • getLevel

      public net.minecraft.server.level.ServerLevel getLevel()
      Gets the level associated with this RadarServerStorage
      Specified by:
      getLevel in class RadarStorage
      Returns:
      A ServerLevel
      Since:
      0.14.15.3
    • syncAllToPlayer

      public void syncAllToPlayer(net.minecraft.world.entity.player.Player player)
      Syncs all radars to the given player
      Parameters:
      player - The Player to sync all radars to
      Since:
      0.14.15.3
    • syncAdd

      public void syncAdd(net.minecraft.core.BlockPos pos)
      Syncs a new radar to all clients
      Parameters:
      pos - The BlockPos of the new radar
      Since:
      0.14.15.3
    • syncAdd

      public void syncAdd(Collection<net.minecraft.core.BlockPos> posList)
      Syncs multiple new radars to all clients
      Parameters:
      posList - A Collection of BlockPos to sync
      Since:
      0.14.15.3
    • syncRemove

      public void syncRemove(net.minecraft.core.BlockPos pos)
      Syncs a radar removal to all clients
      Parameters:
      pos - The BlockPos of the radar to remove
      Since:
      0.14.15.3
    • syncRemove

      public void syncRemove(Collection<net.minecraft.core.BlockPos> posList)
      Syncs multiple radar removals to all clients
      Parameters:
      posList - A Collection of BlockPos to sync
      Since:
      0.14.15.3