-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix compiling errors and apply spotless
- Loading branch information
1 parent
ed2566e
commit 87d4444
Showing
8 changed files
with
57 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 0 additions & 34 deletions
34
...pi-v1/1.12.2/src/main/java/net/legacyfabric/fabric/mixin/item/versioned/ItemAccessor.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
...abric-api/1.12.2/src/testmod/java/net/legacyfabric/fabric/test/registry/RegistryTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Copyright (c) 2020 - 2024 Legacy Fabric | ||
* Copyright (c) 2016 - 2022 FabricMC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package net.legacyfabric.fabric.test.registry; | ||
|
||
import net.minecraft.item.Item; | ||
import net.minecraft.item.itemgroup.ItemGroup; | ||
|
||
import net.fabricmc.api.ModInitializer; | ||
|
||
import net.legacyfabric.fabric.api.registry.v2.RegistryHelper; | ||
import net.legacyfabric.fabric.api.resource.ItemModelRegistry; | ||
import net.legacyfabric.fabric.api.util.Identifier; | ||
|
||
public class RegistryTest implements ModInitializer { | ||
@Override | ||
public void onInitialize() { | ||
this.registerItems(); | ||
} | ||
|
||
private void registerItems() { | ||
Item testItem = new Item().setItemGroup(ItemGroup.FOOD); | ||
RegistryHelper.register( | ||
Item.REGISTRY, | ||
new Identifier("legacy-fabric-api", "test_item"), testItem | ||
); | ||
ItemModelRegistry.registerItemModel(testItem, new Identifier("legacy-fabric-api:test_item")); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters