Class WrappedInfoProvider

java.lang.Object
com.hypixel.hytale.server.npc.sensorinfo.WrappedInfoProvider
All Implemented Interfaces:
InfoProvider

public class WrappedInfoProvider extends Object implements InfoProvider
A wrapped info provider for use in Sensors that need to delegate info fetching to child sensors. Matching sensors should be stored as a list in this wrapper during iteration so that they can be searched by getInfo.
  • Constructor Details

    • WrappedInfoProvider

      public WrappedInfoProvider()
      Creates an instance of the class where the list of matching sensors can change (i.e. SensorOr)
    • WrappedInfoProvider

      public WrappedInfoProvider(Sensor[] sensors)
      Creates an instance of the class where the list of matching sensors will never change if the provider is going to be called on (i.e. SensorAnd)
      Parameters:
      sensors - the full list of sensors
  • Method Details