Class GridSpatialEvent

java.lang.Object
appeng.api.networking.events.GridEvent
appeng.api.networking.events.GridSpatialEvent

public class GridSpatialEvent extends GridEvent
An event that is posted whenever a spatial IO is active.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final double
    The energy in AE units needed to perform this transition.
    final net.minecraft.world.level.Level
    The level in which the Spatial I/O block entity triggering this transition is located.
    final net.minecraft.core.BlockPos
    The block position at which the Spatial I/O block entity triggering this transition is located.
  • Constructor Summary

    Constructors
    Constructor
    Description
    GridSpatialEvent(net.minecraft.world.level.Level spatialIoLevel, net.minecraft.core.BlockPos spatialIoPos, double EnergyUsage)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    void
    Prevent the Spatial IO transition from happening.

    Methods inherited from class java.lang.Object

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

    • spatialIoLevel

      public final net.minecraft.world.level.Level spatialIoLevel
      The level in which the Spatial I/O block entity triggering this transition is located.
    • spatialIoPos

      public final net.minecraft.core.BlockPos spatialIoPos
      The block position at which the Spatial I/O block entity triggering this transition is located.
    • spatialEnergyUsage

      public final double spatialEnergyUsage
      The energy in AE units needed to perform this transition.
  • Constructor Details

    • GridSpatialEvent

      public GridSpatialEvent(net.minecraft.world.level.Level spatialIoLevel, net.minecraft.core.BlockPos spatialIoPos, double EnergyUsage)
      Parameters:
      spatialIoLevel - Level where the Spatial IO is located
      spatialIoPos - Position where the Spatial IO is located
      EnergyUsage - ( the amount of energy that the SpatialIO uses)
  • Method Details

    • preventTransition

      public void preventTransition()
      Prevent the Spatial IO transition from happening.
    • isTransitionPrevented

      public boolean isTransitionPrevented()
      Returns:
      True if the transition into the spatial IO should not be allowed.