Class StructureBlockCache

java.lang.Object
org.geysermc.geyser.session.cache.StructureBlockCache

public final class StructureBlockCache extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    @Nullable org.cloudburstmc.math.vector.Vector3i
    Stores the offset changes added by Geyser that ensure that structure bounds are the same for Java and Bedrock
    @Nullable org.cloudburstmc.math.vector.Vector3i
    Stores the current structure block position while we're waiting on the Java server to send the data we need.
    @Nullable String
    Stores the current structure's name to be able to detect changes in the loaded structure
    void
    setBedrockOffset(@Nullable org.cloudburstmc.math.vector.Vector3i bedrockOffset)
    Stores the offset changes added by Geyser that ensure that structure bounds are the same for Java and Bedrock
    void
    setCurrentStructureBlock(@Nullable org.cloudburstmc.math.vector.Vector3i currentStructureBlock)
    Stores the current structure block position while we're waiting on the Java server to send the data we need.
    void
    setCurrentStructureName(@Nullable String currentStructureName)
    Stores the current structure's name to be able to detect changes in the loaded structure

    Methods inherited from class java.lang.Object

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

    • StructureBlockCache

      public StructureBlockCache()
  • Method Details

    • clear

      public void clear()
    • setCurrentStructureName

      public void setCurrentStructureName(@Nullable String currentStructureName)
      Stores the current structure's name to be able to detect changes in the loaded structure
    • setBedrockOffset

      public void setBedrockOffset(@Nullable org.cloudburstmc.math.vector.Vector3i bedrockOffset)
      Stores the offset changes added by Geyser that ensure that structure bounds are the same for Java and Bedrock
    • setCurrentStructureBlock

      public void setCurrentStructureBlock(@Nullable org.cloudburstmc.math.vector.Vector3i currentStructureBlock)
      Stores the current structure block position while we're waiting on the Java server to send the data we need.
    • getCurrentStructureName

      public @Nullable String getCurrentStructureName()
      Stores the current structure's name to be able to detect changes in the loaded structure
    • getBedrockOffset

      public @Nullable org.cloudburstmc.math.vector.Vector3i getBedrockOffset()
      Stores the offset changes added by Geyser that ensure that structure bounds are the same for Java and Bedrock
    • getCurrentStructureBlock

      public @Nullable org.cloudburstmc.math.vector.Vector3i getCurrentStructureBlock()
      Stores the current structure block position while we're waiting on the Java server to send the data we need.