All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.papermc.lib.features.inventoryholdersnapshot.InventoryHolderSnapshotBeforeSnapshots Maven / Gradle / Ivy

package io.papermc.lib.features.inventoryholdersnapshot;

import org.bukkit.inventory.Inventory;

/**
 * Block State Snapshots was added in 1.12, this will always be no snapshots
 */
public class InventoryHolderSnapshotBeforeSnapshots implements InventoryHolderSnapshot {

    @Override
    public InventoryHolderSnapshotResult getHolder(Inventory inventory, boolean useSnapshot) {
        return new InventoryHolderSnapshotResult(false, inventory.getHolder());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy