Class LegacyDataWatcher

java.lang.Object
com.comphenix.protocol.wrappers.AbstractWrapper
com.comphenix.protocol.wrappers.LegacyDataWatcher
All Implemented Interfaces:
IDataWatcher, Iterable<WrappedWatchableObject>

public class LegacyDataWatcher extends AbstractWrapper implements IDataWatcher
Represents a DataWatcher
  • Constructor Details

    • LegacyDataWatcher

      public LegacyDataWatcher(Object handle)
      Constructs a new DataWatcher wrapper around a NMS handle. The resulting DataWatcher will likely have existing values that can be removed with clear().
      Parameters:
      handle - DataWatcher handle
    • LegacyDataWatcher

      @Deprecated public LegacyDataWatcher()
      Deprecated.
      Constructs a new DataWatcher using a fake egg entity. The resulting DataWatcher will not have any keys or values and new ones will have to be added using watcher objects.
    • LegacyDataWatcher

      @Deprecated public LegacyDataWatcher(org.bukkit.entity.Entity entity)
      Deprecated.
      Constructs a new DataWatcher using a real entity. The resulting DataWatcher will not have any keys or values and new ones will have to be added using watcher objects.
      Parameters:
      entity - The entity
    • LegacyDataWatcher

      @Deprecated public LegacyDataWatcher(List<WrappedWatchableObject> objects)
      Deprecated.
      Constructs a new DataWatcher using a fake egg entity and a given list of watchable objects.
      Parameters:
      objects - The list of objects
  • Method Details