Skip to content

Commit

Permalink
🐛 Fix Fabric compile errro
Browse files Browse the repository at this point in the history
  • Loading branch information
XyperCode committed Dec 11, 2024
1 parent ebc9985 commit 1af8272
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,38 +56,38 @@ public boolean is(ResourceLocation location) {
}

@Override
public boolean is(ResourceKey<R> resourceKey) {
public boolean is(ResourceKey<T> resourceKey) {
return this.key.equals(resourceKey);
}

@Override
public boolean is(Predicate<ResourceKey<R>> predicate) {
return predicate.test(this.key);
public boolean is(Predicate<ResourceKey<T>> predicate) {
return predicate.test((ResourceKey<T>) this.key);
}

@Override
public boolean is(TagKey<R> tagKey) {
public boolean is(TagKey<T> tagKey) {
return false;
}

@Override
public boolean is(Holder<R> holder) {
public boolean is(Holder<T> holder) {
return false;
}

@Override
public @NotNull Stream<TagKey<R>> tags() {
public Stream<TagKey<T>> tags() {
return Stream.empty();
}

@Override
public @NotNull Either<ResourceKey<R>, R> unwrap() {
public Either<ResourceKey<T>, T> unwrap() {
return Either.right(value);
}

@Override
public Optional<ResourceKey<R>> unwrapKey() {
return Optional.of(key);
public Optional<ResourceKey<T>> unwrapKey() {
return Optional.of((ResourceKey<T>) key);
}

@Override
Expand All @@ -96,7 +96,7 @@ public Optional<ResourceKey<R>> unwrapKey() {
}

@Override
public boolean canSerializeIn(HolderOwner<R> owner) {
public boolean canSerializeIn(HolderOwner<T> owner) {
return owner instanceof Registry;
}

Expand Down

0 comments on commit 1af8272

Please sign in to comment.