Search in sources :

Example 1 with BlockTransactionType

use of org.spongepowered.common.event.tracking.context.transaction.type.BlockTransactionType in project SpongeCommon by SpongePowered.

the class SpongeRegistryLoaders method blockTransactionTypes.

public static RegistryLoader<TransactionType<@NonNull ?>> blockTransactionTypes() {
    return RegistryLoader.of(l -> {
        l.add(TransactionTypes.BLOCK, k -> new BlockTransactionType());
        l.add(TransactionTypes.ENTITY_DEATH_DROPS, k -> new NoOpTransactionType<>(false, k.value().toUpperCase(Locale.ROOT)));
        l.add(TransactionTypes.CLICK_CONTAINER_EVENT, k -> new NoOpTransactionType<>(false, k.value().toUpperCase(Locale.ROOT)));
        l.add(TransactionTypes.NEIGHBOR_NOTIFICATION, k -> new NoOpTransactionType<>(false, k.value().toUpperCase(Locale.ROOT)));
        l.add(TransactionTypes.SPAWN_ENTITY, k -> new NoOpTransactionType<>(false, k.value().toUpperCase(Locale.ROOT)));
        l.add(TransactionTypes.CHANGE_INVENTORY_EVENT, k -> new NoOpTransactionType<>(false, k.value().toUpperCase(Locale.ROOT)));
        l.add(TransactionTypes.SLOT_CHANGE, k -> new NoOpTransactionType<>(false, k.value().toUpperCase(Locale.ROOT)));
        l.add(TransactionTypes.INTERACT_CONTAINER_EVENT, k -> new NoOpTransactionType<>(false, k.value().toUpperCase(Locale.ROOT)));
    });
}
Also used : BlockTransactionType(org.spongepowered.common.event.tracking.context.transaction.type.BlockTransactionType)

Aggregations

BlockTransactionType (org.spongepowered.common.event.tracking.context.transaction.type.BlockTransactionType)1