Skip to content

Commit

Permalink
Fix license. Rename mixin.
Browse files Browse the repository at this point in the history
  • Loading branch information
qouteall committed Jul 22, 2023
1 parent 6240c88 commit 0597bea
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2016, 2017, 2018, 2019 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.fabricmc.fabric.mixin.dimension;

import java.util.Map;
Expand All @@ -16,7 +32,7 @@
import net.fabricmc.fabric.impl.dimension.TaggedChoiceExtension;

@Mixin(value = Schema2832.class, remap = false)
public class MixinSchema2832 {
public class Schema2832Mixin {
/**
* Make the DSL.taggedChoiceLazy to ignore mod custom generator types and not cause deserialization failure.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2016, 2017, 2018, 2019 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.fabricmc.fabric.mixin.dimension;

import com.mojang.datafixers.types.Type;
Expand All @@ -13,7 +29,7 @@
import net.fabricmc.fabric.impl.dimension.TaggedChoiceTypeExtension;

@Mixin(value = TaggedChoice.class, remap = false)
public class MixinTaggedChoice implements TaggedChoiceExtension {
public class TaggedChoiceMixin implements TaggedChoiceExtension {
@Unique
boolean failSoft = false;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2016, 2017, 2018, 2019 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.fabricmc.fabric.mixin.dimension;

import com.mojang.datafixers.types.Type;
Expand All @@ -18,7 +34,7 @@
import net.fabricmc.fabric.impl.dimension.TaggedChoiceTypeExtension;

@Mixin(value = TaggedChoice.TaggedChoiceType.class, remap = false)
public class MixinTaggedChoiceType<K> implements TaggedChoiceTypeExtension {
public class TaggedChoiceTypeMixin<K> implements TaggedChoiceTypeExtension {
@Unique
private static final Logger LOGGER = LoggerFactory.getLogger("TaggedChoiceType_DimDataFix");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"compatibilityLevel": "JAVA_16",
"mixins": [
"EntityMixin",
"MixinSchema2832",
"MixinTaggedChoice",
"MixinTaggedChoiceType",
"RegistryCodecsMixin"
"RegistryCodecsMixin",
"Schema2832Mixin",
"TaggedChoiceMixin",
"TaggedChoiceTypeMixin"
],
"injectors": {
"defaultRequire": 1
Expand Down

0 comments on commit 0597bea

Please sign in to comment.