Fix spelling, grammar, javadocs, and similar issues (#2784)
* fix naming in ModelSantaHat.java * Fix grammar, spelling, and javadocs in RebornCore * Fix spelling error in datagen * fix missed variable name * fix grammar, spelling, and javadoc errors * fix grammar and spelling errors in project files * specify indent_size in .editorconfig
This commit is contained in:
parent
bd971c12bd
commit
43c0fa9e89
138 changed files with 1007 additions and 924 deletions
|
@ -165,7 +165,7 @@ public class DynamicCellItem extends Item implements ItemFluidInfo {
|
|||
public Text getName(ItemStack itemStack) {
|
||||
Fluid fluid = getFluid(itemStack);
|
||||
if (fluid != Fluids.EMPTY) {
|
||||
//TODO use translation keys for fluid and the cell https://fabric.asie.pl/wiki/tutorial:lang?s[]=translation might be useful
|
||||
// TODO use translation keys for fluid and the cell https://fabric.asie.pl/wiki/tutorial:lang?s[]=translation might be useful
|
||||
return new LiteralText(WordUtils.capitalizeFully(FluidUtils.getFluidName(fluid).replaceAll("_", " ")) + " Cell");
|
||||
}
|
||||
return super.getName(itemStack);
|
||||
|
|
|
@ -34,7 +34,6 @@ import net.minecraft.item.ItemStack;
|
|||
import net.minecraft.util.collection.DefaultedList;
|
||||
import reborncore.api.items.ArmorBlockEntityTicker;
|
||||
import reborncore.api.items.ArmorRemoveHandler;
|
||||
import reborncore.common.powerSystem.PowerSystem;
|
||||
import reborncore.common.powerSystem.RcEnergyItem;
|
||||
import reborncore.common.util.ItemUtils;
|
||||
import reborncore.common.powerSystem.RcEnergyTier;
|
||||
|
@ -46,7 +45,7 @@ import techreborn.utils.InitUtils;
|
|||
public class CloakingDeviceItem extends TRArmourItem implements RcEnergyItem, ArmorBlockEntityTicker, ArmorRemoveHandler {
|
||||
|
||||
public static int maxCharge = TechRebornConfig.cloakingDeviceCharge;
|
||||
public static int cost = TechRebornConfig.cloackingDeviceCost;
|
||||
public static int cost = TechRebornConfig.cloakingDeviceCost;
|
||||
public static boolean isActive;
|
||||
|
||||
// 40M FE capacity with 10k FE\t charge rate
|
||||
|
|
|
@ -37,7 +37,7 @@ import java.util.UUID;
|
|||
*/
|
||||
public class TRArmourItem extends ArmorItem {
|
||||
|
||||
//Thanks for being private
|
||||
// Thanks for being private
|
||||
public static final UUID[] MODIFIERS = new UUID[]{
|
||||
UUID.fromString("845DB27C-C624-495F-8C9F-6020A9A58B6B"),
|
||||
UUID.fromString("D8499B04-0E66-4726-AB29-64469D734E0D"),
|
||||
|
|
|
@ -80,13 +80,13 @@ public class ChainsawItem extends AxeItem implements RcEnergyItem {
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean postHit(ItemStack itemstack, LivingEntity entityliving, LivingEntity entityliving1) {
|
||||
public boolean postHit(ItemStack stack, LivingEntity target, LivingEntity attacker) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// ToolItem
|
||||
@Override
|
||||
public boolean canRepair(ItemStack itemStack_1, ItemStack itemStack_2) {
|
||||
public boolean canRepair(ItemStack stack, ItemStack ingredient) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -94,16 +94,16 @@ public class DebugToolItem extends Item {
|
|||
}
|
||||
|
||||
private String getPropertyString(Entry<Property<?>, Comparable<?>> entryIn) {
|
||||
Property<?> iproperty = entryIn.getKey();
|
||||
Property<?> property = entryIn.getKey();
|
||||
Comparable<?> comparable = entryIn.getValue();
|
||||
String s = Util.getValueAsString(iproperty, comparable);
|
||||
String s = Util.getValueAsString(property, comparable);
|
||||
if (Boolean.TRUE.equals(comparable)) {
|
||||
s = Formatting.GREEN + s;
|
||||
} else if (Boolean.FALSE.equals(comparable)) {
|
||||
s = Formatting.RED + s;
|
||||
}
|
||||
|
||||
return iproperty.getName() + ": " + s;
|
||||
return property.getName() + ": " + s;
|
||||
}
|
||||
|
||||
private String getRegistryName(Block block) {
|
||||
|
|
|
@ -108,7 +108,7 @@ public class DrillItem extends PickaxeItem implements RcEnergyItem, DynamicAttri
|
|||
|
||||
// ToolItem
|
||||
@Override
|
||||
public boolean canRepair(ItemStack itemStack_1, ItemStack itemStack_2) {
|
||||
public boolean canRepair(ItemStack stack, ItemStack ingredient) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@ public class JackhammerItem extends PickaxeItem implements RcEnergyItem, Dynamic
|
|||
}
|
||||
|
||||
/*
|
||||
Fabric API doesn't allow to have mining speed less then the one from vanilla ToolMaterials
|
||||
Fabric API doesn't allow to have mining speed less than the one from vanilla ToolMaterials
|
||||
@Override
|
||||
public float getMiningSpeedMultiplier(Tag<Item> tag, BlockState state, ItemStack stack, LivingEntity user) {
|
||||
if (tag.equals(FabricToolTags.PICKAXES) && stack.getItem().isEffectiveOn(state)) {
|
||||
|
|
|
@ -82,13 +82,13 @@ public class RockCutterItem extends PickaxeItem implements RcEnergyItem {
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean postHit(ItemStack itemstack, LivingEntity entityliving, LivingEntity entityliving1) {
|
||||
public boolean postHit(ItemStack stack, LivingEntity target, LivingEntity attacker) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// ToolItem
|
||||
@Override
|
||||
public boolean canRepair(ItemStack stack, ItemStack stack2) {
|
||||
public boolean canRepair(ItemStack stack, ItemStack ingredient) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -95,9 +95,9 @@ public class OmniToolItem extends PickaxeItem implements RcEnergyItem, DynamicAt
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean postHit(ItemStack stack, LivingEntity entityliving, LivingEntity attacker) {
|
||||
public boolean postHit(ItemStack stack, LivingEntity target, LivingEntity attacker) {
|
||||
if (tryUseEnergy(stack, hitCost)) {
|
||||
entityliving.damage(DamageSource.player((PlayerEntity) attacker), 8F);
|
||||
target.damage(DamageSource.player((PlayerEntity) attacker), 8F);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue