Skip to content

Commit a54c0ee

Browse files
committed
init
1 parent 7c6611e commit a54c0ee

30 files changed

+2395
-4
lines changed

.clang-format

+130
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
---
2+
AccessModifierOffset: 0
3+
AlignAfterOpenBracket: BlockIndent
4+
AlignArrayOfStructures: None
5+
AlignConsecutiveAssignments: None
6+
AlignConsecutiveMacros: None
7+
AlignConsecutiveBitFields: None
8+
AlignConsecutiveDeclarations: None
9+
AlignEscapedNewlines: DontAlign
10+
AlignOperands: DontAlign
11+
AlignTrailingComments: false
12+
AllowAllArgumentsOnNextLine: true
13+
AllowAllParametersOfDeclarationOnNextLine: true
14+
AllowShortBlocksOnASingleLine: Empty
15+
AllowShortCaseLabelsOnASingleLine: false
16+
AllowShortEnumsOnASingleLine: false
17+
AllowShortFunctionsOnASingleLine: Empty
18+
AllowShortIfStatementsOnASingleLine: Never
19+
AllowShortLambdasOnASingleLine: All
20+
AllowShortLoopsOnASingleLine: false
21+
AlwaysBreakAfterReturnType: None
22+
AlwaysBreakBeforeMultilineStrings: true
23+
AlwaysBreakTemplateDeclarations: MultiLine
24+
AttributeMacros: []
25+
BinPackArguments: false
26+
BinPackParameters: false
27+
BitFieldColonSpacing: After
28+
BraceWrapping:
29+
AfterCaseLabel: false
30+
AfterClass: false
31+
AfterControlStatement: Never
32+
AfterEnum: false
33+
AfterFunction: false
34+
AfterNamespace: false
35+
AfterStruct: false
36+
AfterUnion: false
37+
AfterExternBlock: false
38+
BeforeCatch: false
39+
BeforeElse: false
40+
BeforeLambdaBody: false
41+
BeforeWhile: false
42+
IndentBraces: false
43+
SplitEmptyFunction: false
44+
SplitEmptyRecord: false
45+
SplitEmptyNamespace: false
46+
BreakAfterJavaFieldAnnotations: true
47+
#BreakArrays: false
48+
BreakBeforeBinaryOperators: All
49+
BreakBeforeBraces: Custom
50+
BreakBeforeConceptDeclarations: true
51+
BreakBeforeTernaryOperators: true
52+
BreakConstructorInitializers: AfterColon
53+
BreakInheritanceList: AfterColon
54+
BreakStringLiterals: true
55+
ColumnLimit: 90
56+
CompactNamespaces: false
57+
ConstructorInitializerIndentWidth: 4
58+
ContinuationIndentWidth: 4
59+
Cpp11BracedListStyle: false
60+
DeriveLineEnding: false
61+
DerivePointerAlignment: false
62+
DisableFormat: false # wtf
63+
EmptyLineAfterAccessModifier: Never
64+
EmptyLineBeforeAccessModifier: Always
65+
ExperimentalAutoDetectBinPacking: false
66+
FixNamespaceComments: false
67+
ForEachMacros: ["BOOST_FOREACH"]
68+
IfMacros: []
69+
IncludeBlocks: Regroup
70+
IndentAccessModifiers: false
71+
IndentCaseBlocks: false
72+
IndentCaseLabels: true
73+
IndentExternBlock: Indent
74+
IndentGotoLabels: true
75+
IndentPPDirectives: BeforeHash
76+
#IndentRequiresClause: false
77+
IndentWidth: 4
78+
IndentWrappedFunctionNames: false
79+
#InsertBraces: false
80+
InsertTrailingCommas: Wrapped
81+
JavaImportGroups: ["java"]
82+
JavaScriptQuotes: Double
83+
JavaScriptWrapImports: true
84+
KeepEmptyLinesAtTheStartOfBlocks: false
85+
LambdaBodyIndentation: OuterScope
86+
MaxEmptyLinesToKeep: 1
87+
NamespaceIndentation: All
88+
PackConstructorInitializers: NextLine
89+
PointerAlignment: Left
90+
QualifierAlignment: Left
91+
ReferenceAlignment: Left
92+
ReflowComments: true
93+
#RemoveSemicolon: true
94+
#RequiresClausePosition: OwnLine
95+
#RequiresExpressionIndentation: OuterScope
96+
SeparateDefinitionBlocks: Always
97+
SortIncludes: CaseInsensitive
98+
SortJavaStaticImport: Before
99+
SortUsingDeclarations: true
100+
SpaceAfterCStyleCast: true
101+
SpaceAfterLogicalNot: false
102+
SpaceAfterTemplateKeyword: false
103+
SpaceAroundPointerQualifiers: After
104+
SpaceBeforeAssignmentOperators: true
105+
SpaceBeforeCaseColon: false
106+
SpaceBeforeCpp11BracedList: false
107+
SpaceBeforeCtorInitializerColon: false
108+
SpaceBeforeInheritanceColon: false
109+
SpaceBeforeParens: ControlStatementsExceptControlMacros
110+
SpaceBeforeRangeBasedForLoopColon: true
111+
SpaceBeforeSquareBrackets: false
112+
SpaceInEmptyBlock: false
113+
SpaceInEmptyParentheses: false
114+
SpacesInAngles: Never
115+
SpacesInCStyleCastParentheses: false
116+
SpacesInConditionalStatement: false
117+
SpacesInContainerLiterals: false
118+
SpacesInLineCommentPrefix:
119+
Minimum: 0
120+
Maximum: -1
121+
SpacesInParentheses: false
122+
SpacesInSquareBrackets: false
123+
Standard: c++20
124+
StatementAttributeLikeMacros: []
125+
StatementMacros: []
126+
TabWidth: 4
127+
TypenameMacros: []
128+
UseCRLF: false # wtf
129+
UseTab: Never
130+
WhitespaceSensitiveMacros: ["BOOST_PP_STRINGSIZE"]

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.project
2+
.classpath
3+
bin
4+
.settings
15
.gradle
26
.idea
37
build

build.gradle

+10-4
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,27 @@ apply plugin: 'maven-publish'
2323
sourceCompatibility = JavaVersion.VERSION_1_8
2424
targetCompatibility = JavaVersion.VERSION_1_8
2525

26-
version = "1.0"
27-
group= "modgroup"
28-
archivesBaseName = "modid"
26+
version = "0.1.0"
27+
group= "dev.tilera"
28+
archivesBaseName = "classic-casting"
2929

3030
minecraft {
3131
version = "1.7.10-10.13.4.1614-1.7.10"
3232
runDir = "run"
33+
34+
replaceIn "dev/tilera/classiccasting/ClassicCasting.java"
35+
replace "@VERSION@", project.version
3336
}
3437

3538
repositories {
3639
maven { url = "https://maven.tilera.xyz" }
40+
maven { url = "https://jitpack.io" }
3741
}
3842

3943
dependencies {
4044
implementation "thaumcraft:Thaumcraft:1.7.10-4.2.3.5:deobf"
45+
implementation "dev.tilera:auracore:0.1.0:deobf"
46+
implementation "com.github.tox1cozZ:mixin-booter-legacy:1.1.2"
4147
}
4248

4349
processResources {
@@ -85,4 +91,4 @@ publishing {
8591
mavenLocal()
8692
}
8793
}
88-
}
94+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package dev.tilera.classiccasting;
2+
3+
import cpw.mods.fml.common.Mod;
4+
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
5+
6+
@Mod(
7+
modid = "classiccasting",
8+
name = "Classic Casting",
9+
version = "@VERSION@",
10+
dependencies = "required-after:Thaumcraft"
11+
)
12+
public class ClassicCasting {
13+
@Mod.EventHandler
14+
public void preInit(FMLPreInitializationEvent ev) {
15+
ClassicCastingTab.INSTANCE = new ClassicCastingTab();
16+
Items.init();
17+
}
18+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package dev.tilera.classiccasting;
2+
3+
import net.minecraft.creativetab.CreativeTabs;
4+
import net.minecraft.item.Item;
5+
6+
public class ClassicCastingTab extends CreativeTabs {
7+
public static ClassicCastingTab INSTANCE;
8+
9+
public ClassicCastingTab() {
10+
super("classiccasting");
11+
}
12+
13+
@Override
14+
public Item getTabIconItem() {
15+
return Items.wandExcavation;
16+
}
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
package dev.tilera.classiccasting;
2+
3+
import cpw.mods.fml.common.registry.GameRegistry;
4+
import dev.tilera.classiccasting.items.ItemPortableHole;
5+
import dev.tilera.classiccasting.items.wands.ItemHellrod;
6+
import dev.tilera.classiccasting.items.wands.ItemWandCastingAdept;
7+
import dev.tilera.classiccasting.items.wands.ItemWandCastingApprentice;
8+
import dev.tilera.classiccasting.items.wands.ItemWandCastingMage;
9+
import dev.tilera.classiccasting.items.wands.ItemWandExcavation;
10+
import dev.tilera.classiccasting.items.wands.ItemWandFire;
11+
import dev.tilera.classiccasting.items.wands.ItemWandFrost;
12+
import dev.tilera.classiccasting.items.wands.ItemWandLightning;
13+
import dev.tilera.classiccasting.items.wands.ItemWandTrade;
14+
import net.minecraft.item.Item;
15+
16+
public class Items {
17+
public static Item portableHole;
18+
19+
public static Item wandCastingApprentice;
20+
public static Item wandCastingAdept;
21+
public static Item wandCastingMage;
22+
23+
public static Item wandExcavation;
24+
public static Item wandFire;
25+
public static Item wandFrost;
26+
public static Item wandHellrod;
27+
public static Item wandLightning;
28+
public static Item wandTrade;
29+
30+
public static void init() {
31+
portableHole = new ItemPortableHole();
32+
33+
wandCastingApprentice = new ItemWandCastingApprentice();
34+
wandCastingAdept = new ItemWandCastingAdept();
35+
wandCastingMage = new ItemWandCastingMage();
36+
37+
wandExcavation = new ItemWandExcavation();
38+
wandFire = new ItemWandFire();
39+
wandFrost = new ItemWandFrost();
40+
wandHellrod = new ItemHellrod();
41+
wandLightning = new ItemWandLightning();
42+
wandTrade = new ItemWandTrade();
43+
44+
GameRegistry.registerItem(portableHole, "portableHole");
45+
46+
GameRegistry.registerItem(wandCastingApprentice, "wandCastingApprentice");
47+
GameRegistry.registerItem(wandCastingAdept, "wandCastingAdept");
48+
GameRegistry.registerItem(wandCastingMage, "wandCastingMage");
49+
50+
GameRegistry.registerItem(wandExcavation, "wandExcavation");
51+
GameRegistry.registerItem(wandFire, "wandFire");
52+
GameRegistry.registerItem(wandFrost, "wandFrost");
53+
GameRegistry.registerItem(wandHellrod, "wandHellrod");
54+
GameRegistry.registerItem(wandLightning, "wandLightning");
55+
GameRegistry.registerItem(wandTrade, "wandTrade");
56+
}
57+
}

0 commit comments

Comments
 (0)