Added configs

This commit is contained in:
KäseToatz
2024-07-15 22:58:11 +02:00
parent 450268d399
commit ce1d46971e
6 changed files with 288 additions and 81 deletions

View File

@ -0,0 +1,30 @@
package com.kasetoatz.weathervote.votes;
import com.kasetoatz.weathervote.WeatherVote;
import com.kasetoatz.weathervote.enums.WeatherType;
import net.minecraft.server.command.ServerCommandSource;
public class VoteResponse {
private final ServerCommandSource source;
private final WeatherType weather;
private final boolean votePassed;
public VoteResponse(ServerCommandSource source, WeatherType weather, boolean votePassed)
{
this.source = source;
this.weather = weather;
this.votePassed = votePassed;
}
public ServerCommandSource getSource() {
return source;
}
public WeatherType getWeather() {
return weather;
}
public boolean hasVotePassed() {
return votePassed;
}
}