Class WindManager

java.lang.Object
net.frozenblock.lib.wind.api.WindManager

public class WindManager extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    net.minecraft.world.phys.Vec3
     
     
    double
     
    double
     
    double
     
    boolean
     
    net.minecraft.world.level.levelgen.synth.ImprovedNoise
     
    net.minecraft.world.level.levelgen.synth.ImprovedNoise
     
    net.minecraft.world.level.levelgen.synth.ImprovedNoise
     
    long
     
    long
     
    double
     
    double
     
    double
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    WindManager(@NotNull net.minecraft.server.level.ServerLevel level)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
     
    static void
     
    @NotNull WindStorage
     
    @NotNull WindStorage
    createData(@NotNull net.minecraft.nbt.CompoundTag nbt)
     
    @NotNull net.minecraft.network.FriendlyByteBuf
     
    static @NotNull WindManager
    getWindManager(@NotNull net.minecraft.server.level.ServerLevel level)
     
    @NotNull net.minecraft.world.phys.Vec3
    getWindMovement(@NotNull net.minecraft.world.level.LevelReader reader, @NotNull net.minecraft.core.BlockPos pos)
     
    @NotNull net.minecraft.world.phys.Vec3
    getWindMovement(@NotNull net.minecraft.world.level.LevelReader reader, @NotNull net.minecraft.core.BlockPos pos, double multiplier)
     
    @NotNull net.minecraft.world.phys.Vec3
    getWindMovement(@NotNull net.minecraft.world.level.LevelReader reader, @NotNull net.minecraft.core.BlockPos pos, double multiplier, double clamp)
     
    @NotNull net.minecraft.world.phys.Vec3
    getWindMovement3D(@NotNull net.minecraft.world.level.LevelReader reader, @NotNull net.minecraft.core.BlockPos pos, double stretch)
     
    @NotNull net.minecraft.world.phys.Vec3
    getWindMovement3D(@NotNull net.minecraft.world.level.LevelReader reader, @NotNull net.minecraft.core.BlockPos pos, double multiplier, double stretch)
     
    @NotNull net.minecraft.world.phys.Vec3
    getWindMovement3D(@NotNull net.minecraft.world.level.LevelReader reader, @NotNull net.minecraft.core.BlockPos pos, double multiplier, double clamp, double stretch)
     
    @NotNull net.minecraft.world.phys.Vec3
    getWindMovement3D(@NotNull net.minecraft.world.phys.Vec3 pos, double stretch)
     
    @NotNull net.minecraft.world.phys.Vec3
    getWindMovement3D(@NotNull net.minecraft.world.phys.Vec3 pos, double multiplier, double stretch)
     
    @NotNull net.minecraft.world.phys.Vec3
    getWindMovement3D(@NotNull net.minecraft.world.phys.Vec3 pos, double multiplier, double clamp, double stretch)
     
    @NotNull net.minecraft.world.phys.Vec3
    sample3D(@NotNull net.minecraft.world.phys.Vec3 pos, double stretch)
     
    @NotNull net.minecraft.world.phys.Vec3
    sampleVec3(@NotNull net.minecraft.world.level.levelgen.synth.ImprovedNoise sampler, double x, double y, double z)
     
    void
    sendSync(@NotNull net.minecraft.server.level.ServerLevel level)
     
    void
    sendSyncToPlayer(@NotNull net.minecraft.network.FriendlyByteBuf byteBuf, @NotNull net.minecraft.server.level.ServerPlayer player)
     
    void
    setSeed(long newSeed)
     
    void
     

    Methods inherited from class java.lang.Object

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

    • EXTENSION_PROVIDERS

      public static final Map<Function<WindManager,WindManagerExtension>,Integer> EXTENSION_PROVIDERS
    • attachedExtensions

      public final List<WindManagerExtension> attachedExtensions
    • overrideWind

      public boolean overrideWind
    • time

      public long time
    • commandWind

      public net.minecraft.world.phys.Vec3 commandWind
    • windX

      public double windX
    • windY

      public double windY
    • windZ

      public double windZ
    • laggedWindX

      public double laggedWindX
    • laggedWindY

      public double laggedWindY
    • laggedWindZ

      public double laggedWindZ
    • seed

      public long seed
    • perlinChecked

      public net.minecraft.world.level.levelgen.synth.ImprovedNoise perlinChecked
    • perlinLocal

      public net.minecraft.world.level.levelgen.synth.ImprovedNoise perlinLocal
    • perlinXoro

      public net.minecraft.world.level.levelgen.synth.ImprovedNoise perlinXoro
  • Constructor Details

    • WindManager

      public WindManager(@NotNull @NotNull net.minecraft.server.level.ServerLevel level)
  • Method Details

    • addExtension

      public static void addExtension(Function<WindManager,WindManagerExtension> extension, int priority)
    • addExtension

      public static void addExtension(Function<WindManager,WindManagerExtension> extension)
    • setSeed

      public void setSeed(long newSeed)
    • getWindManager

      @NotNull public static @NotNull WindManager getWindManager(@NotNull @NotNull net.minecraft.server.level.ServerLevel level)
    • createData

      @NotNull public @NotNull WindStorage createData()
    • createData

      @NotNull public @NotNull WindStorage createData(@NotNull @NotNull net.minecraft.nbt.CompoundTag nbt)
    • tick

      public void tick()
    • createSyncByteBuf

      @NotNull public @NotNull net.minecraft.network.FriendlyByteBuf createSyncByteBuf()
    • sendSync

      public void sendSync(@NotNull @NotNull net.minecraft.server.level.ServerLevel level)
    • sendSyncToPlayer

      public void sendSyncToPlayer(@NotNull @NotNull net.minecraft.network.FriendlyByteBuf byteBuf, @NotNull @NotNull net.minecraft.server.level.ServerPlayer player)
    • sampleVec3

      @NotNull public @NotNull net.minecraft.world.phys.Vec3 sampleVec3(@NotNull @NotNull net.minecraft.world.level.levelgen.synth.ImprovedNoise sampler, double x, double y, double z)
    • getWindMovement

      @NotNull public @NotNull net.minecraft.world.phys.Vec3 getWindMovement(@NotNull @NotNull net.minecraft.world.level.LevelReader reader, @NotNull @NotNull net.minecraft.core.BlockPos pos)
    • getWindMovement

      @NotNull public @NotNull net.minecraft.world.phys.Vec3 getWindMovement(@NotNull @NotNull net.minecraft.world.level.LevelReader reader, @NotNull @NotNull net.minecraft.core.BlockPos pos, double multiplier)
    • getWindMovement

      @NotNull public @NotNull net.minecraft.world.phys.Vec3 getWindMovement(@NotNull @NotNull net.minecraft.world.level.LevelReader reader, @NotNull @NotNull net.minecraft.core.BlockPos pos, double multiplier, double clamp)
    • getWindMovement3D

      @NotNull public @NotNull net.minecraft.world.phys.Vec3 getWindMovement3D(@NotNull @NotNull net.minecraft.world.level.LevelReader reader, @NotNull @NotNull net.minecraft.core.BlockPos pos, double stretch)
    • getWindMovement3D

      @NotNull public @NotNull net.minecraft.world.phys.Vec3 getWindMovement3D(@NotNull @NotNull net.minecraft.world.level.LevelReader reader, @NotNull @NotNull net.minecraft.core.BlockPos pos, double multiplier, double stretch)
    • getWindMovement3D

      @NotNull public @NotNull net.minecraft.world.phys.Vec3 getWindMovement3D(@NotNull @NotNull net.minecraft.world.level.LevelReader reader, @NotNull @NotNull net.minecraft.core.BlockPos pos, double multiplier, double clamp, double stretch)
    • getWindMovement3D

      @NotNull public @NotNull net.minecraft.world.phys.Vec3 getWindMovement3D(@NotNull @NotNull net.minecraft.world.phys.Vec3 pos, double stretch)
    • getWindMovement3D

      @NotNull public @NotNull net.minecraft.world.phys.Vec3 getWindMovement3D(@NotNull @NotNull net.minecraft.world.phys.Vec3 pos, double multiplier, double stretch)
    • getWindMovement3D

      @NotNull public @NotNull net.minecraft.world.phys.Vec3 getWindMovement3D(@NotNull @NotNull net.minecraft.world.phys.Vec3 pos, double multiplier, double clamp, double stretch)
    • sample3D

      @NotNull public @NotNull net.minecraft.world.phys.Vec3 sample3D(@NotNull @NotNull net.minecraft.world.phys.Vec3 pos, double stretch)