Rename getBuilderFor to build
This commit is contained in:
@@ -70,12 +70,12 @@ public class BuilderAdvancement extends CommandBuilder
|
||||
return this.getNodeAsResourceLocation(3);
|
||||
}
|
||||
|
||||
public BuilderAdvancement getBuilderForAction(EnumActionType action)
|
||||
public BuilderAdvancement build(EnumActionType action)
|
||||
{
|
||||
return this.getBuilder(action, this.getMode());
|
||||
return this.build(action, this.getMode());
|
||||
}
|
||||
|
||||
public BuilderAdvancement getBuilder(EnumActionType action, EnumMode mode)
|
||||
public BuilderAdvancement build(EnumActionType action, EnumMode mode)
|
||||
{
|
||||
return new BuilderAdvancement(action, this.getPlayer(), mode, !EnumMode.EVERYTHING.equals(mode) ? this.getAdvancement() : null);
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ public class BuilderDifficulty extends CommandBuilder
|
||||
{
|
||||
public BuilderDifficulty()
|
||||
{
|
||||
|
||||
super();
|
||||
}
|
||||
|
||||
public BuilderDifficulty(Difficulty difficulty)
|
||||
|
||||
@@ -88,17 +88,17 @@ public class BuilderExperience extends CommandBuilder
|
||||
return syntax;
|
||||
}
|
||||
|
||||
public BuilderExperience getBuilderForAddLevels()
|
||||
public BuilderExperience buildAdd()
|
||||
{
|
||||
return new BuilderExperience(EnumMode.ADD, this.getLevel(), this.getPlayer(), EnumUnit.LEVELS);
|
||||
}
|
||||
|
||||
public BuilderExperience getBuilderForRemoveLevels()
|
||||
public BuilderExperience buildRemove()
|
||||
{
|
||||
return new BuilderExperience(EnumMode.ADD, -this.getLevel(), this.getPlayer(), EnumUnit.LEVELS);
|
||||
}
|
||||
|
||||
public BuilderExperience getBuilderForResetLevels()
|
||||
public BuilderExperience buildReset()
|
||||
{
|
||||
return new BuilderExperience(EnumMode.SET, 0, this.getPlayer(), EnumUnit.LEVELS);
|
||||
}
|
||||
|
||||
@@ -88,12 +88,12 @@ public class BuilderFill extends BuilderDoubleBlockPos
|
||||
return EnumHelper.valueOf(this.getNodeAsString(7), EnumBlockFilter.class);
|
||||
}
|
||||
|
||||
public BuilderFill getBuilderForFill()
|
||||
public BuilderFill build()
|
||||
{
|
||||
return new BuilderFill(this.getBlock1(), null, null);
|
||||
}
|
||||
|
||||
public BuilderFill getBuilderForReplace()
|
||||
public BuilderFill buildReplace()
|
||||
{
|
||||
return new BuilderFill(this.getBlock2(), EnumBlockFilter.REPLACE, this.getBlock1());
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ public class BuilderGamerule extends CommandBuilder
|
||||
{
|
||||
public BuilderGamerule()
|
||||
{
|
||||
|
||||
super();
|
||||
}
|
||||
|
||||
public BuilderGamerule(String rule, String value)
|
||||
@@ -40,7 +40,7 @@ public class BuilderGamerule extends CommandBuilder
|
||||
return this.getNodeAsString(1);
|
||||
}
|
||||
|
||||
public BuilderGamerule getBuilderForValue(String value)
|
||||
public BuilderGamerule build(String value)
|
||||
{
|
||||
return new BuilderGamerule(this.getRule(), value);
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ public class BuilderNoteEditor extends BuilderSetBlock
|
||||
this.setState(BlockStateProperties.NOTE_0_24, note);
|
||||
}
|
||||
|
||||
public BuilderNoteEditor getBuilderForNote(int note)
|
||||
public BuilderNoteEditor build(int note)
|
||||
{
|
||||
return new BuilderNoteEditor(note, this.getBlockPos());
|
||||
}
|
||||
|
||||
@@ -150,17 +150,17 @@ public class BuilderPotionEffect extends CommandBuilder
|
||||
this.setDuration(EffectNBT.toSeconds(this.seconds, this.minutes, this.hours));
|
||||
}
|
||||
|
||||
public BuilderGeneric getGiveCommand()
|
||||
public BuilderGeneric buildGive()
|
||||
{
|
||||
return new BuilderGeneric(this.getCommandName(), EnumMode.GIVE.toString(), this.getPlayer(), this.getEffect().toString(), String.valueOf(this.getDuration()), String.valueOf(this.getAmplifier()), String.valueOf(this.getHideParticles()));
|
||||
}
|
||||
|
||||
public BuilderGeneric getRemoveCommand()
|
||||
public BuilderGeneric buildRemove()
|
||||
{
|
||||
return new BuilderGeneric(this.getCommandName(), EnumMode.CLEAR.toString(), this.getPlayer(), this.getEffect().toString());
|
||||
}
|
||||
|
||||
public BuilderGeneric getClearCommand()
|
||||
public BuilderGeneric buildClear()
|
||||
{
|
||||
return new BuilderGeneric(this.getCommandName(), EnumMode.CLEAR.toString(), this.getPlayer());
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ public class BuilderPotionItem extends BuilderGive
|
||||
return this.potion.getEffects();
|
||||
}
|
||||
|
||||
public BuilderPotionItem getBuilderForPotion(Item item)
|
||||
public BuilderPotionItem build(Item item)
|
||||
{
|
||||
return new BuilderPotionItem(item.getRegistryName(), this.getPlayer(), this.potion);
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ public class BuilderRecipe extends CommandBuilder
|
||||
return this.getNodeAsResourceLocation(2);
|
||||
}
|
||||
|
||||
public BuilderRecipe getBuilderForMode(EnumMode mode)
|
||||
public BuilderRecipe build(EnumMode mode)
|
||||
{
|
||||
return new BuilderRecipe(mode, this.getPlayer(), this.getRecipe());
|
||||
}
|
||||
|
||||
@@ -116,12 +116,12 @@ public class BuilderScoreboardPlayers extends BuilderScoreboard
|
||||
return syntax;
|
||||
}
|
||||
|
||||
public BuilderScoreboardPlayers getBuilderForPoints(EnumMode mode)
|
||||
public BuilderScoreboardPlayers buildPoints(EnumMode mode)
|
||||
{
|
||||
return this.getBuilderForPoints(mode, this.getPoints());
|
||||
return this.buildPoints(mode, this.getPoints());
|
||||
}
|
||||
|
||||
public BuilderScoreboardPlayers getBuilderForPoints(EnumMode mode, int points)
|
||||
public BuilderScoreboardPlayers buildPoints(EnumMode mode, int points)
|
||||
{
|
||||
BuilderScoreboardPlayers builder = new BuilderScoreboardPlayers();
|
||||
|
||||
@@ -133,7 +133,7 @@ public class BuilderScoreboardPlayers extends BuilderScoreboard
|
||||
return builder;
|
||||
}
|
||||
|
||||
public BuilderScoreboardPlayers getBuilderForEnable()
|
||||
public BuilderScoreboardPlayers buildEnable()
|
||||
{
|
||||
BuilderScoreboardPlayers builder = new BuilderScoreboardPlayers();
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@ public class BuilderSignEditor extends BuilderData
|
||||
|
||||
public BuilderSignEditor()
|
||||
{
|
||||
super();
|
||||
this.setMode(EnumMode.MERGE);
|
||||
this.setTarget(EnumTarget.BLOCK);
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ public class BuilderTag extends CommandBuilder
|
||||
return syntax;
|
||||
}
|
||||
|
||||
public BuilderTag getBuilderForMode(EnumMode mode)
|
||||
public BuilderTag build(EnumMode mode)
|
||||
{
|
||||
return new BuilderTag(this.getPlayer(), mode, this.getName());
|
||||
}
|
||||
|
||||
@@ -172,7 +172,7 @@ public class BuilderTeams extends CommandBuilder
|
||||
return null;
|
||||
}
|
||||
|
||||
public BuilderTeams getBuilderForMode(EnumMode mode)
|
||||
public BuilderTeams build(EnumMode mode)
|
||||
{
|
||||
BuilderTeams builder = new BuilderTeams();
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ public class BuilderTime extends CommandBuilder
|
||||
{
|
||||
public BuilderTime()
|
||||
{
|
||||
|
||||
super();
|
||||
}
|
||||
|
||||
public BuilderTime(EnumMode mode)
|
||||
|
||||
@@ -77,7 +77,7 @@ public class BuilderTrigger extends CommandBuilder
|
||||
return syntax;
|
||||
}
|
||||
|
||||
public BuilderTrigger getBuilderForMode(EnumMode mode)
|
||||
public BuilderTrigger build(EnumMode mode)
|
||||
{
|
||||
return new BuilderTrigger(this.getObjective(), mode, this.getValue());
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ public class BuilderWhitelist extends CommandBuilder
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public BuilderWhitelist getBuilder(EnumMode mode)
|
||||
public BuilderWhitelist build(EnumMode mode)
|
||||
{
|
||||
switch(mode)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user