Class MinecartStore

java.lang.Object
net.glowstone.io.entity.EntityStore<GlowMinecart>
net.glowstone.io.entity.MinecartStore

public class MinecartStore extends EntityStore<GlowMinecart>
  • Constructor Details

  • Method Details

    • createEntity

      public GlowMinecart createEntity(org.bukkit.Location location, CompoundTag compound)
      Description copied from class: EntityStore
      Create a new entity of this store's type at the given location. The load method will be called separately.
      Specified by:
      createEntity in class EntityStore<GlowMinecart>
      Parameters:
      location - The location.
      compound - The entity's tag, if extra data is needed.
      Returns:
      The new entity.
    • load

      public void load(GlowMinecart entity, CompoundTag tag)
      Description copied from class: EntityStore
      Load data into an existing entity of the appropriate type from the given compound tag.
      Overrides:
      load in class EntityStore<GlowMinecart>
      Parameters:
      entity - The target entity.
      tag - The entity's tag.
    • save

      public void save(GlowMinecart entity, CompoundTag tag)
      Description copied from class: EntityStore
      Save information about this entity to the given tag.
      Overrides:
      save in class EntityStore<GlowMinecart>
      Parameters:
      entity - The entity to save.
      tag - The target tag.