Merge branch 'ReplaceCarpetWithTeamcolor' of SteamWar/FightSystem into master
Dieser Commit ist enthalten in:
Commit
37955438ba
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
.idea
|
.idea
|
||||||
target
|
target
|
||||||
dependency-reduced-pom.xml
|
dependency-reduced-pom.xml
|
||||||
|
*.iml
|
@ -35,6 +35,7 @@ class FightTeam_14 {
|
|||||||
private static final Set<BaseBlock> GLASS_PANE_SET = Collections.singleton(Objects.requireNonNull(BlockTypes.PINK_STAINED_GLASS_PANE).getDefaultState().toBaseBlock());
|
private static final Set<BaseBlock> GLASS_PANE_SET = Collections.singleton(Objects.requireNonNull(BlockTypes.PINK_STAINED_GLASS_PANE).getDefaultState().toBaseBlock());
|
||||||
private static final Set<BaseBlock> CONCRETE_SET = Collections.singleton(Objects.requireNonNull(BlockTypes.PINK_CONCRETE).getDefaultState().toBaseBlock());
|
private static final Set<BaseBlock> CONCRETE_SET = Collections.singleton(Objects.requireNonNull(BlockTypes.PINK_CONCRETE).getDefaultState().toBaseBlock());
|
||||||
private static final Set<BaseBlock> CONCRETE_POWDER_SET = Collections.singleton(Objects.requireNonNull(BlockTypes.PINK_CONCRETE_POWDER).getDefaultState().toBaseBlock());
|
private static final Set<BaseBlock> CONCRETE_POWDER_SET = Collections.singleton(Objects.requireNonNull(BlockTypes.PINK_CONCRETE_POWDER).getDefaultState().toBaseBlock());
|
||||||
|
private static final Set<BaseBlock> CARPET_SET = Collections.singleton(Objects.requireNonNull(BlockTypes.PINK_CARPET).getDefaultState().toBaseBlock());
|
||||||
|
|
||||||
static void setTeamColor(Team team, ChatColor color){
|
static void setTeamColor(Team team, ChatColor color){
|
||||||
team.setColor(color);
|
team.setColor(color);
|
||||||
@ -46,6 +47,7 @@ class FightTeam_14 {
|
|||||||
CuboidRegion region = new CuboidRegion(corner3, corner3.add(schemsize3));
|
CuboidRegion region = new CuboidRegion(corner3, corner3.add(schemsize3));
|
||||||
try {
|
try {
|
||||||
e.replaceBlocks(region, WOOL_SET, Objects.requireNonNull(BlockTypes.get(c.name().toLowerCase() + "_wool")).getDefaultState().toBaseBlock());
|
e.replaceBlocks(region, WOOL_SET, Objects.requireNonNull(BlockTypes.get(c.name().toLowerCase() + "_wool")).getDefaultState().toBaseBlock());
|
||||||
|
e.replaceBlocks(region, CARPET_SET, Objects.requireNonNull(BlockTypes.get(c.name().toLowerCase() + "_carpet")).getDefaultState().toBaseBlock());
|
||||||
e.replaceBlocks(region, CLAY_SET, Objects.requireNonNull(BlockTypes.get(c.name().toLowerCase() + "_terracotta")).getDefaultState().toBaseBlock());
|
e.replaceBlocks(region, CLAY_SET, Objects.requireNonNull(BlockTypes.get(c.name().toLowerCase() + "_terracotta")).getDefaultState().toBaseBlock());
|
||||||
e.replaceBlocks(region, GLASS_SET, Objects.requireNonNull(BlockTypes.get(c.name().toLowerCase() + "_stained_glass")).getDefaultState().toBaseBlock());
|
e.replaceBlocks(region, GLASS_SET, Objects.requireNonNull(BlockTypes.get(c.name().toLowerCase() + "_stained_glass")).getDefaultState().toBaseBlock());
|
||||||
e.replaceBlocks(region, GLASS_PANE_SET, Objects.requireNonNull(BlockTypes.get(c.name().toLowerCase() + "_stained_glass_pane")).getDefaultState().toBaseBlock());
|
e.replaceBlocks(region, GLASS_PANE_SET, Objects.requireNonNull(BlockTypes.get(c.name().toLowerCase() + "_stained_glass_pane")).getDefaultState().toBaseBlock());
|
||||||
|
@ -39,11 +39,14 @@ class FightTeam_8 {
|
|||||||
private static final BaseBlock CLAY = new BaseBlock(Material.CLAY.getId(), COLOR_TO_REPLACE);
|
private static final BaseBlock CLAY = new BaseBlock(Material.CLAY.getId(), COLOR_TO_REPLACE);
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
private static final BaseBlock GLASS_PANE = new BaseBlock(Material.STAINED_GLASS_PANE.getId(), COLOR_TO_REPLACE);
|
private static final BaseBlock GLASS_PANE = new BaseBlock(Material.STAINED_GLASS_PANE.getId(), COLOR_TO_REPLACE);
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
|
private static final BaseBlock CARPET = new BaseBlock(Material.CARPET.getId(), COLOR_TO_REPLACE);
|
||||||
|
|
||||||
private static final Set<BaseBlock> WOOL_SET = Collections.singleton(WOOL);
|
private static final Set<BaseBlock> WOOL_SET = Collections.singleton(WOOL);
|
||||||
private static final Set<BaseBlock> CLAY_SET = Collections.singleton(CLAY);
|
private static final Set<BaseBlock> CLAY_SET = Collections.singleton(CLAY);
|
||||||
private static final Set<BaseBlock> GLASS_SET = Collections.singleton(GLASS);
|
private static final Set<BaseBlock> GLASS_SET = Collections.singleton(GLASS);
|
||||||
private static final Set<BaseBlock> GLASS_PANE_SET = Collections.singleton(GLASS_PANE);
|
private static final Set<BaseBlock> GLASS_PANE_SET = Collections.singleton(GLASS_PANE);
|
||||||
|
private static final Set<BaseBlock> CARPET_SET = Collections.singleton(CARPET);
|
||||||
|
|
||||||
static void setTeamColor(Team team, ChatColor color){
|
static void setTeamColor(Team team, ChatColor color){
|
||||||
team.setPrefix("§" + color.getChar());
|
team.setPrefix("§" + color.getChar());
|
||||||
@ -58,6 +61,7 @@ class FightTeam_8 {
|
|||||||
e.replaceBlocks(region, CLAY_SET, new BaseBlock(CLAY.getId(), c.getWoolData()));
|
e.replaceBlocks(region, CLAY_SET, new BaseBlock(CLAY.getId(), c.getWoolData()));
|
||||||
e.replaceBlocks(region, GLASS_SET, new BaseBlock(GLASS.getId(), c.getWoolData()));
|
e.replaceBlocks(region, GLASS_SET, new BaseBlock(GLASS.getId(), c.getWoolData()));
|
||||||
e.replaceBlocks(region, GLASS_PANE_SET, new BaseBlock(GLASS_PANE.getId(), c.getWoolData()));
|
e.replaceBlocks(region, GLASS_PANE_SET, new BaseBlock(GLASS_PANE.getId(), c.getWoolData()));
|
||||||
|
e.replaceBlocks(region, CARPET_SET, new BaseBlock(CARPET.getId(), c.getWoolData()));
|
||||||
} catch (MaxChangedBlocksException ex) {
|
} catch (MaxChangedBlocksException ex) {
|
||||||
// ignore, will never occur
|
// ignore, will never occur
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren