// Path: src/integration/java/com/github/atomicblom/shearmadness/variations/chancecubes/capability/IChanceCubeParticipationCapability.java
// public interface IChanceCubeParticipationCapability {
//     boolean isParticipating();
//     void setParticipation(boolean isParticipating);
// }


import com.github.atomicblom.shearmadness.variations.chancecubes.capability.IChanceCubeParticipationCapability;
import net.minecraft.command.CommandBase;
import net.minecraft.command.CommandException;
import net.minecraft.command.ICommandSender;
import net.minecraft.server.MinecraftServer;
import net.minecraft.util.text.TextComponentTranslation;
import net.minecraftforge.common.capabilities.ICapabilityProvider;
package com.github.atomicblom.shearmadness.variations.chancecubes;


public class ChanceCubeCommand extends CommandBase{
    @Override
    public String getCommandName() {
        return "chancecubes";
    }

    @Override
    public String getCommandUsage(ICommandSender sender) {
        return "command.shearmadness:chancecube.usage";
    }

    @Override
    public void execute(MinecraftServer server, ICommandSender sender, String[] args) throws CommandException {
        if (sender instanceof ICapabilityProvider) {
            if (((ICapabilityProvider) sender).hasCapability(ChanceCubesReference.CHANCE_CUBE_PARTICIPATION, null)) {
// Path: src/integration/java/com/github/atomicblom/shearmadness/variations/chancecubes/capability/IChanceCubeParticipationCapability.java
// public interface IChanceCubeParticipationCapability {
//     boolean isParticipating();
//     void setParticipation(boolean isParticipating);
// }


// Path: src/integration/java/com/github/atomicblom/shearmadness/variations/chancecubes/ChanceCubeCommand.java
import com.github.atomicblom.shearmadness.variations.chancecubes.capability.IChanceCubeParticipationCapability;
import net.minecraft.command.CommandBase;
import net.minecraft.command.CommandException;
import net.minecraft.command.ICommandSender;
import net.minecraft.server.MinecraftServer;
import net.minecraft.util.text.TextComponentTranslation;
import net.minecraftforge.common.capabilities.ICapabilityProvider;

package com.github.atomicblom.shearmadness.variations.chancecubes;


public class ChanceCubeCommand extends CommandBase{
    @Override
    public String getCommandName() {
        return "chancecubes";
    }

    @Override
    public String getCommandUsage(ICommandSender sender) {
        return "command.shearmadness:chancecube.usage";
    }

    @Override
    public void execute(MinecraftServer server, ICommandSender sender, String[] args) throws CommandException {
        if (sender instanceof ICapabilityProvider) {
            if (((ICapabilityProvider) sender).hasCapability(ChanceCubesReference.CHANCE_CUBE_PARTICIPATION, null)) {
                final IChanceCubeParticipationCapability capability = ((ICapabilityProvider) sender).getCapability(ChanceCubesReference.CHANCE_CUBE_PARTICIPATION, null);