[ci skip] spotlessApply with the new settings

This commit is contained in:
Raven Szewczyk committed 2023-01-29 11:36:41 +00:00
1 parent 6b208b98bc
commit a309488cdf
214 files changed
+9283 -9265

No files matched your search

@@ -1,19 +1,20 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
* To change this license header, choose License Headers in Project Properties. To change this template file, choose
* Tools | Templates and open the template in the editor.
*/
package minetweaker.mc1710.block;
import java.util.Collections;
import java.util.List;
import minetweaker.api.block.BlockPatternOr;
import minetweaker.api.block.IBlock;
import minetweaker.api.block.IBlockDefinition;
import minetweaker.api.block.IBlockPattern;
import minetweaker.api.data.IData;
import minetweaker.api.minecraft.MineTweakerMC;
import net.minecraft.block.Block;
import net.minecraftforge.oredict.OreDictionary;
@@ -22,57 +23,57 @@ import net.minecraftforge.oredict.OreDictionary;
* @author Stan
*/
public class MCSpecificBlock implements IBlock {
private final Block block;
private final int meta;
public MCSpecificBlock(Block block, int meta) {
this.block = block;
this.meta = meta;
}
private final Block block;
private final int meta;
@Override
public IBlockDefinition getDefinition() {
return MineTweakerMC.getBlockDefinition(block);
}
public MCSpecificBlock(Block block, int meta) {
this.block = block;
this.meta = meta;
}
@Override
public int getMeta() {
return meta;
}
@Override
public IBlockDefinition getDefinition() {
return MineTweakerMC.getBlockDefinition(block);
}
@Override
public IData getTileData() {
return null;
}
@Override
public int getMeta() {
return meta;
}
@Override
public List<IBlock> getBlocks() {
return Collections.<IBlock>singletonList(this);
}
@Override
public IData getTileData() {
return null;
}
@Override
public boolean matches(IBlock block) {
return block.getDefinition() == getDefinition()
&& (meta == OreDictionary.WILDCARD_VALUE || block.getMeta() == meta);
}
@Override
public List<IBlock> getBlocks() {
return Collections.<IBlock>singletonList(this);
}
@Override
public IBlockPattern or(IBlockPattern pattern) {
return new BlockPatternOr(this, pattern);
}
@Override
public boolean matches(IBlock block) {
return block.getDefinition() == getDefinition()
&& (meta == OreDictionary.WILDCARD_VALUE || block.getMeta() == meta);
}
@Override
public String getDisplayName() {
return block.getLocalizedName();
}
@Override
public IBlockPattern or(IBlockPattern pattern) {
return new BlockPatternOr(this, pattern);
}
@Override
public String toString() {
return "<block:" + getBlockId(block) + ":" + (meta == OreDictionary.WILDCARD_VALUE ? '*' : meta) + ">";
}
@Override
public String getDisplayName() {
return block.getLocalizedName();
}
private static String getBlockId(Block block)
{
return Block.blockRegistry.getNameForObject(block);
}
@Override
public String toString() {
return "<block:" + getBlockId(block) + ":" + (meta == OreDictionary.WILDCARD_VALUE ? '*' : meta) + ">";
}
private static String getBlockId(Block block) {
return Block.blockRegistry.getNameForObject(block);
}
}