Good news, this plugin has graduated to the official repo. Please see below for install and usage instructions.
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
using UnityEngine; | |
using System.Collections; | |
[RequireComponent(typeof(BoxCollider2D))] | |
public class SpawnArea : MonoBehaviour { | |
public GameObject spawnedPrefab; | |
BoxCollider2D spawnArea; | |
Vector2 maxSpawnPos; | |
float lastSpawnTimeS = -1; |
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
using UnityEngine; | |
using System.Collections; | |
public class Comment : MonoBehaviour { | |
public string comment; | |
} |
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
package com.eliotlash.stormlight; | |
// Made with Blockbench 3.5.4 | |
// Exported for Minecraft version 1.15 | |
// Paste this class into your mod and generate all required imports | |
import net.minecraft.client.model.ModelPart; | |
import net.minecraft.client.render.VertexConsumer; | |
import net.minecraft.client.render.entity.model.EntityModel; | |
import net.minecraft.client.util.math.MatrixStack; |
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
@Mixin(ServerWorld.class) | |
public class ServerWorldMixin extends World { | |
// I had to implement this to make the compiler happy but I'm hoping it's not actually going to be called | |
private ServerWorldMixin() { | |
super(null, null, null, null, false); | |
} | |
// This was working before I tried to access this.dimension | |
@Inject(at = @At("RETURN"), method = "<init>(Lnet/minecraft/server/MinecraftServer;Ljava/util/concurrent/Executor;Lnet/minecraft/world/WorldSaveHandler;Lnet/minecraft/world/level/LevelProperties;Lnet/minecraft/world/dimension/DimensionType;Lnet/minecraft/util/profiler/Profiler;Lnet/minecraft/server/WorldGenerationProgressListener;)V") | |
private void constructor(MinecraftServer server, Executor workerExecutor, WorldSaveHandler worldSaveHandler, LevelProperties properties, DimensionType dimensionType, Profiler profiler, WorldGenerationProgressListener worldGenerationProgressListener, CallbackInfo info) { |
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
[alias] | |
browse-tree = !cd -- ${GIT_PREFIX:-.} && hub browse -- tree/"${1-$(git rev-parse --abbrev-ref HEAD)}" # Use argument, or default to HEAD | |
browse-commit = !cd -- ${GIT_PREFIX:-.} && hub browse -- commit/"${1-$(git rev-parse --short HEAD)}" # Use argument, or default to HEAD | |
browse-file = !cd -- ${GIT_PREFIX:-.} && hub browse -- blob/"$(git rev-parse --short HEAD)"/$(git ls-files --full-name "$1") | |
browse-pr = !hub pr list -h "$(git rev-parse --abbrev-ref HEAD)" -f '%U%n' | xargs open | |
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
#!/usr/bin/env bash | |
### | |
# This script uses SteamCmd to force downloads of games for other platforms. | |
# First, install SteamCmd from https://developer.valvesoftware.com/wiki/SteamCMD | |
# Place this script next to steamcmd.sh and make it executable (chmod u+x download_steam_app.sh) | |
# Finally, set the config to refer to your username. If you are already signed in to steam you should not need to enter a password. | |
# | |
# Usage: | |
# ./download_steam_app.sh <steam_store_url> |
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
'use strict'; | |
import React, { Component } from 'react'; | |
import { findNodeHandle, StyleSheet, Text, View, NativeModules } from 'react-native'; | |
const UIManager = NativeModules.UIManager; | |
class AutoresizeText extends Component { | |
constructor(props) { | |
super(props); |
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
/// <summary> | |
/// Handles parsing and execution of console commands, as well as collecting log output. | |
/// Copyright (c) 2014-2015 Eliot Lash | |
/// </summary> | |
using UnityEngine; | |
using System; | |
using System.Collections.Generic; | |
using System.Text; |
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
// https://github.com/realm/realm-js/issues/370#issuecomment-270849466 | |
import { AsyncStorage } from "react-native" | |
const STORAGE_KEY = 'MockRealm'; | |
export default class Realm { | |
constructor(params) { | |
this.schema = {}; | |
this.callbackList = []; |