java.lang.Object
net.minecraft.world.level.saveddata.SavedData
nokunami.floral_warfare.common.gardenOps.rewrite.FWRaidData

public class FWRaidData extends net.minecraft.world.level.saveddata.SavedData
  • Constructor Summary

    Constructors
    Constructor
    Description
    FWRaidData(net.minecraft.server.level.ServerLevel serverLevel)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    get(int id)
     
    static String
    getFileId(net.minecraft.core.Holder<net.minecraft.world.level.dimension.DimensionType> dim)
     
    getFWRaidAt(net.minecraft.core.BlockPos pos)
     
    getNearbyRaid(net.minecraft.core.BlockPos pos, int distance)
     
    static FWRaidData
    load(net.minecraft.server.level.ServerLevel level, net.minecraft.nbt.CompoundTag tag)
     
    static FWRaidData
    manage(net.minecraft.world.level.storage.DimensionDataStorage dds, net.minecraft.server.level.ServerLevel level, net.minecraft.core.Holder<net.minecraft.world.level.dimension.DimensionType> dimTypeHolder)
     
    @NotNull net.minecraft.nbt.CompoundTag
    save(net.minecraft.nbt.CompoundTag tag)
     
    void
     

    Methods inherited from class net.minecraft.world.level.saveddata.SavedData

    isDirty, save, setDirty, setDirty

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FWRaidData

      public FWRaidData(net.minecraft.server.level.ServerLevel serverLevel)
  • Method Details

    • get

      public FWRaid get(int id)
    • tick

      public void tick()
    • load

      public static FWRaidData load(net.minecraft.server.level.ServerLevel level, net.minecraft.nbt.CompoundTag tag)
    • save

      @NotNull public @NotNull net.minecraft.nbt.CompoundTag save(net.minecraft.nbt.CompoundTag tag)
      Specified by:
      save in class net.minecraft.world.level.saveddata.SavedData
    • getFileId

      public static String getFileId(net.minecraft.core.Holder<net.minecraft.world.level.dimension.DimensionType> dim)
    • getNearbyRaid

      @Nullable public FWRaid getNearbyRaid(net.minecraft.core.BlockPos pos, int distance)
    • manage

      public static FWRaidData manage(net.minecraft.world.level.storage.DimensionDataStorage dds, net.minecraft.server.level.ServerLevel level, net.minecraft.core.Holder<net.minecraft.world.level.dimension.DimensionType> dimTypeHolder)
    • getFWRaidAt

      @Nullable public FWRaid getFWRaidAt(net.minecraft.core.BlockPos pos)