Add small improvements
This commit is contained in:
+1
-1
@@ -53,7 +53,7 @@ mod_name=Ascend: SbA
|
|||||||
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
|
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
|
||||||
mod_license=All Rights Reserved
|
mod_license=All Rights Reserved
|
||||||
# The mod version. See https://semver.org/
|
# The mod version. See https://semver.org/
|
||||||
mod_version=2.2.0
|
mod_version=2.2.1
|
||||||
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
|
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
|
||||||
# This should match the base package used for the mod sources.
|
# This should match the base package used for the mod sources.
|
||||||
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
|
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import net.minecraftforge.fml.common.Mod;
|
|||||||
public class PlayerEvents {
|
public class PlayerEvents {
|
||||||
|
|
||||||
private static final ResourceLocation PLAYER_STATS_ID =
|
private static final ResourceLocation PLAYER_STATS_ID =
|
||||||
new ResourceLocation(AscendMod.MODID, "player_stats");
|
ResourceLocation.fromNamespaceAndPath(AscendMod.MODID, "player_stats");
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public static void onAttachCapabilities(AttachCapabilitiesEvent<Entity> event) {
|
public static void onAttachCapabilities(AttachCapabilitiesEvent<Entity> event) {
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ public class PacketHandler {
|
|||||||
|
|
||||||
public static void register() {
|
public static void register() {
|
||||||
INSTANCE = NetworkRegistry.newSimpleChannel(
|
INSTANCE = NetworkRegistry.newSimpleChannel(
|
||||||
new ResourceLocation(AscendMod.MODID, "main"),
|
ResourceLocation.fromNamespaceAndPath(AscendMod.MODID, "main"),
|
||||||
() -> PROTOCOL_VERSION,
|
() -> PROTOCOL_VERSION,
|
||||||
PROTOCOL_VERSION::equals,
|
PROTOCOL_VERSION::equals,
|
||||||
PROTOCOL_VERSION::equals
|
PROTOCOL_VERSION::equals
|
||||||
|
|||||||
@@ -31,11 +31,11 @@ public class ModWorldGenProvider extends DatapackBuiltinEntriesProvider {
|
|||||||
|
|
||||||
public static final ResourceKey<Structure> SHRINE =
|
public static final ResourceKey<Structure> SHRINE =
|
||||||
ResourceKey.create(Registries.STRUCTURE,
|
ResourceKey.create(Registries.STRUCTURE,
|
||||||
new ResourceLocation(AscendMod.MODID, "shrine_of_remembrance"));
|
ResourceLocation.fromNamespaceAndPath(AscendMod.MODID, "shrine_of_remembrance"));
|
||||||
|
|
||||||
public static final ResourceKey<StructureSet> SHRINE_SET =
|
public static final ResourceKey<StructureSet> SHRINE_SET =
|
||||||
ResourceKey.create(Registries.STRUCTURE_SET,
|
ResourceKey.create(Registries.STRUCTURE_SET,
|
||||||
new ResourceLocation(AscendMod.MODID, "shrine_set"));
|
ResourceLocation.fromNamespaceAndPath(AscendMod.MODID, "shrine_set"));
|
||||||
|
|
||||||
public ModWorldGenProvider(PackOutput output, CompletableFuture<HolderLookup.Provider> registries) {
|
public ModWorldGenProvider(PackOutput output, CompletableFuture<HolderLookup.Provider> registries) {
|
||||||
super(output, registries, new RegistrySetBuilder()
|
super(output, registries, new RegistrySetBuilder()
|
||||||
|
|||||||
Reference in New Issue
Block a user