parent
dffec285b2
commit
1de7b3afd2
7 changed files with 13 additions and 15 deletions
10
build.gradle
10
build.gradle
|
@ -65,15 +65,15 @@ license {
|
|||
group = 'TechReborn'
|
||||
|
||||
dependencies {
|
||||
minecraft "com.mojang:minecraft:20w06a"
|
||||
mappings "net.fabricmc:yarn:20w06a+build.15:v2"
|
||||
minecraft "com.mojang:minecraft:20w08a"
|
||||
mappings "net.fabricmc:yarn:20w08a+build.6:v2"
|
||||
modImplementation "net.fabricmc:fabric-loader:0.7.8+build.184"
|
||||
|
||||
//Fabric api
|
||||
modImplementation "net.fabricmc.fabric-api:fabric-api:0.4.32+build.296-1.16"
|
||||
modImplementation "net.fabricmc.fabric-api:fabric-api:0.4.33+build.299-1.16"
|
||||
|
||||
optionalDependency ("me.shedaniel:RoughlyEnoughItems:3.2.31")
|
||||
optionalDependency ('io.github.cottonmc:LibCD:2.0.1+1.15')
|
||||
optionalDependency ("me.shedaniel:RoughlyEnoughItems:4.0.4-unstable.202002230746")
|
||||
optionalDependency ('io.github.cottonmc:LibCD:2.3.0+1.15.2')
|
||||
|
||||
def rcVersion = 'RebornCore:RebornCore-1.16:+'
|
||||
modApi (rcVersion) {
|
||||
|
|
|
@ -86,7 +86,7 @@ public class BlockRubberLog extends LogBlock {
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean matches(Tag<Block> tagIn) {
|
||||
public boolean isIn(Tag<Block> tagIn) {
|
||||
return tagIn == BlockTags.LOGS;
|
||||
}
|
||||
|
||||
|
|
|
@ -97,7 +97,7 @@ public class MachineRecipeCategory<R extends RebornRecipe> implements RecipeCate
|
|||
|
||||
Text energyPerTick = new TranslatableText("techreborn.jei.recipe.running.cost", "E", machineRecipe.getEnergy());
|
||||
LabelWidget costLabel;
|
||||
widgets.add(costLabel = new LabelWidget(startPoint.x + 1, startPoint.y + 1 + (i++ * 20), energyPerTick.asFormattedString()));
|
||||
widgets.add(costLabel = new LabelWidget(new Point(startPoint.x + 1, startPoint.y + 1 + (i++ * 20)), energyPerTick.asFormattedString()));
|
||||
costLabel.setHasShadows(false);
|
||||
costLabel.setDefaultColor(ScreenHelper.isDarkModeEnabled() ? 0xFFBBBBBB : 0xFF404040);
|
||||
|
||||
|
@ -110,7 +110,7 @@ public class MachineRecipeCategory<R extends RebornRecipe> implements RecipeCate
|
|||
if (heat > 0) {
|
||||
String neededHeat = heat + " " + StringUtils.t("techreborn.jei.recipe.heat");
|
||||
LabelWidget heatLabel;
|
||||
widgets.add(heatLabel = new LabelWidget(startPoint.x + 61, startPoint.y + 1 + (i++ * 20), neededHeat));
|
||||
widgets.add(heatLabel = new LabelWidget(new Point(startPoint.x + 61, startPoint.y + 1 + (i++ * 20)), neededHeat));
|
||||
heatLabel.setHasShadows(false);
|
||||
heatLabel.setDefaultColor(ScreenHelper.isDarkModeEnabled() ? 0xFFBBBBBB : 0xFF404040);
|
||||
}
|
||||
|
|
|
@ -83,7 +83,7 @@ public class FluidGeneratorRecipeCategory implements RecipeCategory<FluidGenerat
|
|||
|
||||
Text energyPerTick = new TranslatableText("techreborn.jei.recipe.generator.total", machineRecipe.getTotalEnergy());
|
||||
LabelWidget costLabel;
|
||||
widgets.add(costLabel = new LabelWidget(bounds.getCenterX(), startPoint.y + 20, energyPerTick.asFormattedString()));
|
||||
widgets.add(costLabel = new LabelWidget(new Point(bounds.getCenterX(), startPoint.y + 20), energyPerTick.asFormattedString()));
|
||||
costLabel.setHasShadows(false);
|
||||
costLabel.setDefaultColor(ScreenHelper.isDarkModeEnabled() ? 0xFFBBBBBB : 0xFF404040);
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@ public class FluidReplicatorRecipeCategory implements RecipeCategory<FluidReplic
|
|||
|
||||
Text energyPerTick = new TranslatableText("techreborn.jei.recipe.running.cost", "E", machineRecipe.getEnergy());
|
||||
LabelWidget costLabel;
|
||||
widgets.add(costLabel = new LabelWidget(startPoint.x + 1, startPoint.y + 1 + (i++ * 20), energyPerTick.asFormattedString()));
|
||||
widgets.add(costLabel = new LabelWidget(new Point(startPoint.x + 1, startPoint.y + 1 + (i++ * 20)), energyPerTick.asFormattedString()));
|
||||
costLabel.setHasShadows(false);
|
||||
costLabel.setDefaultColor(ScreenHelper.isDarkModeEnabled() ? 0xFFBBBBBB : 0xFF404040);
|
||||
|
||||
|
|
|
@ -108,7 +108,5 @@ public enum TRArmorMaterials implements ArmorMaterial {
|
|||
}
|
||||
|
||||
@Override
|
||||
public float method_24355() {
|
||||
return 0; //Knockback resitance
|
||||
}
|
||||
public float getKnockbackResistance() { return 0; }
|
||||
}
|
||||
|
|
|
@ -77,7 +77,7 @@ public class DynamicCellItem extends Item implements ItemFluidInfo {
|
|||
|
||||
// Thanks vanilla :)
|
||||
private void playEmptyingSound(@Nullable PlayerEntity playerEntity, IWorld world, BlockPos blockPos, Fluid fluid) {
|
||||
SoundEvent soundEvent = fluid.matches(FluidTags.LAVA) ? SoundEvents.ITEM_BUCKET_EMPTY_LAVA : SoundEvents.ITEM_BUCKET_EMPTY;
|
||||
SoundEvent soundEvent = fluid.isIn(FluidTags.LAVA) ? SoundEvents.ITEM_BUCKET_EMPTY_LAVA : SoundEvents.ITEM_BUCKET_EMPTY;
|
||||
world.playSound(playerEntity, blockPos, soundEvent, SoundCategory.BLOCKS, 1.0F, 1.0F);
|
||||
}
|
||||
|
||||
|
@ -116,7 +116,7 @@ public class DynamicCellItem extends Item implements ItemFluidInfo {
|
|||
if (!blockState.isAir() && !canPlace && (!(blockState.getBlock() instanceof FluidFillable) || !((FluidFillable)blockState.getBlock()).canFillWithFluid(world, pos, blockState, fluid))) {
|
||||
return hitResult != null && this.placeFluid(player, world, hitResult.getBlockPos().offset(hitResult.getSide()), null, filledCell);
|
||||
} else {
|
||||
if (world.dimension.doesWaterVaporize() && fluid.matches(FluidTags.WATER)) {
|
||||
if (world.dimension.doesWaterVaporize() && fluid.isIn(FluidTags.WATER)) {
|
||||
int i = pos.getX();
|
||||
int j = pos.getY();
|
||||
int k = pos.getZ();
|
||||
|
|
Loading…
Add table
Reference in a new issue