Skip to content

Commit

Permalink
Fix indent and template package name
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexProgrammerDE committed Nov 19, 2024
1 parent 0a029fe commit 5591cdc
Show file tree
Hide file tree
Showing 14 changed files with 33 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.soulfiremc.data;
package com.soulfiremc.server.data;

import lombok.AccessLevel;
import lombok.With;
Expand Down
2 changes: 1 addition & 1 deletion data-generator/src/main/resources/templates/BlockTags.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.soulfiremc.data;
package com.soulfiremc.server.data;

import net.kyori.adventure.key.KeyPattern;

Expand Down
2 changes: 1 addition & 1 deletion data-generator/src/main/resources/templates/BlockType.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.soulfiremc.data;
package com.soulfiremc.server.data;

import com.google.gson.JsonObject;
import com.google.gson.TypeAdapter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.soulfiremc.data;
package com.soulfiremc.server.data;

import lombok.AccessLevel;
import lombok.With;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.soulfiremc.data;
package com.soulfiremc.server.data;

import net.kyori.adventure.key.Key;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.soulfiremc.data;
package com.soulfiremc.server.data;

import net.kyori.adventure.key.KeyPattern;

Expand Down
2 changes: 1 addition & 1 deletion data-generator/src/main/resources/templates/FluidTags.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.soulfiremc.data;
package com.soulfiremc.server.data;

import net.kyori.adventure.key.KeyPattern;

Expand Down
2 changes: 1 addition & 1 deletion data-generator/src/main/resources/templates/FluidType.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.soulfiremc.data;
package com.soulfiremc.server.data;

import lombok.AccessLevel;
import lombok.With;
Expand Down
2 changes: 1 addition & 1 deletion data-generator/src/main/resources/templates/ItemTags.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.soulfiremc.data;
package com.soulfiremc.server.data;

import net.kyori.adventure.key.KeyPattern;

Expand Down
2 changes: 1 addition & 1 deletion data-generator/src/main/resources/templates/ItemType.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.soulfiremc.data;
package com.soulfiremc.server.data;

import net.kyori.adventure.key.Key;

Expand Down
2 changes: 1 addition & 1 deletion data-generator/src/main/resources/templates/MapColor.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.soulfiremc.data;
package com.soulfiremc.server.data;

import lombok.RequiredArgsConstructor;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.soulfiremc.data;
package com.soulfiremc.server.data;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.soulfiremc.data;
package com.soulfiremc.server.data;

@SuppressWarnings("unused")
public class RegistryKeys {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@

@SuppressWarnings("unused")
public record NamedEntityData(String key, int networkId, String entityClass) {
public static final List<NamedEntityData> VALUES = new ArrayList<>();
public static final List<NamedEntityData> VALUES = new ArrayList<>();

//@formatter:off
//@formatter:off
public static final NamedEntityData ABSTRACT_ARROW__ID_FLAGS = register("id_flags", 8, "abstract_arrow");
public static final NamedEntityData ABSTRACT_ARROW__IN_GROUND = register("in_ground", 10, "abstract_arrow");
public static final NamedEntityData ABSTRACT_ARROW__PIERCE_LEVEL = register("pierce_level", 9, "abstract_arrow");
Expand Down Expand Up @@ -237,25 +237,25 @@ public record NamedEntityData(String key, int networkId, String entityClass) {
public static final NamedEntityData ZOMBIE__SPECIAL_TYPE_ID = register("special_type_id", 17, "zombie");
//@formatter:on

public static NamedEntityData register(String key, int networkId, String entityClass) {
var instance = new NamedEntityData(key, networkId, entityClass);
VALUES.add(instance);
return instance;
}
public static NamedEntityData register(String key, int networkId, String entityClass) {
var instance = new NamedEntityData(key, networkId, entityClass);
VALUES.add(instance);
return instance;
}

@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof NamedEntityData other)) {
return false;
}
return key.equals(other.key) && entityClass.equals(other.entityClass);
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}

@Override
public int hashCode() {
return key.hashCode() + entityClass.hashCode();
if (!(o instanceof NamedEntityData other)) {
return false;
}
return key.equals(other.key) && entityClass.equals(other.entityClass);
}

@Override
public int hashCode() {
return key.hashCode() + entityClass.hashCode();
}
}

0 comments on commit 5591cdc

Please sign in to comment.