Interface CarrierMinecart<M extends CarrierMinecart<M>>

All Superinterfaces:
BlockOccupiedMinecart, Carrier, CopyableDataHolder, DataHolder, DataHolder.Mutable, DataSerializable, Entity, EntityProjectileSource, HoverEventSource<HoverEvent.ShowEntity>, Identifiable, Locatable, MinecartLike, ProjectileSource, RandomProvider, SerializableDataHolder, SerializableDataHolder.Mutable, Sound.Emitter, TeamMember, ValueContainer, Vehicle
All Known Subinterfaces:
ChestMinecart, HopperMinecart

public interface CarrierMinecart<M extends CarrierMinecart<M>> extends BlockOccupiedMinecart, Carrier
Represents a Minecart with a Carrier inside it.
  • Method Details

    • inventory

      CarriedInventory<M> inventory()
      Description copied from interface: Carrier
      Returns the inventory that this Carrier is holding.
      Specified by:
      inventory in interface Carrier
      Returns:
      The inventory this Carrier is holding